Repository navigation
fix(app): don't open a blank Thread view for a missing ticket thread - #3393
Conversation
|
Thanks @sx4im. Showing a clear "Conversation unavailable" view instead of a blank Thread, when a ticket's thread is archived, deleted or not loaded yet, is the right fix. The CI failures,
|
38cd587 to
d6eb6f9
Compare
|
Thanks @sx4im, and thanks for the One housekeeping change on your branch: two of the commits carried a personal email address as author, and we keep those out of the main branch's history, so we rewrote those two commits' author to your GitHub noreply address. The code is byte-for-byte the same and you're still credited as the author. Please pull before you push again (
|
A ticket keeps its threadId after its thread is archived or deleted, so [Open] on a ticket-review approval row navigated to a thread id with no loaded thread and ThreadView rendered nothing. Only offer [Open] when the thread is loaded, and show an explanation instead of a blank view when a thread id has no loaded thread anyway. Fixes ashhart#3387
The new model.test.ts passes {} for a ticket with no thread, but the
parameter type Pick<Ticket, 'threadId'> requires the property. The
implementation already treats a missing threadId as no Open target, so
widen the parameter to match: threadId is optional.
d6eb6f9 to
5d103a6
Compare
|
Thank you @sx4im. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
What this changes
Pressing [Open] on a ticket-review approval row opened a blank window titled "Thread" when the ticket's thread was archived or deleted. A ticket keeps its threadId after its thread goes away, and ThreadView rendered nothing for a missing thread.
After: [Open] appears only when the ticket's thread is actually loaded, and opening any thread id with no loaded thread shows "Conversation unavailable" with a way back home instead of a blank view.
atc overlap --json: could not run in this sandbox (the atc CLI shells out togh, which has no auth here). Claimed via/atc claimon the issue (comment 6885484318). Overlap checked through the API instead: no open PR references App: Tensorfold Desktop — [Open] on an Approvals task shows a blank "Thread" window #3387, and none of the newest open PRs touches these files.Checks on this head
python3 tools/zig/lean_check.py, on the base and on this head: no change in scope, the checker scanszig/andtools/zig/only and this PR touchesapp/src/only, so the counts are identical with 0 new findings.app/src/components/command-centre/model.test.ts(5 assertions) run locally with node 22.23.2: fails before the change (no such export), passes after ("ticket-review Open target passed"). The test needs no app dependencies; CI runs it throughrun-tests.mjs.npm testandnpm run typecheckneednode_modules, which this sandbox cannot install (home disk quota is exhausted and /tmp is full); the Desktop app itself cannot run here (no macOS). No Zig changes, so nozig buildsteps apply.Receipt
n/a, app-only change, it cannot reach inference.
Checklist
Fixes #3387