fix(openworlds): settings — #317 - #368
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughSingle-file update to ChangesScreen Settings UI Clarification
Possibly related issues
Possibly related PRs
Poem
🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Comment |
Summary
Fixes a cluster of polish/wiring bugs in the Settings screen (
viewer/openworlds/screen-settings.jsx). All changes are additive, scoped to that single file, and reuse patterns already present in it (PreviewBanner,SectionTitle,BrassButtontitle/onClick).Addresses #317.
Root cause + what changed, per issue
#317 (1) — Native Actions buttons had no tooltips.
The six buttons in the "Native Actions" panel (Start/Stop Viewer, Start/Stop Provider, Copy Diagnostics, Debug Dashboard) supervise local processes but gave no hint of what they do on hover.
BrassButtonalready forwards an optionaltitle(used elsewhere for action-bar hints), so each button now carries a concise descriptivetitle=.#317 (2) — Display section was missing the honest-UI PreviewBanner.
Every other prototype section (Sound, Gameplay, Controls) shows a
<PreviewBanner>so players know the controls are decorative. Display was missing one. Display is a mixed section: UI scale is genuinely functional (it drives--ui-scaleon<html>, backed by real CSS and persisted viaOpenWorldsA11y), while Contrast/Atmosphere/Window are previews. To avoid falsely labelling the live control as dead, I mirrored the Accessibility section's pattern: the live UI-scale slider stays at the top, then aDivider+Not yet wiredSectionTitle+PreviewBannerprecede the preview controls, with banner copy that explicitly notes UI scale above is live.#317 (3) — About buttons (Patch notes / Licenses / Report a bug) were unwired.
All three were dead
<BrassButton>s with noonClick. They now open in a new tab viawindow.open(..., "_blank", "noopener,noreferrer"):https://github.com/electricsheephq/WorldOS/issues/new(as specified).CHANGELOG.mdon GitHub.THIRD_PARTY_NOTICES.mdon GitHub.Plus: appended
stack-on-narrowto the top-level gridclassName(the existing.stack-on-narrowrule instyles.csscollapses the 220px + 1fr grid to a single column on narrow viewports).Testing
No heavy local tests run (per repo policy, CI runs in the cloud). Verified locally: the diff is additive and scoped to one file; delimiters balance; every new construct (
PreviewBanner,SectionTitle,Divider,BrassButtonwithtitle/onClick,window.open) already exists in this file. CI's babel transform + viewer static tests will exercise the JSX on this PR.Merge note
Do NOT close on merge — verify on the next build's playtest.
Summary by CodeRabbit
Bug Fixes
Style