Skip to content

Weekly log as guided interview - #19

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
feat/weekly-interview
Sep 20, 2026
Merged

sarthakagrawal927 merged 1 commit into
mainfrom
feat/weekly-interview

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

Summary

The weekly log is now a short guided interview instead of a single prompt:

  • Opens with one question, then asks the next most relevant question each turn until the person taps "I'm done — keep this week".
  • Kept answers stay visible as muted Q&A blocks; on save they compose into the week's entry (promptText keeps the opening question).
  • classifier.dev picks each turn's family from categorical signals: asked families are excluded from later picks, each turn is seeded so consecutive picks don't collapse, and detectThemes() runs on-device — answer prose never leaves the app. Fallback rotation covers service failure.
  • "A different question" skips the current family too, so cycling actually changes topic.
  • Existing entries render in plain edit mode ("Update this week") — no re-interviewing history.
  • NudgeSignals gains detectedThemes / askedFamilies / turn; the API route validates all three against the family taxonomy.
  • Docs (PRODUCT.md, overview) describe the interview loop.

Test plan

  • pnpm quality — all gates green
  • Unit tests: theme detection, turn-aware context, family exclusion
  • E2E: full interview flow in local mode (answer → next question → I'm done → composed entry persists across reload); axe sweep clean
  • Auth-mode save/edit still green
  • Post-merge deploy via workflow

Generated with Devin

The log now opens with one question and asks the next best question each
turn until the person says they're done; kept answers compose into the
week's entry. classifier.dev picks each turn's family from categorical
signals only — answer themes are detected on-device, user prose never
leaves the app. Asked families are excluded from later picks and each
turn is seeded so consecutive questions don't collapse to one answer.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@sarthakagrawal927
sarthakagrawal927 merged commit dc63cff into main Sep 20, 2026
3 checks passed
@sarthakagrawal927
sarthakagrawal927 deleted the feat/weekly-interview branch September 20, 2026 15:35
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