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

[57090] Extract success/confirmation dialog content into common component #167

Conversation

HDinger
Copy link
Collaborator

@HDinger HDinger commented Aug 22, 2024

Ticket

https://community.openproject.org/projects/openproject/work_packages/57090/activity

What are you trying to accomplish?

  • Create a generic FeedbackMessage component
    • Use Blankslate internatlly
    • Predefine color and icon, but make it configurable
    • Added tests
    • Added documentation in Lookbook (previews)
  • Create a generic FeedbackDialog component
    • It should use the FeedbackMessage
    • There should be a slot for some additional content
    • Per default, the footer only has a close button, but additional ones can be added
    • Added tests
    • Added/updated documentation in Lookbook (previews)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

Copy link

changeset-bot bot commented Aug 22, 2024

🦋 Changeset detected

Latest commit: 55bfcf7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@openproject/primer-view-components Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@HDinger HDinger force-pushed the code-maintenance/57090-extract-successconfirmation-dialog-content-into-common-component branch 4 times, most recently from c6b0988 to 0b0ecef Compare August 27, 2024 06:37
@HDinger HDinger force-pushed the code-maintenance/57090-extract-successconfirmation-dialog-content-into-common-component branch 5 times, most recently from e643417 to 278b3c3 Compare August 28, 2024 12:18
@HDinger HDinger marked this pull request as ready for review August 28, 2024 12:23
@HDinger HDinger force-pushed the code-maintenance/57090-extract-successconfirmation-dialog-content-into-common-component branch 2 times, most recently from e974d00 to 8c4ad29 Compare August 29, 2024 06:58
Copy link

github-actions bot commented Aug 29, 2024

⚠️ Visual differences found

Our visual comparison tests found UI differences. Please review the differences by viewing the files changed tab to ensure that the changes were intentional.

Review visual differences

@HDinger HDinger requested a review from oliverguenther August 29, 2024 15:23
@oliverguenther oliverguenther merged commit 599c8e6 into main Sep 3, 2024
36 checks passed
@openprojectci openprojectci mentioned this pull request Sep 3, 2024
@dialog = Primer::Alpha::Dialog.new(title: @system_arguments[:title], subtitle: nil, visually_hide_title: true, **@system_arguments)
end

delegate :header?, :header, :with_header, :with_header_content,

Choose a reason for hiding this comment

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

👍 I like that you also did this as wrapper!

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