Skip to content

feat(admin): redesign the admin user page and edit settings in place - #1710

Merged
Quick104 merged 18 commits into
mainfrom
feat/admin-user-page-redesign
Oct 1, 2026
Merged

Quick104 merged 18 commits into
mainfrom
feat/admin-user-page-redesign

Conversation

@Quick104

@Quick104 Quick104 commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: changes #1197 C1 and #1197 C2; changes #1200 C1 and #1200 C2; reaches #1203 C1, #1207 C1, #1218 C1, and #1221 C1 (all not run yet)

The #1197 cases change on purpose: account overrides, group membership, and the effective policy are now read and edited on the Access & limits cards instead of the Edit dialog and the Permissions & Limits list. The #1195 criteria still hold. An admin can set an account-level override on any policy field (AC3), and an admin account still can't join an access group (AC4): the Library access card removes the group when the account becomes an admin. Both cases need re-validation after merge. #1200 C1 and C2 start from View as user, which now sits in the redesigned header; the impersonation flow itself is unchanged.

The admin page for a single account is hard to read and hard to edit. The Account card repeats the header, and permissions and limits are a flat list of 15 rows that marks overrides with an "(override)" suffix and never shows the value the account would otherwise get. Editing is split between a three-tab Edit dialog and a Requests panel that saves on its own. The page has six tabs, two of which list raw stored settings. It also can't show what an account has downloaded or which series its devices monitor, even though the server records both.

This change rebuilds the page around five tabs and moves editing onto the page. It also adds read-only admin endpoints for the account data the page now shows.

Approach

Tabs. The page has Overview, Access & limits, Activity, Downloads, and Preferences tabs. The selected tab is kept in the URL (?tab=), so each tab can be linked to.

  • Overview: current streams and transcodes, 30-day watch totals, requests used, recent plays, a short access summary, and profiles with when each was last used.
  • Access & limits: replaces both the Permissions & Limits list and the Edit dialog. Each card (Sign-in & role, Library access, Playback & streaming, Downloads, Requests) has its own Edit button and saves only the fields that changed, with If-Match. One card edits at a time, and leaving the page or tab with unsaved edits asks first.
  • Activity: watch history with profile and date filters and paging, the account's devices, and IP addresses marked local or remote.
  • Downloads: each device's downloads, plus the series it monitors.
  • Preferences: replaces the old Settings and Devices tabs. A list on the left shows each profile's settings for all devices, then the devices, libraries, and series it changes settings on. The right side shows only what the selected level stores, each with the value it replaces ("Replaces Main: No limit"). Settings are added from a picker grouped by category, limited to settings that level can hold, and removed with a confirmation that names the value it falls back to. Device names come from the account's own device list.

Editing details.

  • Every value is tagged DEFAULT, GROUP, or CUSTOM. A custom value also shows the value it replaces.
  • A permission the access group doesn't allow is locked and shows the reason; an assignment the group blocks can still be removed.
  • The transcoding switch and max transcodes are one control: Off, Unlimited, or Up to N.
  • Setting a password moves from the Edit dialog into the Reset password dialog, as a third option ("Set a temporary password"). That option also works on a disabled account, which can't be sent reset links.
  • The rarely used actions (Make owner, Disable, Delete) move into a ⋯ menu. Delete now offers Disable first and asks for the username to confirm.

New read-only admin endpoints (/api/v2): an account's devices, watch summary, requests used in the current window, downloads, download summary, and download subscriptions (series monitors). They're additive and documented in docs/admin-users-api.md and docs/admin-api.md.

Additive fields on existing endpoints: last_seen_at on profiles, location on IP history, an ended_after filter and series and episode fields on admin playback history, and capability flags for each new read.

Shown honestly or left out:

  • Android downloads read "Requested", because the Android app never reports that a download finished. The page says so. Android's monitored series stay on the phone and don't appear.
  • The Downloads tab loads up to 5,000 downloads and 2,000 monitored series. An account with more shows what was loaded and a note that the list is partial. Live sessions stop at 1,000 and keep what they read.
  • The page leaves out data the server doesn't record: the device used for each play, who last changed an account, app versions on devices, and the external sign-in provider's name.

Validation

  • Go: build, gofmt, vet, make lint-changed, and make test-go pass. make test-go skips database-backed tests; the new ones were run separately against a disposable migrated Postgres and pass.
  • Web: lint, format check, build, bundle budget, and make test-web pass. WEBTEST_KNOWN_FAILURES is unchanged.
  • Contracts and hygiene: every verify-* target in CONTRIBUTING.md and TestCommittedArtifactMatchesRouter pass. The contract diff reports only additive changes.
  • Manual: ran the branch in an isolated dev stack seeded with an admin, a user in an access group, a disabled account, and a second admin who isn't the owner. Compared every screen at desktop and 420px widths against the approved mockups and exercised card editing, the unsaved-changes prompt, an edit conflict with another admin (412, then Reload and review), Reset password, Delete, the view-only state, and adding and removing a device setting on the Preferences tab. External sign-in wasn't checked because the stack had no provider configured.

Evidence: https://evidence.siloserver.org/r/silo-server/admin-user-page/

Risks

  • No migration. The new endpoints are read-only and use the same admin authorization as the existing account reads (profiles, IP history).
  • An account that today overrides only the transcode count keeps that override until an admin edits the Video transcoding row, which then saves an explicit value.
  • The user manual on siloserver.org describes the old Edit dialog and needs an update issue for the new layout and the moved temporary-password option.
  • Silo apps don't use these admin endpoints. The new contract fixtures will need apiv2-fixtures-sync into silo-apple and silo-android when those repos next sync.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code, running in T3 Code
  • Tool(s): Claude Code subagents run as a multi-agent workflow (planning, implementation, integration, code review, and browser QA against the mockups)
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated. A maintainer directed and approved the design from mockups. The code has not been human-reviewed yet.
  • Adversarial review: automated reviewers on this PR found eight more issues, all fixed with tests: Delete while a card had unsaved edits, input lost while a card was saving, the Downloads tab and live sessions failing outright past their page caps, the Preferences badge loading every account's devices, the temporary-password length check counting UTF-16 units instead of characters and bytes, Android downloading rows labeled as Downloading, and account request limits missing from the custom counts. Before that, an independent agent reviewed the full diff for authorization on the new endpoints, correctness of policy edits and conflict handling, and behavior lost from the old page. It found an Edit crash on Max quality (high), stale fields sent after Reload and review (medium), and three low issues: no temporary password for disabled accounts, blocked permissions that couldn't be removed, and Android requests counted as downloads. All five are fixed, with tests. Two browser QA passes compared the running page with the mockups; the differences they found were fixed and re-checked.

Note

Redesign admin user page with in-place settings editing and new activity/download views

  • Rebuilds the admin user detail page into tabs (Overview, Access & limits, Activity, Downloads, Preferences) with URL-driven tab selection and in-place card editing for account settings and policies
  • Adds six admin API endpoints: account devices, watch summaries, managed downloads, download summaries, download subscriptions, and request usage; playback history gains ended_after filtering and series/episode metadata
  • Adds shared card-editing lifecycle with ETag/412 conflict handling, an unsaved-changes guard, and in-place editing of sign-in, library, downloads, playback, and request policy cards
  • Preferences tab groups stored settings by account, profile, device, client, library, and series level with add/remove editing
  • Risk: deletes AccountRequestsPanel.tsx and the old inline edit modal in AdminUserDetail.tsx; apiv2.Dependencies gains optional service slots that return errors when unset, and new capability flags gate the new endpoints and UI panels

Macroscope summarized d64c6b8.

