Skip to content

fix(mobile): a folded answered question says "answered" in an unshared thread - #1031

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/mobile-folded-answered
Nov 14, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/mobile-folded-answered

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Problem

At Checkpoint 5, a folded answered question in a thread with no other people showed only the trimmed question. "Answered" appeared only once the row was opened. In a shared thread, the folded row says "· answered by ". Closes #1028.

What changed

The folded row now ends in "· answered" when nobody is recorded as answering, so it always says the question was answered.

  • thread-work-log.tsx passes the row's existing answered flag to PromptAnsweredBy.
  • PromptAnsweredBy falls back to "· answered" when the row is an answered question and no answerer is recorded, as it already falls back to "Answered" when opened.

Unchanged:

  • shared threads ("· answered by ");
  • unanswered questions, which show nothing;
  • approvals, which show "· answered by " only when recorded.

UI changes

Android. Before is trunk 1790b3386f; after is 2ad0efa86f.

State Before After
Unshared answered question, folded Unshared answered question, folded, before Unshared answered question, folded, after
Unshared answered question, opened Unshared answered question, opened, before Unshared answered question, opened, after
Shared question answered by Priya, folded Shared question answered by Priya, folded, before Shared question answered by Priya, folded, after
Unanswered pending question Unanswered pending question, before Unanswered pending question, after

Live testing

Pass on Android at 2ad0efa86f, by the wave 6 Android tester (Sol 6.1), with real Claude Haiku questions:

  • An unshared answered question, folded, now ends in "· answered".
  • Opened, its header still reads "Answered".
  • A shared question still reads "· answered by Priya".
  • An unanswered question shows nothing.

The after-side's unshared question is a fresh question identical to the before one, because restarting the test server stopped the earlier question's turn. The answered rows are the same stored data.

Not exercised:

  • an unshared answered approval;
  • dark theme and iOS.

Upstream impact

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior: a visual change proved by captures; the seam test holds the new prop
  • UI changes: before/after above
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: recorded in FORK.md case 99
  • Upstream product: Jackson's decision is on Mobile timeline: a folded answered question shows "answered" in unshared threads too #1028; D45's update is in the wave 6 docs PR
  • Surfaces: mobile only. Web's row reads the question and answer as it did.
  • Docs: none in this PR; D45 goes in the wave 6 docs PR

Built by Claude Opus 5.5 in Claude Code, as builder-timeline in the mobile catch-up Crew.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 14, 2026 6:30am UTC

Request Review

@Jacksondr5 Jacksondr5 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Combined review: reviewer-opus and reviewer-sol (Claude Opus 5.5 and GPT Sol 6.1), head 2ad0efa

Both of us reviewed the PR independently. Neither found anything that blocks merge.

  • The rule. PromptAnsweredBy returns nothing only when there is no recorded answerer, alone is false and answered is false. answered comes only from questionAnswer plus hasQuestionAnswer, and alone (historyHasQuestion && expanded) implies it.
  • Each case.
    • An answered question in an unshared thread reads "· answered" when folded.
    • Opened with its question text below, it reads "Answered".
    • An older answer without that text keeps its question, with "· answered" after it.
    • A named answerer is unchanged: "· answered by X" or "Answered by X".
    • An unanswered question, and an approval with no recorded answerer, still show nothing.
  • Records. FORK case 99 and the seam row (answered={answered}) match, and there's no docs diff. The upstream-product / D45 box stays unticked, with the deferral to the wave 6 docs PR explained.

Code approval: the panel has no open code findings. Still pending: the captures and green J5 CI.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 effective changed lines (test files excluded in mixed PRs). labels Nov 14, 2026
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

PromptAnsweredBy now uses answer state to show an answered label when no responder is recorded. The thread work log passes that state, and the seam assertion and Case 99 documentation are updated.

Changes: Folded answered-question label

Layer / File(s) Summary
Prompt label behavior
apps/mobile/src/j5/sharing/sharedConversation.tsx
PromptAnsweredBy accepts an answered prop. It can display “· answered” without a recorded author and can append the author when available.
Answer-state wiring and supporting updates
apps/mobile/src/features/threads/thread-work-log.tsx, apps/mobile/src/j5/upstreamSeams.test.ts, FORK.md
The thread work log passes whether the entry has an answer. The seam assertion requires the prop, and Case 99 documents the no-responder label.

Estimated code review effort: 2 (Simple) | ~8 minutes

Suggested reviewers: bryantderosier

Merge Risk: Minimal · up to 2ad0e

Folded answered questions in threads without a recorded answerer will now show "· answered", and shared threads keep showing the answerer's name. The change is low risk and ready to merge once the pending Android captures confirm the visual result.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a folded answered question in an unshared thread now says "answered". It also names the mobile scope and the fix type. It matches the raw summary, which describes the …
Linked Issues check Passed Issue #1028 requires a folded answered question with no recorded answerer to show "· answered". At head, PromptAnsweredBy in apps/mobile/src/j5/sharing/sharedConversation.tsx adds an optional `ans…
Out of Scope Changes check Passed All changes support the #1028 objective. thread-work-log.tsx adds one prop. sharedConversation.tsx adds the answered prop and its fallback label logic. upstreamSeams.test.ts checks the new pro…
Description check Passed The description covers the problem (folded answered question with no recorded answerer shows only the trimmed question, closes #1028), what changed (the answered flag passed to PromptAnsweredBy with a…
Full details: Title check

Explanation

The title names the main change: a folded answered question in an unshared thread now says "answered". It also names the mobile scope and the fix type. It matches the raw summary, which describes the PromptAnsweredBy fallback and the thread-work-log.tsx prop.

Full details: Linked Issues check

Explanation

Issue #1028 requires a folded answered question with no recorded answerer to show "· answered". At head, PromptAnsweredBy in apps/mobile/src/j5/sharing/sharedConversation.tsx adds an optional answered prop. It returns null only when there is no recorded answerer and neither alone nor answered is set. When no answerer is recorded, it renders "· answered" if alone is false, and "Answered" if alone is true. thread-work-log.tsx passes answered={answered} at the existing mount (one added line in the diff). When a recorded answerer exists, the label still reads "· answered by <name>", so shared threads keep their behavior. The seam test in upstreamSeams.test.ts now asserts the new prop. The D45 docs update is a separate planned PR and is not a coding requirement for this PR. Limit: the diff does not show the declaration of the answered variable in thread-work-log.tsx. The PR summary states it is an existing flag, and this assessment relies on that statement. No automated run was performed. No test in this PR exercises the unshared-thread path directly; the seam test checks only the prop wiring.

Full details: Out of Scope Changes check

Explanation

All changes support the #1028 objective. thread-work-log.tsx adds one prop. sharedConversation.tsx adds the answered prop and its fallback label logic. upstreamSeams.test.ts checks the new prop. FORK.md records case 99 for the upstream-owned file that changed. The PR description and summary state that surfaces other than mobile, shared-thread labels, and approval labels are unchanged. The code does not contradict this. Approval behavior depends on whether the answered flag is ever true for approval rows. The diff does not show that flag's derivation, but no change in this PR appears unrelated to the objective.

Full details: Description check

Explanation

The description covers the problem (folded answered question with no recorded answerer shows only the trimmed question, closes #1028), what changed (the answered flag passed to PromptAnsweredBy with a "· answered" fallback, and the unchanged cases), before/after Android evidence, live testing with pass verdict and what was not exercised, upstream impact (case 99 in FORK.md, D45 deferred to a wave 6 docs PR), and a completed checklist. Template sections are all present. The one gap is that the Upstream impact section is not explicit about the register entry in docs/j5/product/upstream.md, and the unchecked product-decision item is left open, which is acknowledged.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

LanguageTool

FORK.md

LanguageTool checks are incomplete because the per-file request limit of 5 was reached. Remaining text was skipped; findings from completed checks are retained.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1790b33 and 2ad0efa.

Files selected for processing: 4

  • FORK.md
  • apps/mobile/src/features/threads/thread-work-log.tsx
  • apps/mobile/src/j5/sharing/sharedConversation.tsx
  • apps/mobile/src/j5/upstreamSeams.test.ts

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

@Jacksondr5
Jacksondr5 merged commit 93da915 into j5/main Nov 14, 2026
32 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/mobile-folded-answered branch November 14, 2026 07:21

This branch was successfully deployed

1 active deployment
Preview — 2ad0efa8 Deployed Nov 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile timeline: a folded answered question shows "answered" in unshared threads too

1 participant