Skip to content

fix(id-web): validate home feed shape before rendering (#7811) - #7821

Merged
dezren39 merged 3 commits into
mainfrom
queue/13984-7811-home-feed-shape
Nov 14, 2026
Merged

dezren39 merged 3 commits into
mainfrom
queue/13984-7811-home-feed-shape

Conversation

@dezren39

@dezren39 dezren39 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

refresh /api/home/feed
- cast JSON and render immediately
+ validate the entire feed before any DOM mutation
+ on malformed data, keep the previous lists and show a clean unavailable message

renderList / renderTagList
+ return before replaceChildren() when a list is malformed

Closes #7811.

Evidence

  • Before: the task packet's laptop probe on main 3bf18dc57d showed wrong-shape payloads wiping or partially rendering the lists.
  • After: bun run test -- src/home.test.ts — 6/6 passed; bun run typecheck passed; biome check web/src/home.ts web/src/home.test.ts passed.
  • Full web suite: 30/31 files and 673/683 tests passed. The lone unrelated search-panel.test.ts aria-label failure was reproduced on clean origin/main 8213f2e2b1.

Merge Danger

Door: Two-way — reverting this client-side validation restores the prior behavior.

Blast Radius: Low


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 8, 2026 21:59
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

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 minutes.

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: 36d80add-317c-4e06-a177-352a9e433c7b
Commits

Reviewing files that changed from the base of the PR and between 55d9030 and 7d2d299.

Files selected for processing: 2

  • pkgs/id/web/src/home.test.ts
  • pkgs/id/web/src/home.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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T22:40:29.144483Z
We couldn’t complete this review. Comment @codex review to try again.
7d2d299 New commits
ℹ️ 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.

@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
state: picked-up
task: 17289
lane: code-d
worker: repo-worker-code
What: Shepherding PR #7821 (fix(id-web): validate home feed shape before rendering, closes #7811). Verified fresh: PR OPEN, head 0a84d5b, no labels / no hard stops; issue #7811 OPEN; parseHomeFeed is NOT on main (code search 0). Branch 2 ahead / 2793 behind — needs a main merge before landing.
Next: merge main into the PR branch in a laptop worktree, resolve conflicts, run the targeted web tests (src/home.test.ts) + typecheck, push, then merge.

@dezren39 dezren39 added queue/claimed Queue worker lifecycle state status/in-progress Queue worker lifecycle state work/assigned Queue worker lifecycle state labels Nov 14, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
state: merge-ready
task: 17289
lane: code-d
worker: repo-worker-code
What: PR #7821 brought current and verified. Merged current main into the PR branch (merge commit 7d2d299, pushed; no conflicts). Targeted verification on the merged tree: bun run test -- src/home.test.ts 6/6 passed; bun run typecheck passed. PR mergeable=true / clean. Codex gate: the review on the new head FAILED on Codex account usage limits with zero findings delivered — no finding exists to disposition; merging on local verification per fleet rules (CI runs on main only).
Next: merge PR #7821, verify issue #7811 closes (PR says Closes #7811), complete task 17289.

@dezren39
dezren39 merged commit 5d11b65 into main Nov 14, 2026
2 checks passed
@dezren39
dezren39 deleted the queue/13984-7811-home-feed-shape branch November 14, 2026 22:41
@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
state: done
task: 17289
lane: code-d
worker: repo-worker-code
What: PR #7821 MERGED — merge commit 5d11b65; linked issue #7811 is CLOSED. Home feed shape validation (parseHomeFeed) is on main with its 6 tests passing on the merged tree and typecheck clean.
Next: none — task 17289 completes as fixed_merged.

@dezren39 dezren39 removed status/in-progress Queue worker lifecycle state queue/claimed Queue worker lifecycle state work/assigned Queue worker lifecycle state labels Nov 14, 2026
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.

id(web/home): home feed refresh shape-trusts /api/home/feed — a wrong-shape 200 wipes the rendered lists and surfaces raw TypeErrors

1 participant