Skip to content

improve(ui): keep personal collections quiet until used - #185632

Closed
roboclaw-bot wants to merge 2 commits into
mainfrom
openclaw/personal-collections-ux
Closed

roboclaw-bot wants to merge 2 commits into
mainfrom
openclaw/personal-collections-ux

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #181680, #185348

What Problem This Solves

An unused personal-groups section adds sidebar clutter, while first-time setup needs a discoverable path that does not look like moving a shared session.

User Impact

The section stays hidden until a collection exists; deliberately empty collections remain visible. Users can create one from Filter & sort without selecting a session, or choose Add to my collections in the existing native session menu to add a session or create a collection with it selected.

“My collections” is provisional naming for human review. This PR intentionally remains a draft. The feature remains available to solo users and guests; there is no multi-user-only gate. Shared Move to group, its guest disabled state, and session access are unchanged. No migration or permission change is required.

Why This Change Was Made

The existing native menu and compact Back behavior remain in charge; the session menu gains one organization entry, not a replacement menu. Creation, editing, and adding use the existing personal navigation preference and scoped session owner. Descriptor-only/off-page targets remain eligible, and their observation and explicit agent scope survive menu dismissal through dialog submission.

The explanation is: “Only your sidebar changes. Sessions stay in their groups.” Removing a collection never deletes sessions or changes shared group membership. Existing preference identities, browser-local guest storage, child trees, and offline presentation are retained.

Evidence

  • 88 focused tests passed across seven menu, preference, sidebar, and child-lifecycle files. The final native-menu suite also passed all 52 tests after its test-host typing correction. The unit runs took 13.47 seconds wall time for the seven-file selection and 8.01 seconds for the final menu-only run; individual changed unit files remain below five seconds of test time.
  • Seven production-bundle browser scenarios passed in 46.35 seconds wall time, including build/setup: first discovery, preselection, add to existing, no-session-selected creation, deliberate emptiness, last removal, reload, stale-editor rejection, child placement, unavailable references, off-page add/create, and narrow native Back. These scenarios exercise the actual Control UI, not a mockup.
  • The isolated real-Gateway guest flow passed: browser-local create/edit/reorder/reload/remove, child updates, denied access to another guest’s session, and no shared mutations. It took 108.20 seconds wall time, including isolated startup and compilation; its 41.56-second scenario uses two real guest clients because mocked permissions cannot establish that boundary. No model turn or deployed Gateway change was performed.
  • The unused-section regression was red on the original component and green with this change. An explicit-agent native-menu case was also red before forwarding the selected target’s agent scope and green afterward.
  • Production, UI-component-test, and UI-E2E-test typechecks; focused typed lint; format; localization verification; controller guard; and whitespace checks passed. Fresh independent AutoReview found no actionable P0–P2 issues after the off-page repair. A later mechanical test-host typing correction was revalidated with its compiler and all 52 native-menu tests.
  • The current production build passed the unchanged same-host performance gate against a8d925e: startup JS 270,448 → 271,101 bytes gzip (+653 B), below the existing 271,757 B enforcement limit; startup requests remain 5, and startup CSS is unchanged. Chat/New boot growth was 1,182/1,092 B gzip, within existing limits. No budgets or baselines were raised.

Remaining qualification: Chromium is covered; WebKit was not run. Broad PR CI and final product/naming review remain separate from this draft’s focused proof.

Visual evidence

Matched synthetic fixtures in the actual Control UI, light theme, 1280×900. The narrow native menu is 390×844. The representative pair was also delivered in the originating discussion.

Before After
Unused sidebar before Unused sidebar after
Native discovery, creation, empty collections, children, and narrow menu

Existing native session menu with one additive collection action

Native menu discovery

New collection with the selected session preselected

Collection creation

Populated and deliberately empty collections

Populated and empty collections

Children remain in both collection and original shared-group placement

Preserved child placements

Existing compact native Back navigation

Narrow native collection submenu

Implementation scope

The existing scoped editor was extracted for reuse rather than adding a second preference or menu owner. Growth is +233 production lines, +197 test lines, and +7 documentation lines against the base; it covers discovery, preselection, and retaining the session owner’s observation while the native menu closes. No CSS, persistence identities, schemas, or performance budgets changed.

Worked on by

Work sessions

roboclaw-bot and others added 2 commits October 27, 2026 07:23
Hide the unused collection section and add discovery through native sidebar and session menus. Preserve shared grouping, browser-local guest preferences, and descriptor-backed session scopes.

Co-authored-by: shakkernerd <[email protected]>
Worked on by:
- @shakkernerd

Co-authored-by: shakkernerd <[email protected]>
OpenClaw-Publication: 75583268-3e14-4386-b415-7172376ce3df
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL labels Oct 27, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR hides unused personal collections and adds creation and membership actions to existing sidebar and session menus.

Example: A user organizes Reliability Tracker into a collection named Focus.

  • Before: An unused Personal Groups heading is always visible, and creation starts from its plus button.
  • After: The empty section stays hidden; Add to my collections opens creation with Reliability Tracker selected.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and has strong Chromium evidence, but browser qualification remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: An unused personal-groups section occupies sidebar space, and its terminology can resemble moving a shared session.
Reason: The collaborator-authored direction establishes owner intent, and the change makes personal organization discoverable without introducing a setting or restricting guests and solo users.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored draft open: it provides a distinct sidebar improvement, and no concrete production defect was identified.

Priority: P3
Reviewed head: 8ccdd63d3e482ee8b1f9da40caf8680927f2a3dc

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply WebKit coverage of collection submenu navigation, compact Back, and menu-to-dialog creation under the scoped overlay policy.
Agent review details

How this fits together

The Control UI turns accessible session rows and personal navigation preferences into sidebar collections; edits use the existing preference owner without changing shared session groups.

flowchart LR
  A[Sidebar filter menu] --> C[Collection actions]
  B[Native session menu] --> C
  D[Session capability] --> C
  C --> E[Existing collection dialog]
  E --> F[Navigation preferences]
  F --> G[Sidebar collections]
Loading

Technical review

Best possible solution:

Keep the shared editor and existing preference owner, complete the browser qualification, and retain the draft until its author finishes naming review.

Do we have a high-confidence way to reproduce the issue?

Current main unconditionally renders the personal-groups heading, and the inspected matched screenshots independently demonstrate the unused-section behavior.

Is this the best way to solve the issue?

The implementation is appropriately scoped: one extracted action owner serves existing menus and preserves personal preference identities, shared grouping, and session-tree ownership.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6705c8b73782.

Provenance checked

  • Personal grouping and editor changes intended behavior with a stated reason (49aa6fc: Provide private organization of accessible conversations while preserving shared groups, child trees, and existing preference synchronization.)
  • Native session menu keeps the original intent (dc61fee: Use one owned native menu while preserving permissions, action dispatch, lazy content, focus, and compact navigation.)
  • Personal-group add-button presentation keeps the original intent (63a05a4: Keep the add button at the heading's trailing edge with transparent hover styling and visible keyboard focus.)
  • Session detail observation keeps the original intent (9cdaf71: Keep descriptor state and stale-response admission in one owner-scoped factory shared by session consumers.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 49aa6fc adds ui/src/components/personal-session-groups.tsx:39 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 49aa6fca9a21; files: ui/src/components/personal-session-groups.tsx)
  • Peter Steinberger: Raw commit b84aff5 adds ui/src/components/session-menu-actions.ts:111 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b84aff59373e; files: ui/src/components/session-menu-actions.ts)

PR surface

Source +233, Tests +197, Docs +7. Total +437 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 10 439 206 +233
Tests 4 279 82 +197
Docs 1 17 10 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 735 298 +437

Review metrics

Metric Value Why it matters
Production versus test growth Production +233 net lines; tests +197 net lines Growth supplies native discovery, preselection, and descriptor observation across menu dismissal while reusing the existing editor and persistence owner.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves sidebar clutter and collection discovery without addressing an urgent runtime failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Exercise the new collection menu and dialog flow in WebKit and provide sanitized results, redacting credentials and non-public endpoints.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 27, 2026, 3:43 AM ET / 07:43 UTC.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Closing as superseded.

Superseded by faaec72. The current personal Sections UI hides unused sections and retains creation, deliberate empty sections, personal preferences and stale-edit protection.

This closes the PR without deleting its branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant