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
7826 - Calendar Custom Colors #8661
base: main
Are you sure you want to change the base?
Conversation
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.
Looks good but can we make it accept the color names too.
i.e. ruby-10 -> ruby-100
and azure-10 -> azure-100
(for all color categories)
Otherwise looks good to me
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.
Event title in the Right Side event summary is not visible in some modes
- https://7826-calendar-custom-colors-enterprise.demo.design.infor.com/components/calendar/test-event-custom-colors.html?theme=new&mode=light&colors=default
- https://7826-calendar-custom-colors-enterprise.demo.design.infor.com/components/calendar/test-event-custom-colors.html?theme=new&mode=contrast&colors=default
Different event color displayed in Classic
e.g see Administrative Leave event color as the same as with Discretionary time off
https://www.loom.com/share/88671fa3af1243eca5431566a6c95169?sid=5fda1792-3d65-405f-96b3-e3579907023e
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 color doesn't change when changing the event type.
Steps to reproduce:
- Create new event by double clicking the desired date
- Select type (eg. Discretionary Time Off)
- Click
Submit
button - Click the created event
- Change the event type then click again the
Submit
button - Change again the event type to Discretionary Time Off
- Notice the event color
Screen.Recording.2024-05-03.at.3.44.39.PM.mov
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.
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.
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.
Hi @tjamesallen15 I can still replicate the issue
https://www.loom.com/share/d6c7e610651f4b85b0c2a54c853a3e8b?sid=9f83321d-b4f9-4a57-b9e7-2bd538f52759
966956b
@tjamesallen15 can you use lighter colors in this example https://7826-calendar-custom-colors-enterprise.demo.design.infor.com/components/calendar/test-event-custom-colors.html Just change to colors in the first 3 rows https://main-enterprise.demo.design.infor.com/components/colors/example-index.html (10-30) |
c3e59d6
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.
Updating the event seems to revert to the default colors.
Screen.Recording.2024-05-21.at.6.58.14.PM.mov
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.
@tmcconechy @ericangeles see the qa findings above. there are to types of json files here. one with custom-types, one with custom events. calendar loads the with custom events (following its colors saved) my understanding is that it is a special events that's why it have a custom colors preloaded. should we save the colors of the custom colors? |
@tjamesallen15 I dont think that we should commit the custom colors and change the data. But if they override it on the API it should use the overrride (in all cases). So might just be checking: if overridden use that ELSE use the data |
@tjamesallen15 @ericangeles @tmcconechy, the color persist after updating it without changing the event type. When changing the event type, the color still remains the same. Is this expected or the color should be tied on the event type? Screen.Recording.2024-05-24.at.3.22.27.PM.mov |
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.
Explain the details for making this change. What existing problem does the pull request solve?
This pull request will fix custom colors render of events.
Related github/jira issue (required):
Closes #7826
Steps necessary to review your pull request (required):
Included in this Pull Request: