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

Refactor plugin details modal using Vue #22055

Merged
merged 31 commits into from
Apr 25, 2024
Merged

Conversation

michalkleiner
Copy link
Contributor

@michalkleiner michalkleiner commented Mar 27, 2024

Description:

Ref. DEV-17864 and DEV-17371

Refactor plugin details view from back-end twig template to Vue template so that Start Free Trial action can be integrated into the modal.

Implement new modal design with sticky header and footer. CTA action in the modal is the same as on the card (just without the More details that would open the modal itself).

The legacy modal and its CSS was kept unchanged.

Once initial review is done we can think of adding UI tests for the new modal.

Review

@michalkleiner michalkleiner force-pushed the DEV-17864-plugin-cta-in-modal branch from a3ad606 to 2a53496 Compare March 28, 2024 05:12
@michalkleiner michalkleiner marked this pull request as ready for review March 28, 2024 05:21
@michalkleiner michalkleiner added c: Marketplace For issues that affect the Matomo Plugin Marketplace where you can download plugins. c: Design / UI For issues that impact Matomo's user interface or the design overall. Needs Review PRs that need a code review labels Mar 28, 2024
@michalkleiner michalkleiner added this to the 5.1.0 milestone Mar 28, 2024
@michalkleiner michalkleiner requested a review from mneudert March 28, 2024 05:22
@michalkleiner michalkleiner removed the Needs Review PRs that need a code review label Apr 1, 2024
@michalkleiner michalkleiner marked this pull request as draft April 1, 2024 22:05
@michalkleiner
Copy link
Contributor Author

Moving to draft as parked internally for now.

@sgiehl sgiehl removed this from the 5.1.0 milestone Apr 15, 2024
@michalkleiner michalkleiner force-pushed the DEV-17864-plugin-cta-in-modal branch from 2a53496 to a20d808 Compare April 16, 2024 23:54
@michalkleiner michalkleiner force-pushed the DEV-17864-plugin-cta-in-modal branch 2 times, most recently from e861b0d to 8b909ba Compare April 23, 2024 14:55
@michalkleiner michalkleiner marked this pull request as ready for review April 23, 2024 14:56
@michalkleiner
Copy link
Contributor Author

@mneudert I'd appreciate another review — the markup for the modal was refactored to use flexbox with a fixed header and footer and only the content should be scrolling now. For other decisions please refer to JIRA DEV-17371, e.g. keeping the CTA behaviour the same as on the plugin card, the discussion around the featured plugin (for now next to the title) or the removal of the promo content section (not used).

@michalkleiner michalkleiner added the Needs Review PRs that need a code review label Apr 23, 2024
@michalkleiner michalkleiner requested a review from sgiehl April 23, 2024 15:02
Copy link
Member

@mneudert mneudert left a comment

Choose a reason for hiding this comment

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

I like how fluffy and responsive this feels, compared to the old modals 🤗

@michalkleiner michalkleiner force-pushed the DEV-17864-plugin-cta-in-modal branch from 6938c61 to 8468dba Compare April 24, 2024 05:06
Remove showActionsOnly flag and replace it with inModal flag as PO agreed to display the same actions
in the modal as on the plugin card, except the More details button which would open the modal so it
wouldn't make sense to display that.
Both components were doing the same thing in a different form of a link (text vs button),
so these got merged with props to control the button block look and the label.
@michalkleiner michalkleiner force-pushed the DEV-17864-plugin-cta-in-modal branch from e987f42 to c98d1e9 Compare April 24, 2024 13:01
@michalkleiner michalkleiner requested a review from mneudert April 24, 2024 13:03
@mneudert mneudert force-pushed the DEV-17864-plugin-cta-in-modal branch from d3355ad to 9fda8e1 Compare April 25, 2024 15:56
@mneudert mneudert force-pushed the DEV-17864-plugin-cta-in-modal branch from 9fda8e1 to 5f1df8f Compare April 25, 2024 17:01
@mneudert mneudert merged commit 884eb59 into 5.x-dev Apr 25, 2024
22 of 25 checks passed
@mneudert mneudert deleted the DEV-17864-plugin-cta-in-modal branch April 25, 2024 17:47
@mneudert mneudert added this to the 5.1.0 milestone Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Design / UI For issues that impact Matomo's user interface or the design overall. c: Marketplace For issues that affect the Matomo Plugin Marketplace where you can download plugins. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants