From 8bba3a63f589d71f8d6f30af580af5a549d5a4a9 Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Sat, 17 Jan 2026 23:35:07 +0800 Subject: [PATCH] chore: ui folder structure --- packages/ui/src/index.ts | 4 ++-- packages/ui/src/{ => panel}/Panel.module.css | 0 packages/ui/src/{ => panel}/Panel.ts | 4 ++-- packages/ui/src/{ => panel}/cards.ts | 2 +- packages/ui/src/{ => panel}/types.ts | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename packages/ui/src/{ => panel}/Panel.module.css (100%) rename packages/ui/src/{ => panel}/Panel.ts (99%) rename packages/ui/src/{ => panel}/cards.ts (97%) rename packages/ui/src/{ => panel}/types.ts (100%) diff --git a/packages/ui/src/index.ts b/packages/ui/src/index.ts index afe4052..6049b4d 100644 --- a/packages/ui/src/index.ts +++ b/packages/ui/src/index.ts @@ -1,3 +1,3 @@ -export { Panel, type PanelConfig } from './Panel' -export type { AgentActivity, PanelAgentAdapter } from './types' +export { Panel, type PanelConfig } from './panel/Panel' +export type { AgentActivity, PanelAgentAdapter } from './panel/types' export { I18n, type SupportedLanguage, type TranslationKey } from './i18n' diff --git a/packages/ui/src/Panel.module.css b/packages/ui/src/panel/Panel.module.css similarity index 100% rename from packages/ui/src/Panel.module.css rename to packages/ui/src/panel/Panel.module.css diff --git a/packages/ui/src/Panel.ts b/packages/ui/src/panel/Panel.ts similarity index 99% rename from packages/ui/src/Panel.ts rename to packages/ui/src/panel/Panel.ts index 1e9f1ec..420313c 100644 --- a/packages/ui/src/Panel.ts +++ b/packages/ui/src/panel/Panel.ts @@ -1,7 +1,7 @@ +import { I18n, type SupportedLanguage } from '../i18n' +import { truncate } from '../utils' import { createCard, createReflectionLines, formatTime } from './cards' -import { I18n, type SupportedLanguage } from './i18n' import type { AgentActivity, PanelAgentAdapter } from './types' -import { truncate } from './utils' import styles from './Panel.module.css' diff --git a/packages/ui/src/cards.ts b/packages/ui/src/panel/cards.ts similarity index 97% rename from packages/ui/src/cards.ts rename to packages/ui/src/panel/cards.ts index a6006c0..844f0b7 100644 --- a/packages/ui/src/cards.ts +++ b/packages/ui/src/panel/cards.ts @@ -1,7 +1,7 @@ /** * Card HTML generation utilities for Panel */ -import { escapeHtml } from './utils' +import { escapeHtml } from '../utils' import styles from './Panel.module.css' diff --git a/packages/ui/src/types.ts b/packages/ui/src/panel/types.ts similarity index 100% rename from packages/ui/src/types.ts rename to packages/ui/src/panel/types.ts