Skip to content

Commit 212465f

Browse files
committed
fix(ui): keep icons.ts under max-lines, drop unused export, regen docs map
1 parent 611271a commit 212465f

8 files changed

Lines changed: 20 additions & 26 deletions

File tree

‎docs/docs_map.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10507,6 +10507,7 @@ Do not edit it by hand; run `pnpm docs:map:gen`.
1050710507
- H2: Language support
1050810508
- H2: Appearance themes
1050910509
- H2: Manage plugins
10510+
- H2: Apps and extensions
1051010511
- H2: Sidebar navigation
1051110512
- H2: New session page
1051210513
- H2: What it can do (today)

‎ui/src/app-navigation.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe("navigationIconForRoute", () => {
8484
chat: "messageSquare",
8585
custodian: "lobster",
8686
activity: "activity",
87-
apps: "layoutGrid",
87+
apps: "smartphone",
8888
approvals: "shieldCheck",
8989
workboard: "kanban",
9090
worktrees: "folder",

‎ui/src/app-navigation.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const SETTINGS_TAKEOVER_ROUTES = SETTINGS_NAVIGATION_ROUTES.filter(
175175
const NAVIGATION_ICONS: NavigationItem = {
176176
agents: "bot",
177177
activity: "activity",
178-
apps: "layoutGrid",
178+
apps: "smartphone",
179179
approvals: "shieldCheck",
180180
workboard: "kanban",
181181
worktrees: "folder",

‎ui/src/components/app-sidebar-agent-menu.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export function renderSidebarAgentMenu(params: SidebarAgentMenuParams) {
335335
<span class="sidebar-customize-menu__text">${t("nodes.pairing.button")}</span>
336336
</wa-dropdown-item>
337337
<wa-dropdown-item class="sidebar-customize-menu__item" value="command:apps">
338-
<span slot="icon" class="nav-item__icon" aria-hidden="true">${icons.layoutGrid}</span>
338+
<span slot="icon" class="nav-item__icon" aria-hidden="true">${icons.smartphone}</span>
339339
<span class="sidebar-customize-menu__text">${t("agentChip.getApps")}</span>
340340
</wa-dropdown-item>
341341
<wa-dropdown-item

‎ui/src/components/command-palette.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function getPaletteBaseItems(): PaletteItem[] {
7171
{
7272
id: "nav-apps",
7373
label: t("palette.items.apps"),
74-
icon: "layoutGrid",
74+
icon: "smartphone",
7575
category: "navigation",
7676
action: "nav:apps",
7777
},

‎ui/src/components/icons.ts‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -404,22 +404,6 @@ export const icons = {
404404
<path d="M12 18h.01" />
405405
</svg>
406406
`,
407-
watch: html`
408-
<svg viewBox="0 0 24 24">
409-
<circle cx="12" cy="12" r="6" />
410-
<polyline points="12 10 12 12 13 13" />
411-
<path d="m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05" />
412-
<path d="m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05" />
413-
</svg>
414-
`,
415-
layoutGrid: html`
416-
<svg viewBox="0 0 24 24">
417-
<rect width="7" height="7" x="3" y="3" rx="1" />
418-
<rect width="7" height="7" x="14" y="3" rx="1" />
419-
<rect width="7" height="7" x="14" y="14" rx="1" />
420-
<rect width="7" height="7" x="3" y="14" rx="1" />
421-
</svg>
422-
`,
423407
circleQuestionMark: html`
424408
<svg viewBox="0 0 24 24">
425409
<circle cx="12" cy="12" r="10" />

‎ui/src/pages/apps/brand-icons.ts‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
import { html } from "lit";
22

3-
// Platform brand marks for the Apps page cards. Kept local (not in the shared
4-
// lucide `icons` set) because they are solid fills, not stroked glyphs;
5-
// apps.css targets .icon--filled to render fill: currentColor.
3+
// Platform marks for the Apps page cards. Kept local (not in the shared
4+
// lucide `icons` set) so the page owns its one-off glyphs and the shared
5+
// icon file stays under its size cap; apps.css targets .icon--filled to
6+
// render solid fills while unclassed glyphs stay stroked.
67
export const appsBrandIcons = {
8+
watch: html`
9+
<svg viewBox="0 0 24 24">
10+
<circle cx="12" cy="12" r="6" />
11+
<polyline points="12 10 12 12 13 13" />
12+
<path d="m16.13 7.66-.81-4.05a2 2 0 0 0-2-1.61h-2.68a2 2 0 0 0-2 1.61l-.78 4.05" />
13+
<path d="m7.88 16.36.8 4a2 2 0 0 0 2 1.61h2.72a2 2 0 0 0 2-1.61l.81-4.05" />
14+
</svg>
15+
`,
716
apple: html`
817
<svg viewBox="0 0 24 24" class="icon--filled">
918
<path

‎ui/src/pages/apps/view.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import "../../styles/apps.css";
99
import { brandIcons } from "../about/brand-icons.ts";
1010
import { appsBrandIcons } from "./brand-icons.ts";
1111

12-
export type AppsProps = {
12+
type AppsProps = {
1313
onNavigate: (routeId: RouteId) => void;
1414
};
1515

@@ -84,7 +84,7 @@ const APP_SECTIONS: readonly AppSection[] = [
8484
{
8585
id: "apple-watch",
8686
gradient: ["#f472b6", "#be185d"],
87-
icon: icons.watch,
87+
icon: appsBrandIcons.watch,
8888
title: () => t("appsPage.cards.appleWatch.title"),
8989
desc: () => t("appsPage.cards.appleWatch.desc"),
9090
badge: () => t("appsPage.badgeBundledIos"),
@@ -93,7 +93,7 @@ const APP_SECTIONS: readonly AppSection[] = [
9393
{
9494
id: "wear-os",
9595
gradient: ["#22d3ee", "#0e7490"],
96-
icon: icons.watch,
96+
icon: appsBrandIcons.watch,
9797
title: () => t("appsPage.cards.wearOs.title"),
9898
desc: () => t("appsPage.cards.wearOs.desc"),
9999
badge: () => t("appsPage.badgeBundledAndroid"),

0 commit comments

Comments
 (0)