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

Show info about missing users in schedules #4294

Merged
merged 6 commits into from
Apr 30, 2024

Conversation

brojd
Copy link
Contributor

@brojd brojd commented Apr 29, 2024

What this PR does

  • Don't show global notification if one of the rolling_users is a user that doesn't exist anymore (has been deleted)
  • In case user present in rolling_users has been either deleted or his/her role has been downgraded to Viewer, show such explicit info on UI
    image
    image

Which issue(s) this PR closes

Closes #4251

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • Added the relevant release notes label (see labels prefixed w/ release:). These labels dictate how your PR will
    show up in the autogenerated release notes.

@brojd brojd added release:enhancement PR will be added to "Exciting New Features 🎉" section of release notes pr:no public docs Added to a PR that does not require public documentation updates labels Apr 29, 2024
@brojd brojd marked this pull request as ready for review April 29, 2024 09:37
@brojd brojd requested a review from a team as a code owner April 29, 2024 09:37
@brojd brojd changed the title show info if user can't participate in rotation because was either de… Show info about missing users in schedules Apr 29, 2024
font-weight: 500;
pointer-events: none;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one blocked showing tooltip within schedule slot, it was added long time ago and as far as I tested, everything works without it. But if you remember some context about it @maskin25 , pls let me know

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, I haven't seen any issues with tooltip over schedule slot, and tooltip is attached to a higher level container, not to the title element. I forgot the reason of adding pointer-events: none here, I'm almost sure there was some reason but probably it doesn't make sense anymore after several iterations with schedules and visual components rearranging

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, thanks!

<HorizontalGroup justify={justify}>
<span>Missing user</span>
<Tooltip
content={<>{`${userName || 'User'} `} is not found or doesn't have permission to participate in the rotation</>}
Copy link
Contributor

Choose a reason for hiding this comment

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

minor it could be just a string without using Fragment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, thanks

@brojd brojd enabled auto-merge April 30, 2024 08:52
@brojd brojd added this pull request to the merge queue Apr 30, 2024
Merged via the queue into dev with commit b5d900d Apr 30, 2024
21 checks passed
@brojd brojd deleted the brojd/fix-user-not-found-in-shifts branch April 30, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates release:enhancement PR will be added to "Exciting New Features 🎉" section of release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schedules UI - "Detail: Not Found" error popup message when clicking on a rotation layer
2 participants