-
Notifications
You must be signed in to change notification settings - Fork 64
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
feat(ui): course color picker #382
feat(ui): course color picker #382
Conversation
…stration-Plus into feature/color-picker
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.
Here are some things I've noticed:
- Async/Other courses should also have the color picker button
- The color picker button should be closer to the top right corner of the course block and, along with the color palette, should be slightly bigger. See the video below showing this PR vs the Figma component (Figma shows palette and color picker button as bigger):
https://github.com/user-attachments/assets/b2f13887-afdf-4c40-ae67-57c0542df7cb - Color picker button should have a shadow like other buttons.
- Ignore the Invert color button. That can be hidden for now. (I kind of want to make it a gear button that takes folks to the settings page to customize how colors work)
- There is a bug where courses glitch out of the grid when opening the color palette, and is fixed upon refresh. See video:
https://github.com/user-attachments/assets/e7ae7ea2-bc63-4812-9838-2f35869d3c1e
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.
Reviewing on mobile so I'll have to come back and take a look at this later, but overall looking good.
I think it would be best if we used headless ui paradigms for rendering the floating elements rather than dealing with them manually, and that also enables easier animation/transitions.
Also, preferably (although I know it already exists in the codebase) remove types from JSDoc annotations, as you're repeating information given elsewhere-that is, through typescript.
I recommend trying to follow https://tsdoc.org/
src/views/components/calendar/CalendarCourseCellColorPicker/HexColorEditor.tsx
Outdated
Show resolved
Hide resolved
…pdate related props
… based on preview color
src/views/components/calendar/CalendarCourseCellColorPicker/HexColorEditor.tsx
Outdated
Show resolved
Hide resolved
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.
LGTM
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.
LGTM
Resolves #352
This change is