fix(spaces): Members button hidden in spaces by hardcoded data-space=personal (#311 follow-up) #314
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/spacemembers"
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?
Symptom
The Members button (
#spacemembers) disappeared inside spaces on the deployment.Root cause (not a redesign logic change)
The button's show-condition is byte-identical before PR1, in PR1, and now:
sm.hidden = !(feat.spaceMembers && cwd matches /spaces/<name>). PR1 did not touch it.What PR1 did add was a one-time init line:
plus the CSS
body[data-space="personal"] #spacemembers{display:none}. Becausedata-spaceis hardcoded topersonaland never updated per-view, that CSS rule fires in every view — so the Members button isdisplay:noneeven in a space (overriding the JS that correctly un-hides it). Before PR1 the attribute was never set, so the rule never matched and the button showed.Fix
Delete the redundant
body[data-space="personal"] #spacemembers{display:none}rule. The button's own JS gate already hides it in personal space (not at a/spaces/<name>root) and shows it in a space — so removing the rule restores correct behaviour without reintroducing the empty Owner column (which stays hidden via the still-hardcodeddata-space="personal", as intended until per-item owner data exists).One-line CSS removal; anchored splice (assert count==1),
node --checkon the app scripts, members JS gate asserted still present.