Skip to content

๐Ÿคฏ LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

21.7 KB
Raw Blame

Worked example โ€” Settings area (่ฎพ็ฝฎๅŒบ) systemic audit

A real run of this skill against the whole settings area (personal /settings/* + workspace /:slug/settings/*), 2026-07. Unlike the per-page examples, this is a systemic / IA-level pass: it audits the shared shell and cross-tab consistency rather than one surface. Use it as the template for a "audit an area as a system" run; per-tab deep-dives are separate runs (see ยง6).

Layers run: L1 (static / code) โœ… โ€” everything below. L2 / L3 โณ not run.

Scope & blind spot: personal 26 + workspace 15 = 41 surfaces. Business-injected tabs are empty stubs in this OSS repo (return null): workspace general / members / audit-log / plans / billing / credits / usage, personal notification / plans / credits / billing / referral / usage (src/business/client/BusinessSettingPages/*). L1 from this repo cannot audit them โ€” they need the cloud build (L2/L3) or the business package. Findings below cover the shared shell + the ~17 code-readable tabs.

Surface map (load-bearing files)

  • Personal shell: src/routes/(main)/settings/_layout/index.tsx (SideBar + Outlet), _layout/Body/index.tsx (accordion nav), _layout/Header.tsx (breadcrumb), features/SettingsContent.tsx (tab dispatch + SettingContainer wrap), tab catalog hooks/useCategory.tsx.
  • Workspace shell: src/features/WorkspaceSetting/Layout.tsx, SideBar/Body.tsx, Container/index.tsx, catalog hooks/useCategory.tsx.
  • Mobile catalog (3rd copy): src/routes/(mobile)/me/settings/features/useCategory.tsx.
  • Tab enums: SettingsTabs (src/store/global/initialState.ts), WorkspaceSettingsTabs (src/types/workspaceSettings.ts).

1 โ€” Patterns in use (systemic)

Pattern (family) Where Rating Note
Global Navigation / Fat Menu sidebar Accordion, 4 groups (_layout/Body/index.tsx) โœ… grouped, default-expanded
Deep-linking /settings/:tab, :tab/:sub (messenger/discord) โœ… URL restores tab
Visual Framework SettingContainer maxWidth=1024, personal + workspace โœ… consistent chrome
Breadcrumbs _layout/Header.tsx โ€” single "่ฎพ็ฝฎ" level โš ๏ธ doesn't deepen per tab
Search / Jump-to-setting โ€” โ€” abs. ~25 tabs, no search (gap โ‘ค)
Titled Sections / FormGroup per-tab Form / FormGroup โœ…
Good / Smart Defaults autosave-on-change is the dominant model โœ… no explicit Save button
Failure + Retry โ€” โ€” abs. area-wide (gaps โ‘ โ‘ก)
Loading Skeleton most tabs skeleton; Creds / Profile use antd Spin โš ๏ธ ยง4.1 (gap โ‘ฅ)
Empty-state as onboarding Devices / Creds / Messenger have CTA empties โœ… highlight
Entity lifecycle Devices / APIKey / Creds full CRUD, Devices bulk-select โœ…

Read: navigation / layout / defaults are mature; data-tab empty states are good. Weakness clusters hard in Feedback (failure + autosave feedback) and cross-tab consistency / IA.

2 โ€” Strengths / good cases (don't regress)

The settings area is strong where it counts โ€” these are the โœ… half of the ๅ›ž็Œ loop and the "don't regress" baseline for each per-tab deep-dive:

  • โœ… ไบฎ็‚น โ€” Grouped accordion nav over consistent chrome. The sidebar Accordion splits ~25 tabs into 4 default-expanded groups (_layout/Body/index.tsx) over a SettingContainer maxWidth=1024 shell shared by both personal and workspace, so every tab wears the same chrome. Navigation / layout / defaults are the mature core the rest hangs off.
  • โœ… ไบฎ็‚น โ€” CTA-carrying empty states on the data tabs. Devices / Creds / Messenger render their "nothing here yet" branch as onboarding with a next-step CTA, not a dead end โ€” the empty state doubles as the entry point to configure the feature.
  • โœ… ไบฎ็‚น โ€” Full entity lifecycle with bulk-select. Devices / APIKey / Creds ship complete CRUD, and Devices adds bulk-select for mass management (DeviceManager.tsx), the excellent empty + bulk-select combo the per-tab pass called out.
  • โœ… ไบฎ็‚น โ€” Storage import path is well-built. The import flow is a proper state machine (preview + progress), the one pocket of resilience craft in a tab whose destructive clear-all is otherwise the audit's biggest stakes (Advanced.tsx).
  • โœ… ไบฎ็‚น โ€” Creds secret-masking + 2-variant empty. Credentials mask secrets and carry a 2-variant empty state (CredsList.tsx) โ€” the right handling for sensitive values, and the โœ… half of a tab whose error-as-empty leg still needs fixing.
  • โœ… ไบฎ็‚น โ€” Workspace Body validates the tab enum. SideBar/Body.tsx:25 validates the active tab against WorkspaceSettingsTabs โ€” the โœ… contrast to personal's silent-Appearance fallback for unknown deep-links (SettingsContent.tsx:40, gap โ‘ง).

3 โ€” Experience gaps (ranked)

โ‘  No error/retry anywhere in the settings area โ€” ux ยง4.2 ๐Ÿ”ด Not one tab has a terminal failure + retry. Two failure modes: (a) init-flag set only on success โ†’ permanent skeleton: Storage (storage/index.tsx:18), Memory (memory/features/Memory.tsx:28), ServiceModel (features/ServiceModel/ModelAssignmentsForm.tsx:64), Profile (profile/index.tsx composite isLoading); (b) SWR/Query error swallowed โ†’ empty or infinite spinner: Devices (features/DeviceManager/DeviceManager.tsx:331), Messenger, Creds, Stats, APIKey. Only recovery is a full app reload. The single biggest, most uniform issue.

โ‘ก Autosave failures are silently swallowed โ€” ux ยง4.2 / ยง3.5 ๐Ÿ”ด Dominant save model is Form onValuesChange โ†’ setSettings. Appearance, Advanced, Hotkey (Essential/Conversation) give no success and no failure feedback โ€” a toggle that failed to persist looks identical to one that succeeded (config-loss / trust). Profile / Desktop-hotkey / Proxy do surface an error but offer no retry.

โ‘ข Save feedback is fragmented across tabs โ€” Certainty (consistency is semantic) ๐ŸŸ  Same intent ("change a setting") โ†’ different feedback: silent (Appearance/Advanced/hotkey- essential), inline message.success (Desktop hotkey), notification.success (Profile password), toast on test not save (Proxy). Form / SettingContainer / FormGroup provide layout but no save-state affordance, so nothing forces convergence.

โ‘ฃ Error indistinguishable from empty โ€” ux Read ยง1.1 ๐ŸŸ  Stats, Messenger, Creds render their "no data" branch on a failed fetch (data === undefined), so "load failed" masquerades as "nothing configured" (Messenger noPlatformsConfigured, Stats empty charts).

โ‘ค No settings-wide search โ€” surface-class benchmark ๐ŸŸ  ~25 personal tabs in 4 groups; mature settings surfaces (VSCode / Slack / GitHub / macOS) ship settings search / jump-to-setting. The shell has only accordion nav + breadcrumb โ€” no search input. A class- norm gap a code-only read is structurally blind to. (pending L2 to confirm none elsewhere.)

โ‘ฅ antd Spin where the design system forbids it โ€” ux ยง4.1 ๐ŸŸก Profile rows (UsernameRow.tsx:5,95, FullNameRow, AvatarRow) and CredsList.tsx:6,77,97 use antd Spin instead of NeuralNetworkLoading / skeleton.

โ‘ฆ Tab catalog hand-duplicated 3ร— and drifted โ€” Certainty / maintainability ๐ŸŸก Defined independently in hooks/useCategory.tsx (desktop personal), WorkspaceSetting/hooks/useCategory.tsx, and (mobile)/me/settings/features/useCategory.tsx. Already diverged: mobile omits Devices, Notification, Messenger, Hotkey, Proxy, SystemTools โ€” a phone user cannot reach Devices / Messenger / Notification settings at all. Three parallel copies guarantee future drift (same class the desktopRouter.sync.test guards for routes).

โ‘ง Unknown /settings/<garbage> silently renders Appearance โ€” ux Read ยง1.1 / Certainty ๐ŸŸก SettingsContent.tsx:40 falls back to componentMap.appearance for any unrecognized tab; personal active-tab detection (Body/index.tsx:20, pathParts[2], no enum validation) highlights nothing. A bad deep-link shows Appearance with no nav highlight instead of a not-found. Workspace Body does validate (SideBar/Body.tsx:25) โ€” the two halves are inconsistent.

โ‘จ Security is a dead redirect still carried as a tab โ€” Growth / cleanliness ๐ŸŸก security/index.tsx is only <Navigate to="/settings">, yet Security remains in the SettingsTabs enum, componentMap, and SettingsContent's mobile-prop list. Real content moved into Profile (PasswordRow / SSO / Email). Dead surface to prune.

4 โ€” Skill feedback

  • Validated existing rules (โŒ examples to cite): ยง4.2 (โ‘ โ‘ก, incl. init-flag-success- gated permanent skeleton), ยง4.1 (โ‘ฅ), Read ยง1.1 (โ‘ฃโ‘ง), ยง3.5 (โ‘ก).
  • Landed as new / strengthened ux items from this audit:
    • Feedback ยง4.4 Autosave feedback & one save convention per surface (gaps โ‘กโ‘ข).
    • Read ยง1.8 Search / filter a config surface at scale (gap โ‘ค).
    • Read ยง1.1 strengthened โ€” error must be checked before the empty branch; a failed fetch never renders as empty (data ?? [] โ†’ Empty trap; 7 settings tabs).
    • Act ยง3.7 Irreversible / high-blast-radius actions need elevated confirmation (type-to-confirm + report partial failure; Storage clear-all).
    • Act ยง3.8 Secrets revealed once, stored hashed, masked thereafter (APIKey class norm).
    • Grow ยง5.3 Close the config โ†’ manage loop with a near entry point โ€” a config surface for a feature with its own data/management area must link to it in-context, not just promise it in copy. โŒ example: Memory settings has no link to /memory. Also patched the L1 procedure (layer-1-static.md step 3) to ask this cross-surface check on every surface โ€” this gap was under-framed as "dead copy" in the first pass because L1 is structurally blind to an entry point that was never built (no file:line).
    • deep-review reuse-architecture dimension "single-source the nav/tab catalog" (gap โ‘ฆ).
  • Noted, not yet landed: breadcrumb that doesn't deepen per tab (โ‘ง-adjacent) โ€” promote if a second surface repeats it.

5 โ€” Pending: L2 visual + L3 dynamic

  • L2 โ€” confirm no settings search is rendered anywhere (gap โ‘ค); confirm the antd Spin rows read visually off from the rest (โ‘ฅ); check dark-mode + narrow-width of the accordion sidebar; confirm empty vs error render differences (โ‘ฃ).
  • L3 โ€” force each store/SWR fetch offline to confirm gaps โ‘ โ‘กโ‘ฃ live (permanent skeleton; silent autosave failure; error-as-empty); walk mobile to confirm the missing Devices/Messenger/Notification tabs (โ‘ฆ); measure settings-tab-switch INP.

6 โ€” Phase B: per-tab deep-dive queue (sub-issues under LOBE-11078)

The systemic ๐Ÿ”ด (โ‘ โ‘กโ‘ข) are cross-cutting โ€” file as ONE "settings resilience" issue, not per tab. Then deep-audit each tab (/ux-audit <tab>), priority by user-path heat:

Prio Surface Why deep-audit
P0 xcut settings error/retry + autosave feedback โ‘ โ‘กโ‘ข one systemic fix
P1 Provider (full-bleed, biggest) not covered this pass; model/key core path
P1 Profile (entry tab) autosave rows + antd Spin + composite isLoading
P2 Skill (full-bleed marketplace) multiple antd Spin
P2 ServiceModel model assignment core + init-flag skeleton
P3 Appearance / Advanced silent autosave-failure exemplars
P3 Devices / Creds / APIKey / Messenger / Stats / Storage / Memory / Hotkey / Proxy / SystemTools / About state-handling covered; finish full pattern/i18n/hierarchy pass

7 โ€” Per-tab L1 deep-dive findings (2026-07, all 17 code-readable tabs)

Each tab was re-audited full-depth (patterns + all ux modules). Severity-tagged one-liners with file:line; the recurring systemic roots (ยง4.2 success-only skeleton, ยง4.4 silent setSettings/mutation with no catch, error-rendered-as-empty, antd Spin) are marked [sys]. Verdicts about the render are pending L2.

Provider ๐Ÿ”ด๐Ÿ”ด๐Ÿ”ด โ€” every mutation in aiInfra/slices/{aiProvider,aiModel}/action.ts has no try/catch: config autosave swallowed + spinner hangs (aiProvider/action.ts:345), toggles don't roll back on failure (:315, aiModel/action.ts:137); list/model init success-only โ†’ permanent skeleton (:444, aiModel/action.ts:172) [sys]; model fetch error โ†’ misleading EmptyModels; create/update/delete modals catch{console.error} no in-modal error. Strong patterns (Overview+Detail, search, source-gated CRUD). Needs issue.

Skill ๐Ÿ”ด๐Ÿ”ด๐Ÿ”ด โ€” 4 list SWR returns discarded, no error/loading on the left list (SkillList.tsx:124) [sys]; empty state has no CTA + goes fully blank on the wrong view-tab (SkillList.tsx:324-338); install/connect errors โ†’ console.error, no save-state (AgentSkillItem.tsx:130, ComposioSkillItem.tsx:176); sync error โ†’ "no permissions" (SkillDetail/index.tsx:240); no search/virtualization (marketplace at scale). Needs issue.

ServiceModel ๐Ÿ”ด๐Ÿ”ด โ€” success-only init skeleton (ModelAssignmentsForm.tsx:64) [sys]; autosave no-catch + optimistic value persists on failure (:76-94 + settings/action.ts:189) [sys]; ๐ŸŸ  capability machinery (requiredAbilities) exists but every ModelSelect passes showAbility={false} โ€” assign an incapable model, no warning (ยง4.3); no no-models state. Needs issue.

Profile ๐Ÿ”ด๐Ÿ”ด โ€” antd Spin in UsernameRow.tsx:95, FullNameRow.tsx:43, AvatarRow.tsx:90 (ยง4.1); composite isLoading success-only โ†’ whole tab permanent skeleton if authProviders/ composio fetch fails (profile/index.tsx:56) [sys]; ๐ŸŸ  5 rows confirm 5 different ways; optimistic interests can diverge silently (InterestsRow.tsx:31); password/email use transient toast not persistent state (ยง3.5); ๐ŸŸก hardcoded 'Failed to change email' (EmailRow.tsx:52). Needs issue.

Appearance ๐Ÿ”ด โ€” canonical ยง4.4 exemplar: 3 different save mechanisms (Common.tsx:179, Appearance/index.tsx:58, ChatAppearance/index.tsx:35), all silent, all no try/catch/finally โ†’ failed save hangs spinner + loses config [sys]; ๐ŸŸ  success-only skeleton [sys]; strong Illustrated Choices + live Preview. Needs issue.

About ๐ŸŸก โ€” healthy. Only gap: version/update check has no onError โ†’ a failed check is silent / looks "up to date" (general.ts:189,214, Version.tsx). Titled sections, external-link affordances, Button loading (no Spin), clean i18n. Low โ€” fold into systemic or skip.

Advanced ๐Ÿ”ด โ€” autosave + lab toggles silent no-catch โ†’ spinner hangs, silent loss (advanced/index.tsx:265, preference/action.ts:39) [sys]; ๐ŸŸ  success-only skeleton [sys]; ๐ŸŸก Labs (Fleet/iMessage/Connect-Agent) applied instantly with no "experimental" risk framing (ยง4.3/ยง3.4). Needs issue.

Proxy ๐Ÿ”ด๐Ÿ”ด โ€” the one explicit-Save tab, and Save gives neither success nor failure feedback: proxy.saveSuccess locale key is dead/unused and handleSave has an empty catch{} (ProxyForm.tsx:156-166); ๐ŸŸ  no draft-loss guard on navigate-away (useBlocker absent, ยง2.1); ๐ŸŸ  error never read from SWR โ†’ no load-error state. Needs issue.

Hotkey ๐Ÿ”ด๐Ÿ”ด โ€” ยง4.4 twice: 3 save conventions on one page (Desktop toast vs Essential/ Conversation silent, Desktop.tsx:42 vs Essential.tsx:83/Conversation.tsx:83) [sys] + silent autosave failure; ๐ŸŸ  Desktop group alone lacks client-side conflict detection (Desktop.tsx:56, others pass hotkeyConflicts); ๐ŸŸ  success-only skeleton [sys]. Needs issue.

SystemTools ๐Ÿ”ด๐Ÿ”ด โ€” owns BinaryStatus.error from the IPC contract but throws it away: per-tool detection failure renders identical to "not installed" (ToolDetectorSection.tsx:76-124), and a whole detectAll rejection โ†’ silent all-"Not detected" (:136) [sys, error-as-empty]; ๐ŸŸ  undetected tools dead-end with no install path (ยง3.1). Read-only otherwise (healthy structure). Needs issue.

Storage ๐Ÿ”ด๐Ÿ”ด โ€” clear-all data (agents/files/messages/skills) has no try/catch + a plain one-click danger confirm with no type-to-confirm for an unrecoverable wipe (Advanced.tsx:46-65); partial-failure โ†’ half-deleted data, modal open, zero feedback; ๐ŸŸ  success-only skeleton [sys]; ๐ŸŸ  telemetry toggle silent-fail + snap-back (:156); ๐ŸŸก export fire-and-forget. Import path is well-built (state machine + preview + progress). Needs issue (highest destructive stakes).

Devices ๐Ÿ”ด โ€” SWR error never read โ†’ a failed load renders the onboarding "connect your first device" empty, falsely telling the user they own none (DeviceManager.tsx:304โ†’310โ†’334) [sys, error-as-empty]; ๐ŸŸ  bulk-delete = mass device revocation with no "this is your current session" warning though isCurrent is computed (ยง3.6); ๐ŸŸ  bulk/per-row delete has no error leg (Promise.all no catch). Excellent empty state + bulk-select. Needs issue.

Stats ๐Ÿ”ด๐Ÿ”ด โ€” every widget success-only + loading={isLoading || !data} โ†’ any fetch failure = permanent skeleton (ModelsRank.tsx:50, etc.) [sys]; ยง1.5 number trap: formatTokenNumber caps at M (packages/utils/src/format.ts:91) โ†’ 5000M/12000M, and formatNumber doesn't abbreviate at all; ๐ŸŸ  antd Spin in shared StatisticCard (components/StatisticCard/index.tsx:166); ๐ŸŸก hardcoded 'ID'/'Chat' table strings. Needs issue.

Creds ๐Ÿ”ด๐Ÿ”ด โ€” 4 bare antd <Spin/> (CredsList.tsx:77,97, EditKVForm.tsx:127, OAuthCredForm.tsx:79, ยง4.1); list query error never read โ†’ failure renders as "no credentials" (CredsList.tsx:47,100) [sys, error-as-empty]; ๐ŸŸ  no create/edit/delete mutation has an onError leg; ๐ŸŸก edit decrypt failure swallowed โ†’ blank overwrite (EditKVForm.tsx:75); ๐ŸŸก hardcoded English placeholders. Good secret-masking + 2-variant empty. Needs issue.

APIKey ๐Ÿ”ด๐Ÿ”ด โ€” inverts the API-key class norm: query() decrypts + returns full plaintext on every list fetch (packages/database/src/models/apiKey.ts:93), masked client-side only with an eye-toggle (ApiKeyDisplay/index.tsx:32); no one-time create reveal โ€” modal just closes, mutation result discarded (ApiKey.tsx:49, Content.tsx:36); ๐ŸŸ  no error/retry on failed request; ๐ŸŸ  inline edit/toggle silent-fail; antd default empty. Needs issue (security + UX).

Memory ๐Ÿ”ด โ€” inherits silent-autosave no-catch (Memory.tsx:63,91 + settings/action.ts:189) [sys]; ๐ŸŸ  success-only skeleton [sys]; ๐ŸŸ  capability-gated feature with no warning when no memory model is configured (set on a different tab, ยง4.3); ๐ŸŸ  copy promises "view/edit/clear memory anytime" but renders no link to /memory (dead promise); ๐ŸŸก dead empty tooltips (usePermission stub). Small clean form otherwise. Needs issue.

Messenger ๐Ÿ”ด โ€” platform-list error never read โ†’ failure renders "noPlatformsConfigured" (Messenger/index.tsx:118,135) [sys, error-as-empty]; ๐ŸŸ  detail panes success-only โ†’ permanent skeleton on error (shared.tsx:386, Slack.tsx:58) [sys]; ๐ŸŸ  OAuth connect is a bare link โ†’ toast-only outcome, no in-progress/done machine (ยง3.1/ยง3.5, partly mitigated by list refetch); ๐ŸŸก Slack pending state strands vs Discord's CTA. Needs issue.

Cross-tab tally

  • error-rendered-as-empty [sys] (highest-frequency): Devices, Messenger, Creds, Stats, Skill, SystemTools, Provider (model list). 7 tabs render a failed fetch as "nothing here".
  • success-only init skeleton [sys]: Storage, Memory, ServiceModel, Profile, Appearance, Advanced, Hotkey, Provider, Stats. 9 tabs.
  • silent autosave / mutation no-catch [sys]: Appearance, Advanced, Memory, ServiceModel, Hotkey, Provider, Profile, Devices-detail, APIKey, Creds, Storage-telemetry. ~11 surfaces.
  • antd Spin (ยง4.1): Profile (3), Creds (4), Stats (StatisticCard). 3 tabs.
  • class-norm gaps (code-blind, benchmark-only): APIKey one-time-reveal ๐Ÿ”ด, Stats ยง1.5 rollover ๐Ÿ”ด, settings-wide search โ‘ค, Storage type-to-confirm, Memory capability warning, SystemTools install path.
  • Healthy: About (1 low gap). SystemTools structurally healthy bar the error-state gap.