Skip to content
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

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open

Conversation

tjamesallen15
Copy link
Contributor

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:

  • An e2e or functional test for the bug or feature.
  • A note to the change log.

@tjamesallen15 tjamesallen15 marked this pull request as ready for review April 30, 2024 01:52
@tjamesallen15 tjamesallen15 requested a review from a team as a code owner April 30, 2024 01:52
Copy link
Member

@tmcconechy tmcconechy left a 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

tmcconechy
tmcconechy previously approved these changes May 2, 2024
@tmcconechy tmcconechy added the ready for qa Ready for QA to review label May 2, 2024
Copy link
Contributor

@janahintal janahintal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@glenlieorillo glenlieorillo left a 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:

  1. Create new event by double clicking the desired date
  2. Select type (eg. Discretionary Time Off)
  3. Click Submit button
  4. Click the created event
  5. Change the event type then click again the Submit button
  6. Change again the event type to Discretionary Time Off
  7. Notice the event color
Screen.Recording.2024-05-03.at.3.44.39.PM.mov

Copy link
Contributor

@jbrcna jbrcna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

title not visible in new theme and off in classic theme
image
image

Also,
event changes color when creating different events

Large GIF (694x542)

janahintal

This comment was marked as off-topic.

Copy link
Contributor

@glenlieorillo glenlieorillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tab color for Sick Time is different.
image

When you change the view to Week/Day, the color is changed.

  • Month View
image
  • Week View

image

  • Day View
image
Screen.Recording.2024-05-06.at.7.23.21.PM.mov

@tjamesallen15
Copy link
Contributor Author

@janahintal

tmcconechy
tmcconechy previously approved these changes May 9, 2024
Copy link
Contributor

@janahintal janahintal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tjamesallen15 tjamesallen15 dismissed stale reviews from n-ace-ancog and tmcconechy via 966956b May 20, 2024 04:25
@tjamesallen15
Copy link
Contributor Author

Done. please check again ty.
image

ericangeles
ericangeles previously approved these changes May 20, 2024
tmcconechy
tmcconechy previously approved these changes May 20, 2024
@tmcconechy
Copy link
Member

@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
Its just that it shows a color contrast issue on the page we shouldnt encourage.

Just change to colors in the first 3 rows https://main-enterprise.demo.design.infor.com/components/colors/example-index.html (10-30)

@tjamesallen15 tjamesallen15 dismissed stale reviews from tmcconechy and ericangeles via c3e59d6 May 21, 2024 05:32
Copy link

@n-ace-ancog n-ace-ancog left a 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

Copy link
Contributor

@jbrcna jbrcna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opening an event and do nothing but submit changes the event color.
before
image

after
image

@tjamesallen15
Copy link
Contributor Author

@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)
user click the custom event and press save
reverts back to the color saved from custom types not with the custom-events

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?

@tmcconechy
Copy link
Member

@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

@n-ace-ancog
Copy link

@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

Copy link
Contributor

@jbrcna jbrcna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating an event does not update its color.
image
also, the color of the header and title could be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calendar: Override the color of one event within an event type
7 participants