Skip to content

Conversation

@ray-oxd
Copy link
Collaborator

@ray-oxd ray-oxd commented Nov 11, 2025

@ray-oxd ray-oxd requested a review from fatbird November 11, 2025 02:05
<br />
</React.Fragment>
))
}
Copy link
Collaborator Author

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

{React.Children.map(children, child =>
React.cloneElement(child, { submitting: submitting, setSubmitting: setSubmitting, setOpen: setOpen })
)}
</div>
Copy link
Collaborator Author

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

Copy link
Collaborator

@fatbird fatbird left a 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'}>
Copy link
Collaborator

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.

Copy link
Collaborator Author

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} />
Copy link
Collaborator

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?

Copy link
Collaborator Author

@ray-oxd ray-oxd Nov 12, 2025

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.

@ray-oxd
Copy link
Collaborator Author

ray-oxd commented Nov 13, 2025

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

Will add case-insensitive validation to the serializer of the organizations view.

The edit ride user modal should prepopulate organization, role and superuser values with current values for the user.

Missed renaming some props (initialValue -> value) - will be addressed.

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).

OrganizationAPIView is gated behind "permission_classes = [permissions.IsAdminUser]" so only superusers can use this endpoint anyway.

@sonarqubecloud
Copy link

@fatbird fatbird merged commit 3779e08 into main Nov 14, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants