GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(dashboard): cards that respond — Datastar shell, render-time action state, quick actions, comments (epic #1442) by dezren39 · Pull Request #1470 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Epic #1442 — the dashboard usability overhaul: all eight children in one interlocked change-set.

What shipped

#1443 — clicks land. Cards derive their effective state from the actions store at render (src/card-state.ts): a click patches in place ("✓ sent · pending", the form's controls disable, a suppressing verb tombstones the card) and the card's state is real on the very next render/fragment — an active snooze moves the card to the "Snoozed by you" strip, an acknowledged card renders quiet, and the queue counts are the visible counts. Covers tier cards and session cards, including goals-section items (keyed by objectRef, e.g. orch:goal_6f48d745f802).

#1444 — Datastar shell + async fragments. /, /today, /attention serve a light shell (nav + headings paint immediately) and stream heavy sections as datastar-patch-elements SSE from /frag/board, /frag/today, /frag/attention/{header,queues,sessions}. Datastar v1.0.0 is vendored (src/assets/datastar.js, served at /assets/datastar.js) — no runtime CDN. ?full=1 keeps the full server render (noscript meta-refresh fallback). No service worker is registered on this origin; the /sw.js kill switch is untouched.

#1445 — clickable cards + inline detail. Titles link to their GitHub issue (gh: refs); session titles link to the session; every card expands inline (source, kind/state, since, lastSeenAt, horizon, blockedBy, question payload) plus the full recorded action history.

#1446 — per-card comments. Each card carries a comment box: posts kind message for the orchestrator, plus an "Also post publicly to the GitHub issue" checkbox (gh: refs only) that adds a kind github comment — the orchestrator posts it (the aggregator holds no GitHub credentials). Existing comments render on the card with queued/posted state.

#1449 — quick actions with reason chips. Already done (mark-done, new additive verb), Dismiss chips (Already handled / No longer relevant / Duplicate / Won't do), de-escalate chips ("Orchestrator should have handled this", "Passing to orchestrator this time", "Need more info", "Need recommendations"), free-text why on the de-escalate form; proposal buttons relabelled "I accept your proposal" / "No — make another". Terminal actions suppress at render.

#1450 — unhide/restore. The snoozed strip gains pending snoozes with Unsnooze; a collapsed "Dismissed / done by you" strip lists dismissed/done cards — including refs no longer published at all — each with a Restore that writes a superseding restore action (new additive verb; the derivation cancels even an applied suppressor).

#1451 — multi-question cards. One control per question, one answers[] submit; answers merge across submits, answered questions prefill with "✓ answered", still-open required ones are marked. Boundary change: answers[] submits may be partial (the #1291 required-coverage rejection is retired for answers[]; unknown ids and bad option values still 400; a bare text answer still cannot bypass a survey).

#1456 — configurable order. Needs-you order control (Urgency / Newest / Oldest / Deadline) persisted as a set-needs-order preference action, applied at render immediately; the saved preference is the same record the orchestrator reads for its canonical order.

Performance (#1444, before → after)

Measured on the deployed service (medians of 3, loopback = laptop 127.0.0.1:4870):

page before after
/ TTFB ~1.16 s, 1,887,577 B in one block shell TTFB ~0.0016 s, 23,001 B; board fragment streams behind it (TTFB 1.41 s — the projector fan-out, unchanged)
/attention TTFB ~0.039 s, 2,119,654 B in one block shell TTFB ~0.0009 s, 25,836 B; queues fragment TTFB 0.081 s, sessions 0.065 s
/today TTFB ~0.83 s, 31,324 B shell TTFB ~0.0009 s, 18,996 B; fragment behind it
serve path / TTFB 3.26 s / total 11.1 s shell complete at 1.53 s (TTFB 1.22 s)
serve path /attention TTFB 2.81 s / total 10.3 s shell complete at 1.30 s (TTFB 1.16 s)

Honest trade: total content bytes grew (queues fragment 2.31 MB) because cards now carry their detail, action history, and comment threads inline — but it streams progressively behind a ~1 ms shell instead of arriving as one monolith after a multi-second blank wait, and the header fragment (counts, banner) lands first.

Tests

294 pass / 0 fail (baseline 273). Two boot assertions moved to the fragment endpoints they now describe; one #1291 survey test updated to the #1451 partial-answer contract; a new dashboard-overhaul suite (21 tests) covers the derivation, strips, quick bar, detail, comment box, partial surveys, and ordering. tsc --noEmit clean. E2E smoke against a temp store (fixtures): snooze → card leaves the queues for the strip; restore → strip clears; mark-done → hidden strip; set-needs-order → re-renders as saved.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dezren39 added 3 commits October 27, 2026 11:43
@dezren39
feat(aggregator): mark-done/restore/set-needs-order verbs + render-ti…
816b07a
…me card state (#1449/#1450/#1451/#1456)

- actions: triage gains mark-done (one-tap Already done) and restore
  (must name the superseded suppressor); preference gains
  set-needs-order (urgency|newest|oldest|deadline).
- card-state.ts: the render-time effective-state derivation — a
  pending snooze/dismiss/mark-done suppresses exactly like an applied
  one, a consumer rejection lifts it, a restore cancels even an
  applied suppressor, survey answers merge per question.
- tier-items: effectiveNeedsOrder mirrors effectiveStandingAuto;
  answers[] submits may be partial (#1451) — membership/value checks
  stay, required-coverage rejection goes.
- comments: byObject() grouping for per-card comment boxes.
@dezren39
feat(dashboard): cards that respond — feedback, suppression, quick ac…
8b085c3
…tions, detail, comments, order (#1443/#1445/#1446/#1449/#1450/#1451/#1456)

- Cards reflect the store at render: pending state disables the
  matching control, acknowledged cards render quiet, and suppressed
  cards leave their list immediately for the Snoozed strip or the
  new Dismissed/done strip — both with Unsnooze/Restore, including
  refs no longer published at all.
- Quick-action bar: Already done, Dismiss reason chips, and (on
  Needs User cards) de-escalate chips with Dres preset whys;
  proposal buttons now read I accept your proposal / No — make
  another.
- Titles link to their GitHub issue; every card expands inline to
  source/state/since/last-seen/horizon/blocked-by/question payload
  plus the full action history.
- Per-card comment box: message for the orchestrator + an optional
  also-post-publicly GitHub comment (gh: refs only); existing
  comments show queued/posted state.
- Surveys prefill merged answers and mark still-needed questions.
- Needs-you order control (preference-backed) re-sorts at render.
- Post-submit, forms patch in place (sent · pending, tombstone for
  suppressing verbs) and dispatch a fragment refresh; attention
  splits into header/queues/sessions section builders.
@dezren39
feat(dashboard): Datastar shell + async fragments; vendored bundle; t…
beb82bc
…ests (#1444)

- /, /today, /attention serve a light shell (headings + nav paint
  immediately) and stream their heavy sections from /frag/board,
  /frag/today, /frag/attention/{header,queues,sessions} as
  datastar-patch-elements SSE; ?full=1 keeps the full server render
  (the no-JS path, via noscript meta refresh).
- Datastar v1.0.0 vendored at src/assets/datastar.js, served at
  /assets/datastar.js — no runtime CDN, and no service worker is
  registered on this origin (/sw.js kill switch untouched).
- boot tests assert against shell + fragments; new
  dashboard-overhaul suite covers the derivation, suppression
  strips, quick bar, detail, comment box, partial surveys, order.
  Suite: 294 pass (was 273).
@dezren39
dezren39 requested a review from a team as a code owner October 27, 2026 16:45
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 45 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b37c874a-b6e0-4479-83b7-5ba7b4e0de1f
Commits

Reviewing files that changed from the base of the PR and between 1ff3413 and ecbdabe.

Files selected for processing: 10
  • pm-stack/aggregator/src/actions.ts
  • pm-stack/aggregator/src/assets/datastar.js
  • pm-stack/aggregator/src/card-state.ts
  • pm-stack/aggregator/src/comments.ts
  • pm-stack/aggregator/src/render.ts
  • pm-stack/aggregator/src/server.ts
  • pm-stack/aggregator/src/tier-items.ts
  • pm-stack/aggregator/test/boot.test.ts
  • pm-stack/aggregator/test/dashboard-overhaul.test.ts
  • pm-stack/aggregator/test/needs-user.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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-27T16:51:59.879944Z beb82bc 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
style(aggregator): treefmt on the #1442 change-set
ecbdabe
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Oct 27, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: beb82bc66a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/aggregator/src/render.ts
* shell's placeholder and the fragment payload share this shape, so
* a refresh re-patches the container with itself (attrs included). */
export function attentionFragment(section: "header" | "queues" | "sessions", innerHtml: string): string {
return `<div id="attn-${section}" data-frag data-on-load="@get('/frag/attention/${section}')" data-on-dashrefresh__window="@get('/frag/attention/${section}')">${innerHtml}</div>`;

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 27, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P1 Badge Initialize fragment requests with the supported Datastar hook

On a normal JavaScript-enabled visit, these containers never request their fragments: the vendored Datastar v1.0.0 implements data-on-load as an ordinary load event listener, but a <div> does not emit that event. Its initialization hook is data-init. Consequently, /attention stays on its loading placeholders indefinitely; the same attribute also leaves / and /today empty, and the <noscript> fallback does not help JavaScript-enabled browsers. Use the supported initialization hook for the shell placeholders.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/aggregator/src/card-state.ts
export function cancelledActionIds(actions: DashAction[]): Set<string> {
const out = new Set<string>();
for (const a of actions) {
if (a.verb === "restore" && a.state !== "superseded" && a.supersedes) out.add(a.supersedes);

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 27, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge Exclude rejected restores from suppressor cancellation

If the consumer rejects a restore of an already-applied dismiss or mark-done action, this condition still cancels the original suppressor because it excludes only superseded restores. The card therefore remains restored in the UI despite the rejected operation; if the publisher has already omitted the item, it instead disappears from the hidden strip entirely, removing the restore control. Only pending or applied restores should cancel the suppressor so a rejected undo preserves the effective dismissal.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/aggregator/src/card-state.ts
Comment on lines +76 to +77
const dismiss = latestInFamily(eff, "dismiss");
if (dismiss && dismiss.state !== "rejected") suppressors.push({ kind: "dismissed", action: dismiss });

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 27, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge Allow dismissed items to resurface when new material facts arrive

When the orchestrator republishes a dismissed item under the same object ref with a new material fact, the historical applied dismiss still suppresses it indefinitely. The existing dismissal contract in needsUserFormsHtml explicitly promises that such items resurface with the fact cited, but this derivation receives only action history and never considers the newly published item's state. Rendering a fresh same-ref item with a new since and reason still produces Needs User (0) and omits the new reason. Reconcile applied dismissals with the publisher's resurfacing state rather than requiring a manual restore for every future escalation.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pm-stack/aggregator/src/render.ts
act?.identities && act.commentOpts
? cardCommentHtml(objectRef, undefined, act.commentsByObject?.get(objectRef), act.commentOpts)
: "";
return `<div class="card${cs.acked ? " acked" : ""}" id="${cardDomId(objectRef)}"><strong><a href="/sessions#${encodeURIComponent(e.sessionId)}">${esc(e.title ?? e.sessionId)}</a></strong> <span class="badge src">${esc(src)}</span> <span class="badge ${esc(e.state)}">${esc(STATE_LABELS[e.state])}</span>${tierBadge}${sub}${cmt}${badges}<br><span class="muted">${esc(e.sessionId)} · ${esc(e.directory ?? "—")}${e.branch ? ` · ${esc(e.branch)}` : ""} · ${esc(e.model ?? "—")}${e.provider ? ` / ${esc(e.provider)}` : ""} · last activity ${fmtDate(e.lastActivityAt)} · ${esc(e.messageCount ?? "—")} msgs${e.outcome ? ` · outcome: ${esc(e.outcome)}` : ""}</span><br>${esc(evidence)}${reason}${orch}${controls}${detail}${commentBox}${kidsHtml}</div>`;

@chatgpt-codex-connector chatgpt-codex-connector Bot Oct 27, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

P2 Badge Give each rendered session-card occurrence a unique DOM ID

A tiered session is rendered both in its queue and under All sessions, so deriving both IDs solely from objectRef creates duplicate IDs across independently patched fragments. When session activity changes their ordering, the vendored Datastar morph implementation can use its global document.getElementById lookup to move the queue's card into the sessions fragment instead of reusing that fragment's own card. Executing the vendored morph helpers against a queue containing A and a sessions list changing from [A, B] to [B, A] leaves the queue empty while its reported count remains unchanged. Scope IDs to each rendered occurrence so refreshing one section cannot remove cards from another.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dezren39
dezren39 merged commit 35c097b into main Oct 27, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the feat/dashboard-async-1443-1446 branch October 27, 2026 16:54
This was referenced Oct 27, 2026
fix(dashboard): action clicks give no feedback and snoozed cards never leave — reflect the actions store at render #1443
Closed
feat(dashboard): Datastar shell + async fragment loads for the slow pages #1444
Closed
feat(dashboard): cards clickable to issue details + inline detail view #1445
Closed
feat(dashboard): comment on a card for the orchestrator, with optional public post to the GitHub issue #1446
Closed
feat(dashboard): one-tap quick actions with reason chips — already done, dismiss, accept proposal, make another, de-escalate with why #1449
Closed
feat(dashboard): unhide/restore for snoozed, sent and dismissed cards #1450
Closed
feat(dashboard): multi-question cards — render every question, submit one answers array #1451
Closed
feat(dashboard): Needs-you card order is configurable (urgency / newest / oldest / deadline) #1456
Closed
epic(dashboard): cards that respond — action feedback, Datastar async loads, clickable detail, comments #1442
Closed
@github-actions github-actions Bot assigned dezren39 Oct 27, 2026
@dezren39 dezren39 mentioned this pull request Oct 27, 2026
Projector: deploy-or-retire decision + tracking home — deploy it and re-enable, or remove it from the live story #1199
Closed
This was referenced Nov 8, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
Unowned PR batch from branch disposition (2026-11-07) #7297
Open
@dezren39 dezren39 mentioned this pull request Nov 16, 2026
watchdog: reopen issues the bot wrongly closes on merges #10105
Closed
5 tasks done
This was referenced Nov 24, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
AUDIT-7 Lane 2 — Closed-Issues Review (past month, since 2026-10-23) #13878
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@dezren39 dezren39

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.