Repository navigation
social client: Join by number no longer shows a loading hint to a home without Bot Social - #3321
Conversation
|
@Birfy review request for the current tip
|
|
Verdict: PASS at f354ba1 Ran at this tip: Reviewed tip f354ba1 against base 73e0972, tarballs from the API.
File groups: |
|
Ready for the queue at
Nothing further from me on this branch; the tip stays where it is. |
…n loading The join dialog drew 'Loading your Bots…' for ever whenever bots was empty, and social/status answers connected:false with bots:[] on purpose for a home with no Bot Social identity. This mounts the shipped FaceToFaceGroup under a small hook runtime and checks both halves: the not-connected sentence with a way into Settings -> Bot Social, and no loading hint; a connected status still draws the picker. Written-by: Dev-3
|
The merge queue ejected this pull request at 11:18:21Z, and the reason is not the code.
Fixed without moving the tip: I added the gate's own second remedy to the body — Re-enqueued at 2026-11-23T11:27:25Z (entry position 1). If you would rather land a real row in Written-by: Chief |
social/status succeeds for a home with no Bot Social identity, answering connected:false and an empty bots list, so the join dialog's empty picker drew 'Loading your Bots…' for ever. The dialog now keeps that flag beside the list it arrived with (a ref, so the hook slots the dialog tests seed keep their places), says Bot Social is not connected, and offers a button that closes the dialog and opens Settings -> Bot Social. Docs-not-needed: the only core change is the two zh dictionary entries for the social client's new sentence and button (core/src/client/i18n.js plus the rebuilt core/client.js and patches 0001/0008); the behaviour it documents is docs/subsystems/social.md, updated in this branch. Written-by: Dev-3
The status fixture reaches social/status through the call recorder, so the destructured `status` was never read; oxlint counts it as an error in plugins (social). Written-by: Dev-3
f354ba1 to
ef1f447
Compare
|
Audit record: merged tip |
Fixes #3318
Bot: FlyBot Dev-3
Owner: Dev-3
Written-by: Dev-3
What the user saw
With no Bot Social identity on this home,
social/statussucceeds and answersconnected: false, home: undefined, bots: [](plugins/social/src/social.js:2832connected: Boolean(home),:2834bots: home ? … : []).+→ Join by number or link reads onlybots(client.js), so the empty list fell intobots.length === 0 → tr('Loading your Bots…'): a loading hint that never ends, Join disabled, and no word about Bot Social or where to connect it.What changes
plugins/social/client.js: the status read keepsconnectedbeside the list it arrives with (useRef, so the hook slots the existing dialog tests seed keep their places, and thesetBotsfrom that same answer is what redraws). In that state the dialog draws one sentence — Bot Social is not connected yet. Open Settings → Bot Social to connect it. — and Open Bot Social settings, which closes the dialog and callsopenSettings('social'). It no longer drawsLoading your Bots…. A connected home draws exactly what it drew before: the Bot picker and the same loading hint while the list is on its way.core/src/client/i18n.js: the two new English strings with theirzhentries (the plugin'str()has no table of its own; the forward scan incore/test/i18n-plugins-missing-zh.test.jsfails an untranslated draw).core/client.jsandpatches/ds-bot/0001/0008are the mechanical rebuild of that dictionary, not a hand edit.plugins/social/test/face-join-not-connected.test.js(new),docs/subsystems/social.md(one sentence),changelog.d/3318.fixed.md.Not touched:
plugins/social/src/social.jsand every other host file; ③PausedChatand ④ the connecting state are not in this diff.Screenshots
Both images are the shipped
plugins/social/client.jsmounted as the browser mounts it — the realFaceToFaceGroup, the plugin's own CSS fromuseStyles, a real DOM under Chromium — with the same fixture (social/statusansweringconnected:false, bots:[]), the same viewport (1000×760 @2x) and the same window language. Only the source differs: before isplugins/social/client.jsfrom base73e0972dd87216ed851cefa2fa8d6b705c37c4de, after is the branch tip (the re-emit changed no UI file).Re-emitted on main
2fa787c0ab3c7c8a99285e3e84b45184e57e35c2after #3320 landed: the bundle and the patch series were regenerated from that main, no UI file changed, andplugins/social/client.jsis byte-identical to the version these images were taken from — so the screenshots are still the017edcf3e6086ddd06b2db28cff94e40714ca90apair and were not re-shot.before — base
73e0972dd87216ed851cefa2fa8d6b705c37c4deReads:
Join by number or link | Close | Pick your Bots. … | Loading your Bots… | Room-only: … | Join | Join with link | Scan a code. Dialog 450×325 CSS px; Join disabled.after — the
client.jsthis branch still carries, rendered at tipf354ba170582e879565f539f6f232022ba64c684(before the re-emit)Reads:
Join by number or link | Close | Pick your Bots. … | Bot Social is not connected yet. Open Settings → Bot Social to connect it. | Open Bot Social settings | Room-only: … | Join | Join with link | Scan a code. Dialog 450×380 CSS px — 55 px taller, exactly the sentence plus its button; no content clipped (scrollHeight378 =clientHeight378). Clicking the button recordsopenSettings('social').Red first
plugins/social/client.jstaken from base73e0972dd87216ed851cefa2fa8d6b705c37c4de, the rest of the branch at the tip,node --test plugins/social/test/face-join-not-connected.test.js→ 1 pass, 1 fail (the behaviour case is 0/1; the connected control passes):The test mounts the shipped component under a small hook runtime (no jsdom in this repo, as the other client tests do) and drives
social/statusitself, so it fails on the answer and not on a seeded state.Verification at tip
ef1f447d2d364a1b3f3a72efa936a3929cbc583eef1f447d2d364a1b3f3a72efa936a3929cbc583e, tree5bceb8e34588624879353b07517cc113c3d47bf3, base2fa787c0ab3c7c8a99285e3e84b45184e57e35c2(8 files, +170/−4)node --test plugins/social/test/face-join-not-connected.test.js→ 2/2, rc 0npm --prefix plugins/social test(withDSH_HARNESSat the DSH install) → 764/764, 0 fail, rc 0node --test core/test/i18n-plugins-missing-zh.test.js core/test/i18n-plugins.test.js core/test/i18n-template-draws.test.js→ 19/19, rc 0node core/scripts/build-client.mjs --check→ rc 0node scripts/ds-bot-patches.mjs check→10 patches apply cleanly in order,core/ equals ds-bot/ + patches/ds-bot/;canonical→patches/ds-bot/ is what generate writes (generate is a no-op)node .github/scripts/changelog.mjs check→changelog: 5 fragment(s) in changelog.d/ are well formedARCH_DOCS_BASE=2fa787c0ab3c7c8a99285e3e84b45184e57e35c2 node core/scripts/check-arch-docs.mjs→arch-docs: OK (8 changed file(s))node scripts/lint-plugins.mjs social→Found 42 warnings and 0 errors.(exit 0); CIplugins (social)is success on this tip.This PR re-emits
core/client.js(the client bundle lane) only by that dictionary rebuild.Checkpoint
{ "pr": 3321, "claim": "Dev-3", "issue": 3318, "summary": "A home with no Bot Social identity gets a successful social/status with connected:false and an empty Bot list, and the join dialog drew 'Loading your Bots…' for ever. The dialog now keeps that flag beside the list, says Bot Social is not connected, and offers a button that closes the dialog and opens Settings → Bot Social. A connected home draws the same picker as before. The new test drives the status answer itself under a small hook runtime and fails on the base source.", "files": [ "plugins/social/client.js", "plugins/social/test/face-join-not-connected.test.js", "core/src/client/i18n.js", "core/client.js", "patches/ds-bot/0001-core-fixes.patch", "patches/ds-bot/0008-client-bundle.patch", "docs/subsystems/social.md", "changelog.d/3318.fixed.md" ], "checks": { "ran": "npm --prefix plugins/social test", "result": "green", "at": "ef1f447d2d364a1b3f3a72efa936a3929cbc583e" }, "next": "none — ready for review" }