-
Notifications
You must be signed in to change notification settings - Fork 1
DBC22-5037: List and manage organizations #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| <br /> | ||
| </React.Fragment> | ||
| )) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allow multiple alerts to show separated by linebreak
63660c4 to
cb29466
Compare
| {React.Children.map(children, child => | ||
| React.cloneElement(child, { submitting: submitting, setSubmitting: setSubmitting, setOpen: setOpen }) | ||
| )} | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shifting all tailwind classes to css since it doesn't work well with hot reload
cb29466 to
80c3381
Compare
80c3381 to
8e0ad7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating multiple organizations with the same name is possible if the case is varied (e.g., TMCC and tmcc). Name comparison should be case insensitive to prevent. See https://forum.djangoproject.com/t/how-to-make-field-case-insensitive/6918/8 for discussion
The edit ride user modal should prepopulate organization, role and superuser values with current values for the user. The superuser field should only be visible to a user with the superuser role already (and the backend should be verifying that only a superuser can promote another user to superuser).
|
|
||
| <div className={'ride-checkboxes-items'}> | ||
| {itemsList.map((item, index) => ( | ||
| <div key={item.label} className={'ride-checkboxes-items-row'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my env, this seems to have caused a console error "installHook.js:1 Each child in a list should have a unique "key" prop.", which seems to mean that item.label is blank.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will use item.id instead.
| return ( | ||
| <div className="org-form"> | ||
| <div className={'container'}> | ||
| <RIDETextInput label={'Organization name:'} extraClasses={'mr-5 form'} value={name} handler={setName} maxLength={30} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The presence of .form in extraClasses seems to be causing a CSS render issue where the fields spill out to the right. This is catching the general .form class to be applied to each row. Is that necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will rename to org-form. There are custom styling for this class in textinput.scss.
Will add case-insensitive validation to the serializer of the organizations view.
Missed renaming some props (initialValue -> value) - will be addressed.
OrganizationAPIView is gated behind "permission_classes = [permissions.IsAdminUser]" so only superusers can use this endpoint anyway. |
|



DBC22-5037
Story DBC22-4858