Embassy passports: admin Mark Ready toggle with READY badge on My Plan#65
Merged
Conversation
Adds a new ready state between submitted and received so the embassy can tell attendees their passport is finished and ready for pickup. Admin toggles ready_at on /admin/embassy_applications; attendees see a green-highlighted card with a READY badge on /plan.
|
🚅 Deployed to the ruby-embassy-pr-65 environment in ruby-embassy
|
While an application is submitted but not yet marked ready, surface a yellow Processing pill (mirroring the green Ready pill) on both the admin status column and the attendee's My Plan card, with copy explaining the embassy is processing the passport.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ready_atdatetime toembassy_applicationsso admins can mark a printed passport ready for pickup — a new state between submitted and received./admin/embassy_applicationsgains a Status column, a green Mark Ready / Unmark Ready toggle (mirroringmark_received), and the index + delivered pages now usemax-w-7xlto match other dense admin tables./planwith a READY badge and the message "Your passport is finished. Please present your application and notarization paperwork at the side table in the auditorium." — and the cancel × is hidden once ready.Test plan
/admin/embassy_applications, confirm the new Status column and that "Mark Ready" sets a green Ready pill + toggles to "Unmark Ready"./planand confirm the embassy card has a green border + glow, shows the READY badge and new copy, includes the serial, and no longer shows a cancel × button.bin/rubocop,bin/brakeman,bin/bundler-audit,bin/importmap audit, andbin/rails testall green (verified locally — 357 tests, 1165 assertions, 0 failures).