Skip to content

feat(j5): search people in settings - #759

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/settings-people-search
Oct 28, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/settings-people-search

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Problem

Finding someone in Settings → People required scrolling through everyone on a busy server.

What changed

Added a local search to the owner’s People list using upstream’s InputGroup search control and settings spacing. It matches partial names and person IDs without case, ignores extra whitespace in names, announces the filtered count, and provides Clear and Escape handling. Person ordering, row actions, permissions, and the Links section retain their existing behavior.

UI changes

Same 34-person test roster, light theme, and 1280×800 viewport.

State Before After
People roster with 34 people People roster before People roster after
One matching person New state One matching person
No matching people New state No matching people

Search and Clear interaction. The base has no search control.

pr759-search-clear.mp4

Loading/error states were not captured: both lists loaded normally. An empty owner roster was not captured: the first owner remains in the list.

Live testing

Pass from an independent Peer Agent in its own worktree, using j5-live-test --base origin/j5/main. Tested commit and current head: 50c4257c774b7a3fbde862b8ab60f9d02cdf9b77; base: 50e5f284634f68b8f319026074b2e9d63d7eaf8b. No source changes followed the test, so no re-test was needed.

  • Live: a 34-person owner roster; partial mixed-case/whitespace search; count and no-results message; Clear and Escape restoring all rows; focus retained after Escape; Tab/Enter opening matched-person details and actions; first-owner removal protection; a viewer’s own-row view without owner search or controls; 760×800 with no horizontal overflow.
  • Live: one real UI turn in a new test-project thread using Claude Haiku 5.5, Current checkout.
  • Not exercised live: person-ID and unnamed-label searches (covered by focused tests; named fixtures and IDs not exposed by this UI), forced loading/error states, and an empty owner roster. Desktop shell, native mobile, relay, tunnel, and a second machine were not exercised. No required hand test remains for the exercised name-search flow.
  • Not applicable: additional provider turns, restarts/recovery, interruption, migrations, fresh onboarding, agent-tool use, and peering. This change only filters the already-authorized client roster and touches none of those paths.

The isolated test servers were stopped and the base checkout cleaned up. Detailed report in J5: artifacts/test-reports/test/settings-people-search-759/50c4257c774b7a3fbde862b8ab60f9d02cdf9b77.md.

Focused checks passed:

  • vp test run apps/web/src/j5/sharing/people.logic.test.ts — 23 tests.
  • vp lint apps/web/src/j5/sharing/PeoplePage.tsx apps/web/src/j5/sharing/people.logic.ts apps/web/src/j5/sharing/people.logic.test.ts
  • vp run --filter @t3tools/web typecheck
  • git diff --check

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior (backend changes ship with focused tests)
  • UI changes: before/after screenshots above, and a video for motion or interaction — capture gaps stated above
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR — only J5-owned paths changed
  • Upstream product: any change to what upstream's product does has a human decision linked above and a register entry in docs/j5/product/upstream.md — no upstream product change
  • Surfaces: entry points, clients, providers, contracts, reverse states, connection modes (see AGENTS.md) — web and desktop share this page; mobile sharing is not implemented (Share links: sharing on mobile #609). Client-side filtering uses the existing permission-gated roster with no wire, provider, MCP, or connection-mode changes. Clear and Escape restore the full list; changing servers resets the query.
  • Docs: definitions under docs/j5/product/ and user docs rewritten where this changes them — current guidance remains accurate; this small list control needs no new documentation

Implementation: GPT-6.1-Sol, Codex in J5 Code. Independent live verification: GPT-6-Luna, Codex in J5 Code.

@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Oct 28, 2026 12:14am UTC

Request Review

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Oct 28, 2026
@github-actions github-actions Bot added the size:M 30-99 effective changed lines (test files excluded in mixed PRs). label Oct 28, 2026
Jacksondr5 added a commit that referenced this pull request Oct 28, 2026
@Jacksondr5
Jacksondr5 marked this pull request as ready for review October 28, 2026 02:17
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 50e5f28 and 50c4257.

Files selected for processing: 3
  • apps/web/src/j5/sharing/PeoplePage.tsx
  • apps/web/src/j5/sharing/people.logic.test.ts
  • apps/web/src/j5/sharing/people.logic.ts

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

Walkthrough

The people page now filters the server’s people list by name or person identifier. Search controls handle clearing and Escape, and the page displays the match count and a search-specific empty state.

Changes: People list search

Layer / File(s) Summary
People filtering logic
apps/web/src/j5/sharing/people.logic.ts, apps/web/src/j5/sharing/people.logic.test.ts
Added normalized, case-insensitive substring matching for names and person identifiers. Missing names match the displayed “Someone without a name yet” label. Tests cover whitespace, case, identifiers, and unmatched queries.
Search controls and filtered results
apps/web/src/j5/sharing/PeoplePage.tsx
Added a search input that is disabled until people data loads. Escape clears a nonempty query or blurs an empty one; Clear empties the query and refocuses the input. The count, empty state, and rows reflect the filtered list.

Priority: Low

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  actor User
  participant OwnedServerPeople
  participant filterPeople
  User->>OwnedServerPeople: Enter a search query
  OwnedServerPeople->>filterPeople: Filter sorted people by query
  filterPeople-->>OwnedServerPeople: Return matching people
  OwnedServerPeople-->>User: Show matching rows and count
Loading

Suggested reviewers: asianham

Merge Risk: Minimal · up to 50c42

No merge-blocking issue is established from the supplied evidence.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: adding People search in J5 settings.
Description check Passed The description covers the problem, implementation, UI evidence, live testing, focused checks, scope, and checklist. It is complete enough for review. The Problem section does not include a tracking i…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description covers the problem, implementation, UI evidence, live testing, focused checks, scope, and checklist. It is complete enough for review. The Problem section does not include a tracking issue link, but this is a minor omission.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@Jacksondr5
Jacksondr5 merged commit db53393 into j5/main Oct 28, 2026
42 of 44 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/settings-people-search branch October 28, 2026 02:39
Jacksondr5 added a commit that referenced this pull request Oct 28, 2026
Jacksondr5 added a commit that referenced this pull request Nov 23, 2026

This branch was successfully deployed

1 active deployment
Preview — 50c4257c Deployed Oct 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant