"Now" status scan experience — show what you're currently up to
CI / policy (push) Has been cancelled
CI / backend (push) Has been cancelled
CI / profile (push) Has been cancelled
CI / mobile (push) Has been cancelled

Experience #9 (lite): a published card can carry a "Now" line shown with a live
pulsing dot, so a scanned profile reflects what the person is currently doing.

- Backend: demo publish accepts optional `now` -> definition.profile.now; test
  asserts it. Gate green (120 tests).
- Web: renders a "Now: …" block with an animated green dot. astro check clean.
- Mobile: a "Now" field on the publish screen.

Verified live alongside a link payload (CTA button).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
Omar Sobh
2026-06-05 21:15:40 -05:00
co-authored by Claude Opus 4.8
parent a61d0221d1
commit b487195def
6 changed files with 60 additions and 1 deletions
@@ -345,7 +345,8 @@ async fn demo_publish_creates_scannable_profile_with_welcome() {
"links": [{ "label": "Site", "url": "https://cardclaws.com" }],
"welcomePrompt": "a calm forest at dawn",
"welcomeMessage": "Great to meet you",
"payload": { "kind": "code", "label": "20% off", "value": "CARD20" }
"payload": { "kind": "code", "label": "20% off", "value": "CARD20" },
"now": "Building CardClaws · open to design partners"
})),
)
.await;
@@ -364,6 +365,10 @@ async fn demo_publish_creates_scannable_profile_with_welcome() {
profile["definition"]["profile"]["payload"]["value"],
"CARD20"
);
assert_eq!(
profile["definition"]["profile"]["now"],
"Building CardClaws · open to design partners"
);
}
#[tokio::test]