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

[58242] Generalize the wp preview modal to be reused for users #16885

Merged
merged 12 commits into from
Oct 9, 2024

Conversation

HDinger
Copy link
Contributor

@HDinger HDinger commented Oct 2, 2024

Ticket

https://community.openproject.org/projects/design-system/work_packages/58242/activity
https://community.openproject.org/projects/design-system/work_packages/58267/activity

What are you trying to accomplish?

This is a preconditional work to show a little popover over users (which we currently only have for WorkPackages)

  • Refactor the existing WpPreview to be generalized and rename it HoverCard
  • The template of the modal should be a turboFrame
    • Create a HighlightedTypeComponent for WorkPackages
    • Create a (readonly) StatusButtonComponent for WorkPackages

Screenshots

Bildschirmfoto 2024-10-08 um 10 48 37

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@HDinger HDinger added the feature label Oct 2, 2024
@HDinger HDinger added this to the 15.x milestone Oct 2, 2024
@HDinger HDinger force-pushed the feature/55581-create-generic-hover-card branch 2 times, most recently from f9b1e29 to 301641a Compare October 4, 2024 08:58
@HDinger HDinger force-pushed the feature/55581-create-generic-hover-card branch 3 times, most recently from fdcf716 to 14637bb Compare October 4, 2024 12:36
@HDinger HDinger force-pushed the feature/55581-create-generic-hover-card branch from 14637bb to fb0b29b Compare October 7, 2024 08:22
@HDinger HDinger marked this pull request as ready for review October 8, 2024 07:55
@HDinger HDinger force-pushed the feature/55581-create-generic-hover-card branch from db54d4e to 28abeba Compare October 8, 2024 10:21
Copy link
Member

@oliverguenther oliverguenther left a comment

Choose a reason for hiding this comment

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

Generally, looks very good already. I noticed that when you have the card pop up at the top due to spacing constraints, there appears to be a shift in position. I also saw the hover card not appearing (first try in the video), it happens when you quickly hover and remove hover. Probably not a big issue, but we could set a timeout before closing the hover card?

Kapture.2024-10-08.at.13.44.23.webm

@oliverguenther oliverguenther merged commit a834a6f into dev Oct 9, 2024
12 of 13 checks passed
@oliverguenther oliverguenther deleted the feature/55581-create-generic-hover-card branch October 9, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants