Skip to content

FTUE: example day in the simple mode, reflection shown on demand; consent after the first entry - #6

Merged
dukobpa3 merged 2 commits into
mainfrom
ftue-consent-after-first-event
Oct 22, 2026
Merged

dukobpa3 merged 2 commits into
mainfrom
ftue-consent-after-first-event

Conversation

@dukobpa3

@dukobpa3 dukobpa3 commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

First-run work for the journal. The simple mode stays the default; the reflection mode is shown as the occasional deeper layer, not the base.

Empty state. Two sentences on the loop and two buttons: Add the first entry and See an example day.

Example day (stage 1, simple mode). Adds yesterday's twelve sample entries (EN/UK; one bad moment, −7, among many small good ones) and opens the day report: it feels like a bad day and adds up to +3. The reflection mode is not turned on. The entries are normal and carry ids starting with example-.

Tour card (stage 2). While the example is in the archive, a card above the list says this is how you live in the simple mode, and that when you want to look closer at an entry you switch on the reflection mode (profile menu → Mode). Show reflection mode turns it on, fills in a sample reflection for the −7 entry (the second score, +3, changes the day's total) and opens it. After that the card says the mode is on and can be switched back, "most days you will not need it". Remove the example deletes the sample entries. Events: example_added, example_reflection_shown, example_removed.

Consent popup timing. No longer at launch: offered once per session after the first saved entry (not after the example), and still when the user taps sync. "Allow" is remembered, a refusal is not. Funnel: anonymous app_open → event_saved → popup → consent_granted (with an identifier) / consent_declined (anonymous).

Verified in a browser (web): the empty state shows both buttons and no popup; the example day opens its report in the simple mode with 12 entries; the card appears on the list; Show reflection mode turns the mode on, writes the protocol (score −7, reflection score +3) and shows the four answers; the card switches to its second text; Remove the example leaves no entries and no card. svelte-check clean. I did not drive the real capture form to its Save button; the consent offer sits right after eventStore.add in handleCaptureSave.

The old single-entry example from the previous version of this PR is gone. The landing work is in #7.

🤖 Generated with Claude Code

…e first entry

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T08:34:08.450096Z 85757c1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

…lection mode

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dukobpa3 dukobpa3 changed the title FTUE: empty state with an example, consent after the first entry FTUE: example day in the simple mode, reflection shown on demand; consent after the first entry Oct 22, 2026
@dukobpa3
dukobpa3 merged commit 094475f into main Oct 22, 2026
1 check passed
@dukobpa3
dukobpa3 deleted the ftue-consent-after-first-event branch October 22, 2026 09: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.

1 participant