Split the account page into Overview, Access & limits, Activity,
Downloads, and Preferences tabs. Each Access & limits card edits in
place, which replaces the Edit dialog, and the Reset password dialog
gains a temporary-password option.

Add read-only v2 admin endpoints for an account's devices, watch
summary, request usage, downloads, download summary, and series
monitors, plus additive fields on profiles, IP history, playback
history, and the users capability.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-01T15:27:44.158548Z 94e4a2c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Too many files!

This PR contains 108 files, which is 8 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 005ec3c3-174a-4332-b478-a9fdf35117d9

📥 Commits

Reviewing files that changed from the base of the PR and between 8943abc and d64c6b8.

📒 Files selected for processing (108)
  • contracts/api/v2/fixtures/admin_account_capabilities.json
  • contracts/api/v2/fixtures/admin_account_devices.json
  • contracts/api/v2/fixtures/admin_account_download_subscriptions.json
  • contracts/api/v2/fixtures/admin_account_download_summary.json
  • contracts/api/v2/fixtures/admin_account_downloads.json
  • contracts/api/v2/fixtures/admin_account_ips.json
  • contracts/api/v2/fixtures/admin_account_profiles.json
  • contracts/api/v2/fixtures/admin_account_watch_summary.json
  • contracts/api/v2/fixtures/admin_request_user_usage.json
  • contracts/api/v2/fixtures/get_system_info_ok.json
  • contracts/api/v2/fixtures/index.json
  • contracts/api/v2/fixtures/list_admin_playback_history_ok.json
  • contracts/api/v2/openapi.json
  • docs/admin-api.md
  • docs/admin-users-api.md
  • internal/api/handlers/admin_bigint_db_test.go
  • internal/api/handlers/admin_devices_service.go
  • internal/api/handlers/admin_playback_history.go
  • internal/api/handlers/admin_playback_history_test.go
  • internal/api/handlers/admin_users_service.go
  • internal/api/handlers/admin_users_service_test.go
  • internal/api/handlers/admin_watch_summary.go
  • internal/api/handlers/admin_watch_summary_test.go
  • internal/api/router.go
  • internal/api/testdata/media_routes.txt
  • internal/apiv2/admin_account_activity.go
  • internal/apiv2/admin_account_downloads.go
  • internal/apiv2/admin_account_downloads_test.go
  • internal/apiv2/admin_account_insights.go
  • internal/apiv2/admin_account_insights_fixtures_test.go
  • internal/apiv2/admin_account_insights_test.go
  • internal/apiv2/admin_accounts.go
  • internal/apiv2/admin_accounts_fixtures_test.go
  • internal/apiv2/admin_accounts_test.go
  • internal/apiv2/admin_playback_history.go
  • internal/apiv2/admin_playback_history_test.go
  • internal/apiv2/admin_request_usage.go
  • internal/apiv2/document.go
  • internal/apiv2/document_test.go
  • internal/apiv2/fixtures_test.go
  • internal/apiv2/router.go
  • internal/downloads/admin_read.go
  • internal/downloads/admin_read_test.go
  • web/src/api/v2/adminUserActivity.test.ts
  • web/src/api/v2/adminUserActivity.ts
  • web/src/api/v2/operations.ts
  • web/src/api/v2/schema.ts
  • web/src/components/AdminUserDeleteDialog.test.tsx
  • web/src/components/AdminUserDeleteDialog.tsx
  • web/src/components/AdminUserPasswordResetDialog.test.tsx
  • web/src/components/AdminUserPasswordResetDialog.tsx
  • web/src/components/settings/RegistrySettingControl.tsx
  • web/src/hooks/queries/admin/userActivity.ts
  • web/src/hooks/queries/admin/users.settings.test.ts
  • web/src/hooks/queries/admin/users.ts
  • web/src/lib/settingsDisplay.test.ts
  • web/src/lib/settingsDisplay.ts
  • web/src/pages/AdminUserDetail.test.tsx
  • web/src/pages/AdminUserDetail.tsx
  • web/src/pages/admin-users/AccountRequestsPanel.tsx
  • web/src/pages/admin-users/detail/UnsavedCardGuard.tsx
  • web/src/pages/admin-users/detail/UserDetailHeader.tsx
  • web/src/pages/admin-users/detail/UserDetailTabs.tsx
  • web/src/pages/admin-users/detail/access/AccessTab.test.tsx
  • web/src/pages/admin-users/detail/access/AccessTab.tsx
  • web/src/pages/admin-users/detail/access/DownloadsPolicyCard.tsx
  • web/src/pages/admin-users/detail/access/EditableCard.tsx
  • web/src/pages/admin-users/detail/access/LibraryAccessCard.tsx
  • web/src/pages/admin-users/detail/access/PlaybackCard.tsx
  • web/src/pages/admin-users/detail/access/PolicyRow.tsx
  • web/src/pages/admin-users/detail/access/RequestsCard.test.tsx
  • web/src/pages/admin-users/detail/access/RequestsCard.tsx
  • web/src/pages/admin-users/detail/access/SignInCard.tsx
  • web/src/pages/admin-users/detail/access/policySources.test.ts
  • web/src/pages/admin-users/detail/access/policySources.ts
  • web/src/pages/admin-users/detail/access/useAccountCardDraft.test.tsx
  • web/src/pages/admin-users/detail/access/useAccountCardDraft.ts
  • web/src/pages/admin-users/detail/activity/ActivityTab.test.tsx
  • web/src/pages/admin-users/detail/activity/ActivityTab.tsx
  • web/src/pages/admin-users/detail/activity/DevicesCard.tsx
  • web/src/pages/admin-users/detail/activity/IPAddressesCard.tsx
  • web/src/pages/admin-users/detail/activity/WatchHistoryCard.tsx
  • web/src/pages/admin-users/detail/cardEditing.tsx
  • web/src/pages/admin-users/detail/downloads/DeviceDownloadsCard.tsx
  • web/src/pages/admin-users/detail/downloads/DownloadsTab.test.tsx
  • web/src/pages/admin-users/detail/downloads/DownloadsTab.tsx
  • web/src/pages/admin-users/detail/downloads/MonitoredSeriesCard.tsx
  • web/src/pages/admin-users/detail/downloads/downloadPresentation.test.ts
  • web/src/pages/admin-users/detail/downloads/downloadPresentation.ts
  • web/src/pages/admin-users/detail/format.test.ts
  • web/src/pages/admin-users/detail/format.ts
  • web/src/pages/admin-users/detail/overview/AccessSummaryCard.tsx
  • web/src/pages/admin-users/detail/overview/DetailsCard.tsx
  • web/src/pages/admin-users/detail/overview/OverviewTab.test.tsx
  • web/src/pages/admin-users/detail/overview/OverviewTab.tsx
  • web/src/pages/admin-users/detail/overview/ProfilesCard.tsx
  • web/src/pages/admin-users/detail/overview/RecentlyWatchedCard.tsx
  • web/src/pages/admin-users/detail/overview/StatsRow.tsx
  • web/src/pages/admin-users/detail/overview/WatchingNowCard.tsx
  • web/src/pages/admin-users/detail/preferences/AddSettingPicker.tsx
  • web/src/pages/admin-users/detail/preferences/LevelSettings.tsx
  • web/src/pages/admin-users/detail/preferences/PreferencesTab.test.tsx
  • web/src/pages/admin-users/detail/preferences/PreferencesTab.tsx
  • web/src/pages/admin-users/detail/preferences/SettingJsonDialog.tsx
  • web/src/pages/admin-users/detail/preferences/levels.test.ts
  • web/src/pages/admin-users/detail/preferences/levels.ts
  • web/src/pages/admin-users/detail/ui.tsx
  • web/src/pages/admin-users/detail/userDetailTabs.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@kody-ai

