Skip to content

feat(web): show file type and pull request state icons in tabs - #806

Merged
nixuuu merged 1 commit into
devfrom
feat/tab-and-file-type-icons
Nov 15, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/tab-and-file-type-icons

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 15, 2026

Copy link
Copy Markdown
Member

Summary

  • File tabs and the file tree show a type mark per file: language and tool marks from simple-icons (CC0, tree-shaken named imports, ~65 marks), each with a light and a dark colour. Matching goes by whole file name (package.json, Dockerfile, bun.lock, .gitignore, Cargo.toml…), then by prefix (vite.config.*, tsconfig.*, .env.*, .github/workflows/*.yml), then by extension. Images, PDFs, archives, tables and audio use kit icons; unknown files keep the document icon. Deleted and ignored files have a dimmed mark.
  • Pull request tabs show the state icon (open, draft, merged, closed) in its colour with a corner dot for checks (passed, failed, running pulses; no dot while checks are unknown). The tab shares the panel's GetPullRequest read, so it makes no extra request, and re-reads every 15 s only while checks run. The tooltip and accessible name carry the state in words.
  • Save state in file tabs: a spinner while saving, and a warning icon with the document's error text in the tooltip and accessible name. The unsaved dot on the close button is unchanged.
  • Task output tabs show a terminal icon.

Verification

  • Local: apps/web typecheck, oxlint and oxfmt on the edited files.
  • Browser check on an isolated local stack: file tabs and tree in light and dark mode at desktop and phone widths. Pull request states were checked with mocked BFF responses (no GitHub on the test stack).
  • Left to CI: tests and builds.

Copy audit (docs/copy.md §8)

New text only appears in accessible names and tooltips: Saving, the existing document error messages, and the PR state in words (Open, Checks: Passed, reusing the existing Checks: … labels). Every item passes. Item 10 (no text relies only on colour or icon shape) passes because the PR and checks state is also in the tooltip and the accessible name.

🤖 Generated with Claude Code

File tabs and the file tree show a language or tool mark per file type,
coloured for light and dark surfaces. Pull request tabs show the state
icon with a corner dot for checks, re-read while checks run. File tabs
show a spinner while saving and a warning with the error text.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nixuuu
nixuuu enabled auto-merge (squash) November 15, 2026 08:47
@nixuuu
nixuuu merged commit fab6b31 into dev Nov 15, 2026
11 checks passed
@nixuuu
nixuuu deleted the feat/tab-and-file-type-icons branch November 15, 2026 08:56
nixuuu added a commit that referenced this pull request Nov 15, 2026
## Change

Proxy accounts with undetectable plans can now use a manual plan in
Settings → Proxies → Accounts on web and mobile. For example, Claude
Ultra counts as ×10 and Team as ×5. Automatic keeps detection as the
default; a manual choice takes precedence over later detection until
reset, with a subtle “Set manually” hint.

- Migration 0149 stores the choices on the owner-scoped proxy row, keyed
by a hash of provider + upstream stable ID (fallback: auth_index).
Missing accounts are ignored. Refresh and gateway restarts retain the
choices; deleting the proxy deletes them.
- The effective plan reaches ListProxies, overview updates and the
shared weighted capacity calculation used by the sidebar indicator,
usage popover and mobile sheet. Detection remains separately available.
- Additive RPC and account fields; regenerated contracts. Team already
existed in the enum, so its numeric value is preserved. Its Claude ×5
weight is explicitly documented as a user-provided equivalence dated
2026-11-15, not independently confirmed by Anthropic.
- Claude and Codex offer the requested known plans. Grok currently has
no known weights in the table, so its picker offers Automatic only. No
fork-specific multiplier or plan field was added.

## Verification

Local checks passed:

- `bun run gen`.
- `bun run check:tmp` for
`tests/integration/proxy-account-plans.test.ts`,
`tests/integration/proxy-accounts.test.ts`, gateway
`management-plan.test.ts` and `management.test.ts`, domain
`proxy-capacity.test.ts`, and DB `schema.test.ts`: 48 tests passed
across the focused runs, with no temporary files left. The new
integration test covers set/clear, later detection precedence, weighted
capacity, foreign-owner read/write refusal, refresh with changed
email/runtime index, and removed accounts.
- Typechecks for gateway, contracts, db, domain, mobile and web; Svelte
reports 0 errors and 0 warnings. Lint and formatting on edited files;
diff/content/link review.
- Real browser review using an isolated remote gateway/web and
PostgreSQL plus fake management accounts: light/dark at desktop (1280
px), phone (390 px) and narrow phone (320 px). Short, typical and long
emails remain blurred; dropdown/sheet selection, reset, Refresh, and a
failed save with rollback/retry were checked. Review processes and
container are cleaned up. Screenshots stay outside the repository.

Rebased onto current dev after #803, #804, #806 and #807. Renumbered the
migration to 0149 and regenerated the combined proto. Focused tests and
affected typechecks were repeated. The web row keeps the provider mark,
blurred identity and status on its first line. A muted, borderless kit
trigger occupies one 20 px plan line below, followed inline by “· Set
manually”. There is no empty hint line. Switching to Automatic leaves
row height unchanged on desktop and at 320 px. Browser shots were
refreshed at desktop, 390 px and 320 px in light/dark with short and
long identities. The final visual-only change passed web typecheck and
edited-file lint/format; the 48 focused backend tests remain valid for
unchanged backend inputs.

Full frozen install, gen:check, repository-wide typecheck/lint/format,
complete check:tmp suite and selected builds remain with CI. No UI test
suite was added. Native mobile was typechecked but not run on an
iOS/Android device.

## Copy audit — docs/copy.md §8

| Before | After | Reason |
| --- | --- | --- |
| Unknown plan with no way to set it | Automatic · Unknown plan;
provider plan options with × multipliers | Offers a concrete choice
without guessing detection. |
| Repeated plan label beside the picker | One selected plan in the
picker | One fact once; account identity keeps its space. |
| — | Set manually | Short, subtle status; meaning does not rely on
colour. |
| — | Saving plan… | Present ongoing action with the standard ellipsis.
|
| — | Could not save the plan. Choose it again to retry. | What
happened, followed by an action; no transport details. |

Checklist 1–10 passed: short active sentences, sentence case and
punctuation; existing plan/account glossary; menu entries are selection
values, not commands; errors end with an action; no new empty states,
duplicate facts, jargon, or “soul” copy. Automatic preserves honest
unknown detection. Short/typical/long identities checked at desktop and
phone widths with blur intact. Accessible “Account plan”, status text
and numbers carry meaning without colour or position. No failing items.

Related: #763
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