Repository navigation
Remove dead disable prop from post detail Page - #526
Conversation
Neither our Page wrapper nor FLUID's Page declares a disable prop; both
spread ...rest onto the root element, so disable={ item.hasLock } reached
the DOM and React logged a non-boolean attribute warning on every render
of the post detail screen.
The prop was a leftover from 65ec165 and never did anything. Post lock
behavior is handled by LockView's fl-asst-lock-view styling, the alert
message, and the footer's hasLock guard.
Closes #525
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Merge CheckState: ready, lane TLDRDeletes one unused prop so the post detail screen stops logging a React console warning; post locking works exactly as before. ReviewHuman review: @rahulwalunje approved at this head (2026-10-07). Clean, no open blockers. Sanity checkLow risk: right fix. Sanity check detailLane: none. No lane trigger fired: no stored data, no public surface, no dependency, no access-control gate, and no visible change to a surface (the prop never rendered anything).
Test plan
Agent playbookPreconditions: the assistant repo built (
Run history
bb-merge-check · head:6942c4b · state:ready · risk:none |
Removes a
disableprop that no component consumes, so React stopped forwarding it to the DOM and logging a warning on every render of the post detail screen:Cause
src/system/ui/pages/post/index.jspasseddisable={ item.hasLock }to<Page>. Neither ourPagewrapper (src/system/ui/pages/index.js) nor FLUID'sPage(@beaverbuilder/fluid) declares adisableprop — both spread...restonto the root element, so it reached thedivand React rejected it as an unknown attribute.The prop was dead code, a leftover from 65ec165 ("Added back post lock logic that was lost in merge"). Post-lock behavior is unchanged and still comes from:
<LockView isLock={ item.hasLock }>→fl-asst-lock-viewappliespointer-events: none; opacity: 0.2to the formLayout.Messagealert shown whenitem.hasLockfalse === item.hasLockguard on the footerTesting
disablewarning in the consoleeslintcleanOne line deleted, no behavior change. The separate
findDOMNode is deprecatedwarning on this screen comes from the third-partyreact-clipboard.jsdependency and is out of scope.Closes #525
🤖 Generated with Claude Code