kody-ai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@macroscopeapp

macroscopeapp Bot commented Sep 30, 2026

Copy link
Copy Markdown

#1197 C1 and C2 passed on Web admin build 807 · d4e35ba9. This PR replaces the tested Edit dialog and Permissions & Limits view with card editors; C1’s policy editing and C2’s persisted-group/effective-policy checks now use materially changed controls. Please explain why these validated workflows are changing and re-validate both cases after merge.

The Validation tasks: line omits #1197 C2 and #1218 C1; #1218 C1 includes per-user bandwidth limits now edited in Playback. #1203 C1, #1218 C1, and #1221 C1 are currently not run.

Suggested fix (no code diff):
Validation tasks: changes #1197 C1; changes #1197 C2; reaches #1203 C1, #1218 C1, and #1221 C1 (all not run)

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1a1ff4ab4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread web/src/api/v2/adminUserActivity.ts Resolved
Comment thread web/src/pages/AdminUserDetail.tsx Resolved
Quick104 and others added 7 commits September 30, 2026 10:13
activity_log.user_id references users, so the test failed on a fresh
database before it could check last_active_at.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Reuse the existing download and subscription row scanners in the admin
reads, share one authority check and page loader in the activity client,
and replace nested conditional expressions in the cards, header, and
dialogs with early returns or lookups. Behavior is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…redesign

# Conflicts:
#	contracts/api/v2/fixtures/get_system_info_ok.json
#	internal/api/router.go
The merge combined both sides' OpenAPI changes, so the digest in the system info fixture changed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The Downloads tab threw away every row once an account had more than 5,000 downloads or 2,000 series monitors. It now keeps what it loaded and says the list is partial.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
After a delete, the unsaved-changes guard blocked the redirect and offered to save a draft for the deleted account.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A successful save resets the draft, so input typed during the request was dropped.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@kody-ai

kody-ai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@Quick104

Copy link
Copy Markdown
Contributor Author

Updated the Validation tasks: line in the description as suggested: it now lists #1197 C1 and C2 as changed and #1203 C1, #1218 C1, and #1221 C1 as reached. It also says why the #1197 workflows change and why the #1195 criteria still hold.

Reply written by Claude Code (claude-opus-5-5).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cb6577be8b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread web/src/api/v2/adminUserActivity.ts Resolved
Quick104 and others added 3 commits October 1, 2026 09:13
The Preferences badges called useAdminUserDeviceSettings, which reads the server-wide device list to name devices. The counts now come from the account's own setting values; the device list loads only when Per device is open.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
An account with more than ten pages of live sessions made the Overview and Activity lose every live row. The loader now returns what it read.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The dialog counted UTF-16 units. The server requires at least 8 characters and at most 72 UTF-8 bytes, so some passwords the dialog accepted were refused, and the reverse.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@kody-ai

kody-ai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@macroscopeapp

macroscopeapp Bot commented Oct 1, 2026

Copy link
Copy Markdown

#1200 C1/C2 passed on Web admin build 807 · d4e35ba9. The impersonation flow is unchanged, but both cases visit the redesigned account-detail header/layout, a minor UI change that merits a re-check after merge.

The new Overview's Watching now card also reads and displays account live sessions, reaching #1207 C1 (not run). The Validation tasks: line omits #1200 C1/C2 and #1207 C1.

Suggested fix (no code diff):
Validation tasks: changes #1197 C1 and #1197 C2; changes #1200 C1 and #1200 C2; reaches #1203 C1, #1207 C1, #1218 C1, and #1221 C1 (not run)

Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed.

Posted via Macroscope — v1 validation impact

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4f9254c4cf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Quick104 and others added 2 commits October 1, 2026 09:50
Android never reports progress, so its downloading rows are requests, as the stat tile already counted them. The row and series badges now agree.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The request approval and limit live in the account's request-limit record, so the Overview summary and the Access & limits badge missed them. Both now count them, and the Overview tags them.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@kody-ai

kody-ai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@Quick104

Quick104 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Updated the Validation tasks: line as suggested: it now lists #1200 C1 and C2 as changed (View as user moved into the redesigned header; the impersonation flow is unchanged) and #1207 C1 as reached by the Overview's Watching now card.

Reply written by Claude Code (claude-opus-5-5).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e3b8ef6164

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The Preferences tab listed every profile's settings in one view and each device's in another, with raw keys and long descriptions, which was hard to read for an account with several devices. It now lists each profile with its devices, libraries, and series on the left, and shows only the settings the selected one stores, with the value each replaces. Settings are added from a categorized picker and removed with a confirmation. Device names come from the account's own device list.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@kody-ai

kody-ai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 457f6486f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Quick104 and others added 3 commits October 1, 2026 11:21
…nge didn't

The Requests card writes the request limit before the account PUT. When the PUT then failed, the card reported the whole save as failed although the limit had persisted.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Those devices have no detail page, so the link led to a 404.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…nces

"Replaces" now follows each setting's resolution order and says when an app-family, device, or library value can apply in between, in the row and the picker. A setting this version doesn't know is view-only, since a save couldn't keep its JSON type. Retrying an add after a partial failure skips settings that already landed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@kody-ai

kody-ai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 94e4a2ccbb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…is unknown

Profile last use comes only from device registrations, and a failed registry read also returns no time. The Profiles card now says "No device activity" instead of "Never used".

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@kody-ai

kody-ai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@Quick104
Quick104 merged commit 30e3b43 into main Oct 1, 2026
5 of 12 checks passed
@Quick104
Quick104 deleted the feat/admin-user-page-redesign branch October 1, 2026 16:14
Quick104 added a commit that referenced this pull request Oct 1, 2026
Main now holds #1697 as a squash commit, so this carries only this
branch's own changes onto it. It also regenerates the v2 OpenAPI
artifact, web types and contract fixtures, which went stale on main when
#1697 merged after #1710 and #1731.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Quick104 pushed a commit that referenced this pull request Oct 3, 2026
* ci: fail on paths that collide on case-insensitive file systems

Linux CI checks out two tracked paths that differ only in case without
complaint, so the collision only surfaces when someone builds on macOS
or Windows. #1710 added UserDetailTabs.tsx next to userDetailTabs.ts;
the extensions differ, but an extensionless TypeScript import resolves
to either, and the macOS build failed.

scripts/ci/casecollisions lists tracked files and fails on paths
(files or directories) that are equal ignoring case, and on JS/TS
modules that are equal ignoring case once .d.ts, .ts, .tsx, .js, .jsx,
.mjs or .cjs is removed. Files imported with their extension, such as
App.tsx next to app.css, are not reported.

make verify-case-collisions runs it, and the Repository checks job,
which runs on every PR and push, calls that target.

Closes #1817

* ci: treat a directory index module as its directory's import path

An extensionless import of ./UserDetailTabs resolves to
UserDetailTabs/index.ts on a case-sensitive file system and to a
sibling userDetailTabs.ts on a case-insensitive one, but the checker
compared UserDetailTabs/index with userDetailTabs and let the pair
through.

An index module (index with any module extension) now also answers to
its directory's path, and that alias is compared with sibling modules
the same way. A same-case sibling (foo/index.ts beside foo.ts) still
passes, because the resolver picks the same file on every file system,
and an index module beside a stylesheet is not a module pair.

* ci: run the case-collision checker from main

The Repository checks step skipped the check when the checked-out tree
had no scripts/ci/casecollisions, so a pull request that deleted the
checker also turned it off.

The step now builds the checker from this workflow's commit on main,
the way the job-selection tools are already loaded, and runs it over
the files tracked in the PR checkout. Deleting or editing the branch's
copy no longer changes the gate, and a branch cut before the checker
existed is checked too, so there is no missing-script case left to
allow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant