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

[#4807] Help partner to remember to submit profile for approval: #4808

Merged

Conversation

danielabar
Copy link
Collaborator

Resolves #4807

Description

A quick follow-on from #4789.

This duplicates the action buttons/links "Submit for Approval" and "Update Information" at the top of the Partner Profile view (they continue to render at the bottom of the view). Since it's a long view, this serves as a visual reminder to the partner user that they still need to submit their profile for approval.

Note that this feature is not behind the flag (Flipper.enable(:partner_step_form)) because it's useful even without step-wise editing. i.e. the partner profile view is long regardless.

Tech Notes

Took this opportunity to extract the actions to a partial with strict locals for the partner variable, which is required to determine what actions get displayed.

Type of change

New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Maintained system tests at spec/system/partners/approval_process_spec.rb

For manual testing:

  • Login as org admin
  • Create and invite a new partner
  • As a partner, accept the invitation from the email link
  • Click on "My Profile" from left nav
  • You're navigated to http://localhost:3000/partners/profile and should see the action buttons "Submit for Approval" and "Update Information" both at top and bottom of the view.

Screenshots

The same action buttons (that are actually links) added to top of view:
image

…roval:

* Duplicate partner actions at top and bottom of long view
* Extract action sto partial to avoid code duplication
* Maintain partner system tests
@danielabar danielabar requested a review from cielf November 30, 2024 11:44
Copy link
Collaborator

@cielf cielf left a comment

Choose a reason for hiding this comment

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

LGTM - Any comments, @dorner?

@cielf cielf requested a review from dorner November 30, 2024 13:47
Copy link
Collaborator

@dorner dorner left a comment

Choose a reason for hiding this comment

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

Looks good here too!

@dorner dorner merged commit f6f64e1 into rubyforgood:main Nov 30, 2024
11 checks passed
Copy link
Contributor

github-actions bot commented Dec 1, 2024

@danielabar: Your PR [#4807] Help partner to remember to submit profile for approval: is part of today's Human Essentials production release: 2024.12.01.
Thank you very much for your contribution!

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.

Add submit for approval and update information buttons at the top of the partner's profile view.
3 participants