Diya 🔥 fix(ui): Fixed State and Team Member UI#5128
Merged
one-community merged 1 commit intodevelopmentfrom Apr 10, 2026
Merged
Diya 🔥 fix(ui): Fixed State and Team Member UI#5128one-community merged 1 commit intodevelopmentfrom
one-community merged 1 commit intodevelopmentfrom
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Implements two UI improvements to the dashboard:
Related PRs (if any):
None
Main changes explained:
TeamMemberTask.jsxto applyopacity: 0.4andpointerEvents: noneto theReviewButtonwrapper whenonTimeOffis truthyColorPicker.jsxto accept ausedColorsprop and display a red dot indicator on swatches already in use, plus a warning message when the currently selected color is already usedEmojiPicker.jsxto acceptusedEmojisandselectedEmojiprops, display a red dot indicator on emojis already in use, and show an inline warning inside the picker grid when the selected emoji is already usedManageStatesModal.jsxto computeusedColors,usedEmojis,usedColorsForEdit, andusedEmojisForEditat the component level and pass them to the respective pickers, correctly excluding the item being edited from its own used listsconstants.jsUserState.module.cssfor swatch/emoji used indicators and warning textHow to test:
npm installand start the serverTest 1 — Review button dimming:
5. Go to User Profile > Schedule 'Time Off'
6. Verify that the user marked as not available this week (shows the "Is Not Available this Week" banner) has task action buttons (Ready for Review / Submit for Review) that are visually dimmed and cannot be clicked
Test 2 — Color/Emoji indicators:⚠️ This color is already used by another state." appears below the swatches⚠️ Already in use" appears inside the picker grid
8. Go to Dashboard → any user's state → Set State → Manage States
9. Click Edit on any existing state or click Add New State
10. Open the Color picker and verify that colors already used by other states show a small red dot indicator
11. Select an already-used color and verify the warning "
12. Open the Emoji picker and verify that emojis already in use show a red dot indicator
13. Select an already-used emoji and verify the warning "
14. Verify that when editing a state, its own current color/emoji are NOT flagged as already in use
Screenshots or videos of changes:
Test 1
Before:

After:

Test 2
Before:


After:

