Skip to content

Mobile / Bridge "Done" stamp#2676

Merged
jayohms merged 12 commits intomainfrom
mobile/bridge-done-stamp
Mar 17, 2026
Merged

Mobile / Bridge "Done" stamp#2676
jayohms merged 12 commits intomainfrom
mobile/bridge-done-stamp

Conversation

@adjogima
Copy link
Contributor

@adjogima adjogima commented Mar 9, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a Hotwire Native Bridge “stamp” component so the native layer can display card status (“Done” / “Not Now”) with associated metadata, along with styling tweaks to improve the mobile/perma layout.

Changes:

  • Wrap the “Done” and “Not Now” stamp markup with data-controller="bridge--stamp" and expose bridge_title, bridge_date, and bridge_by via data attributes.
  • Extend BridgeElement with getStamp() (plus getDate() / getBy()) and introduce a new bridge/stamp_controller to send the stamp payload over the bridge.
  • Update native/mobile CSS positioning and perma-card styling to accommodate the stamp layout.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
app/views/cards/display/common/_stamp.html.erb Adds bridge controller + data attributes for native stamp payload.
app/javascript/initializers/bridge/bridge_element.js Adds getStamp() and helpers to read new bridge attributes.
app/javascript/controllers/bridge/stamp_controller.js New bridge component controller that sends stamp payload on connect/disconnect.
app/assets/stylesheets/native.css Adjusts native perma-card spacing and background/border treatments.
app/assets/stylesheets/card-perma.css Adjusts mobile stamp positioning and removes some mobile-only perma padding rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adjogima adjogima requested a review from jayohms March 17, 2026 10:12
@adjogima
Copy link
Contributor Author

adjogima commented Mar 17, 2026

@jayohms I realized that the web stamp view is also used in the boards which means dozens of stamps trying to connect to the bridge when you visit a board page.
Instead of making the web stamp view more complicated I added a scope CSS selector to the stamp's controller, so it connects only if it's within scope. Wdyt?

jayohms and others added 3 commits March 17, 2026 07:43
* main: (43 commits)
  Remove payment/subscription system and card/storage limits
  Conditionally disable peer verification for ZIP streaming
  Prevent HTML injection through filenames
  Revert "Configure Lexxy to add extra spacing between block elements"
  Configure Lexxy to add extra spacing between block elements
  SaaS usage reporting (#2690)
  Update app/models/user/named.rb
  Prevent line breaks in the middle of familiar_name
  Tweak the layout
  Set the list of importable models based on the record sets in the manifest
  Validate polymorphic types against importable models allowlist
  Fix that the "maybe" stream wouldn't be replaced after triaging a card
  Use x_user_agent cookie for platform detection in Hotwire Native
  Add JSON response format to entropy endpoints (#2673)
  Fix path traversal vulnerability in ActiveStorage blob key import
  Enable CORS fetch mode for storage requests
  Revert CORS fetch mode for Active Storage
  Use CORS fetch mode for Active Storage to enable `maxEntrySize` checks
  Only start offline mode when signed in
  Exclude service worker and edit/pin/watch/new pages from main cache
  ...
@jayohms jayohms merged commit e65db18 into main Mar 17, 2026
12 checks passed
@jayohms jayohms deleted the mobile/bridge-done-stamp branch March 17, 2026 16:24
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.

3 participants