Skip to content

Show Public/Private badge on My Plan items#13

Merged
Kitkatnik merged 2 commits intomainfrom
Kitkatnik/plan-public-badges
Apr 24, 2026
Merged

Show Public/Private badge on My Plan items#13
Kitkatnik merged 2 commits intomainfrom
Kitkatnik/plan-public-badges

Conversation

@Kitkatnik
Copy link
Copy Markdown
Collaborator

Summary

  • Adds a Public or Private badge to each item on the attendee-facing /plan page, driven by schedule_item.is_public? — mirroring what admins see on the Schedule Items index so attendees can tell official events apart from private custom items at a glance.
  • Introduces two new variants on the existing .item-badge system: .item-badge--public (soft mint filled) and .item-badge--private (gray outlined), placed next to .item-badge--custom for visual consistency.
  • No schema, controller, or model changes — uses the existing is_public boolean already backing the admin view. The existing Custom badge stays alongside since it represents a different dimension (who created it vs. who can see it).

Test plan

  • Sign in as an attendee with both public and private items on their plan and visit /plan — confirm each item shows a Public or Private badge alongside the kind badge.
  • Confirm user-created items still show Custom in addition to the new visibility badge.
  • Spot-check /admin/schedule_items — no change expected.
  • Verify badges wrap cleanly on narrow viewports.

Attendees can now tell at a glance which items on their plan are
official public events vs private custom items, matching what admins
see on the Schedule Items index. Uses the existing .item-badge pattern
with new public (filled mint) and private (outlined gray) variants.
@railway-app
Copy link
Copy Markdown

railway-app Bot commented Apr 24, 2026

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

Service Status Web Updated (UTC)
ruby-embassy ✅ Success (View Logs) Web Apr 24, 2026 at 8:43 pm

@railway-app railway-app Bot temporarily deployed to ruby-embassy / ruby-embassy-pr-13 April 24, 2026 20:38 Destroyed
Resolves conflict in app/views/plan/_plan_item.html.erb: main
introduced an embassy-appointment branch that re-indented the standard
plan-item render block. Kept main's new structure and reapplied the
Public/Private badge inside the non-embassy else branch at the deeper
indent level.
@railway-app railway-app Bot temporarily deployed to ruby-embassy / ruby-embassy-pr-13 April 24, 2026 20:42 Destroyed
@Kitkatnik Kitkatnik merged commit 13cd6e7 into main Apr 24, 2026
6 checks passed
@Kitkatnik Kitkatnik deleted the Kitkatnik/plan-public-badges branch April 26, 2026 07:02
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