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

Feat: Add new pill for advanced payments #3318

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

iamsamgibbs
Copy link
Contributor

Description

This PR adds a "New" pill which appears next to newly added actions in the action select menu to make them stand out.

Testing

  • Step 1: Create a new action and open the "Choose action type" select menu
  • Step 2: Check the "Advanced payment" has the "New" pill next to it
Screenshot 2024-10-14 at 11 19 57

Diffs

New stuff

  • 'isNew' prop added to the SearchItem component

Resolves #2709

@iamsamgibbs iamsamgibbs self-assigned this Oct 14, 2024
@iamsamgibbs iamsamgibbs marked this pull request as ready for review October 14, 2024 10:40
@iamsamgibbs iamsamgibbs requested review from a team as code owners October 14, 2024 10:40
Nortsova
Nortsova previously approved these changes Oct 14, 2024
Copy link
Contributor

@Nortsova Nortsova left a comment

Choose a reason for hiding this comment

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

Nice and simple fix, thank you @iamsamgibbs

image

By the way, do we have any plans or tickets for "Coming soon" label?

@iamsamgibbs
Copy link
Contributor Author

By the way, do we have any plans or tickets for "Coming soon" label?

🎉 Not that I know of, but I could see it be needed in the future so thought it best to leave intact.

jakubcolony
jakubcolony previously approved these changes Oct 14, 2024
Copy link
Collaborator

@jakubcolony jakubcolony left a comment

Choose a reason for hiding this comment

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

Nice work on the badge @iamsamgibbs 👍
image


The issue is a few months old and we've since added split and staged payments, so I'm wondering if they should also get the New label.

@iamsamgibbs
Copy link
Contributor Author

Oh, you are completely correct, let me check with Mel which actions this should apply to.

@iamsamgibbs iamsamgibbs dismissed stale reviews from jakubcolony and Nortsova via d8842e2 October 15, 2024 09:01
@iamsamgibbs
Copy link
Contributor Author

Added the "New" pill to both Split payment and Staged payment too.

Copy link
Member

@rdig rdig left a comment

Choose a reason for hiding this comment

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

Yep, shows up and looks nice. 💯

Screenshot from 2024-10-15 13-18-29
Screenshot from 2024-10-15 13-18-38
Screenshot from 2024-10-15 13-18-43

@jakubcolony jakubcolony merged commit 76dfa84 into master Oct 15, 2024
4 of 6 checks passed
@jakubcolony jakubcolony deleted the feat/2709-new-pill-for-advanced-payments branch October 15, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Action dropdown: New pill for Advanced Payments
4 participants