Owners page spams SOCIAL not-found error toasts #150
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub#150
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Owners page spams "SOCIAL: not found" error toasts
On
/(see screenshot): red error toastsSOCIAL:O/R-FORK not found: repo o/r-fork not foundandSOCIAL:E2E/DEMO2-FORK not found: repo e2e/demo2-fork not found.Initial analysis (to verify in the fix):
GET …/api/social, activity stamps viaGET …/commits?n=1) surface backend 404s into the error tray instead of failing silently.O/R-FORK) while the listed rows are lowercase (o/r-fork) — find where the uppercase key comes from (social fetch keyed off a wrong-cased name? activity stamp? a different listing source?) and fix the source; a fetch for a repo outside the visible list should never happen.Acceptance criteria
node --testgreen; browser check of/with a missing-repo row, both themes, zero toasts + zero console errors; no new deps.Fix ready for review: #151 (branch fix/issue-150, onto main, not merged). TL;DR root cause: ghost rows are real fork-leftover state (fork.json without child manifest → prefix-listed but manifest-gated reads 404), and the UPPERCASE is just the tray .chip CSS uppercasing the lowercase social:o/r key — no wrong-cased fetch exists. Fix: shared tolerateMissing helper makes 404s on per-row auxiliary fetches silent (star count hidden, stamp shows no-commits-yet). node --test 322 green; browser proof on a seeded scratch stack: 0 toasts dark+light, zero JS exceptions.
PR #151 review (fix/issue-150) — verified in scratch worktree, all claims check out.
ROOT-CAUSE CLAIMS:
TOLERATEMISSING SEMANTICS (web/src/lib/data.js:77-82):
AUDIT COMPLETE:
PLACEHOLDER BEHAVIOR SANE:
LAWS: law 1 (no package.json/lock change — 5 files only, no new deps), law 7 (404 -> explicit empty/hidden state, real errors still tray — compliant), law 8 (no new seams, component-level mapping only), law 12 (decision appended to 12_web_ui.md in same change). No Go changes, so no vet/cover impact.
TESTS (scratch worktree @
5370d7a; node_modules symlinked from main worktree since worktrees don't carry ignored dirs):No fixes needed — nothing to push.
MERGE RECOMMENDATION: ready to merge.
Fixed by PR #151 (review: ghost-row mechanism + CSS-uppercase confirmed, 404-only tolerance verified; 322/322 node tests), merged. Closing.