Fix #394: visibility select follows truth #399
No reviewers
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub!399
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-394"
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?
Root cause is client display state (backend proven coherent): the Settings visibility select was write-once-seeded (
getVis() === nullgate) and never followed the sharedaccess:{full}entry afterward, and its no-data-yet null rendered as "public".What this changes (frontend only, no backend, no new deps):
web/src/lib/visibilityReseed.js(createTrack/reseed/rebase/isDirty/isSeeded + docVisibility): first doc seeds value+baseline, later docs reseed BOTH while clean, dirty forms never clobbered,?? publiconly for a present doc missing the field (no-data-yet is null).Verification: new web/test/unit/visibility-reseed.test.js 9/9; full non-smoke suite 777/777 green; vite build + esbuild SDK bundle green. The 2 smoke tests fail only because they probe a live :8080 occupied by an unrelated instance (left untouched); they skip cleanly (3/3) with no server. Browser proof open (shared-daemon loopback guard).