Skip to content

Embassy passports: admin Mark Ready toggle with READY badge on My Plan#65

Merged
Kitkatnik merged 2 commits into
mainfrom
Kitkatnik/passport-ready
Apr 30, 2026
Merged

Embassy passports: admin Mark Ready toggle with READY badge on My Plan#65
Kitkatnik merged 2 commits into
mainfrom
Kitkatnik/passport-ready

Conversation

@Kitkatnik
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a ready_at datetime to embassy_applications so admins can mark a printed passport ready for pickup — a new state between submitted and received.
  • Admin /admin/embassy_applications gains a Status column, a green Mark Ready / Unmark Ready toggle (mirroring mark_received), and the index + delivered pages now use max-w-7xl to match other dense admin tables.
  • Attendees see a green-highlighted card on /plan with 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

  • As admin, visit /admin/embassy_applications, confirm the new Status column and that "Mark Ready" sets a green Ready pill + toggles to "Unmark Ready".
  • As the attendee whose application was just marked ready, visit /plan and 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.
  • Confirm "Mark Received" still moves the row to the Delivered list as before.
  • CI: bin/rubocop, bin/brakeman, bin/bundler-audit, bin/importmap audit, and bin/rails test all green (verified locally — 357 tests, 1165 assertions, 0 failures).

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.
@railway-app
Copy link
Copy Markdown

railway-app Bot commented Apr 30, 2026

🚅 Deployed to the ruby-embassy-pr-65 environment in ruby-embassy

Service Status Web Updated (UTC)
ruby-embassy ✅ Success (View Logs) Web Apr 30, 2026 at 7:36 pm

@railway-app railway-app Bot temporarily deployed to ruby-embassy / ruby-embassy-pr-65 April 30, 2026 19:29 Destroyed
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.
@railway-app railway-app Bot temporarily deployed to ruby-embassy / ruby-embassy-pr-65 April 30, 2026 19:35 Destroyed
@Kitkatnik Kitkatnik merged commit feceb5d into main Apr 30, 2026
6 checks passed
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.

1 participant