@oxy.so/bloom 22.0.0 → 22.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/adoption-matrix.mdx +13 -13
- package/docs/agent-task-index.mdx +1 -1
- package/docs/app-conventions.mdx +11 -0
- package/docs/app-shell.mdx +25 -2
- package/docs/compose-layouts.mdx +6 -0
- package/docs/composition.mdx +3 -1
- package/docs/dialog.mdx +57 -0
- package/docs/layout.mdx +10 -0
- package/docs/list.mdx +1 -1
- package/docs/project-board.mdx +28 -1
- package/docs/public-parts.mdx +8 -2
- package/docs/screen.mdx +15 -0
- package/docs/semantic-composition.mdx +207 -0
- package/docs/sidebar.mdx +16 -0
- package/docs/task-catalog.json +16 -3
- package/docs/task-catalog.mdx +6 -6
- package/docs/ui-architecture.mdx +6 -4
- package/lib/commonjs/app-shell/AppShell.js +18 -9
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellEngine.js +18 -5
- package/lib/commonjs/app-shell/AppShellEngine.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +59 -30
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellPanels.js +53 -31
- package/lib/commonjs/app-shell/AppShellPanels.js.map +1 -1
- package/lib/commonjs/app-shell/composition.js +232 -0
- package/lib/commonjs/app-shell/composition.js.map +1 -0
- package/lib/commonjs/app-shell/context.js +7 -1
- package/lib/commonjs/app-shell/context.js.map +1 -1
- package/lib/commonjs/app-shell/hooks/index.js +13 -0
- package/lib/commonjs/app-shell/hooks/index.js.map +1 -1
- package/lib/commonjs/app-shell/index.js +38 -0
- package/lib/commonjs/app-shell/index.js.map +1 -1
- package/lib/commonjs/app-shell/index.web.js +38 -0
- package/lib/commonjs/app-shell/index.web.js.map +1 -1
- package/lib/commonjs/app-shell/panel-layout-css.js +7 -3
- package/lib/commonjs/app-shell/panel-layout-css.js.map +1 -1
- package/lib/commonjs/app-shell/panel-session.js +210 -0
- package/lib/commonjs/app-shell/panel-session.js.map +1 -0
- package/lib/commonjs/app-shell/shell-layout-css.js +6 -4
- package/lib/commonjs/app-shell/shell-layout-css.js.map +1 -1
- package/lib/commonjs/canvas/CanvasPanelBase.js +1 -0
- package/lib/commonjs/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/commonjs/chat-screen/ChatInfoPanelBase.js +1 -0
- package/lib/commonjs/chat-screen/ChatInfoPanelBase.js.map +1 -1
- package/lib/commonjs/dialog/DetailDialog.js +19 -0
- package/lib/commonjs/dialog/DetailDialog.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialog.web.js +19 -0
- package/lib/commonjs/dialog/DetailDialog.web.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogBase.js +204 -0
- package/lib/commonjs/dialog/DetailDialogBase.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogMotion.js +87 -0
- package/lib/commonjs/dialog/DetailDialogMotion.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogMotion.web.js +345 -0
- package/lib/commonjs/dialog/DetailDialogMotion.web.js.map +1 -0
- package/lib/commonjs/dialog/DetailDialogSection.js +49 -0
- package/lib/commonjs/dialog/DetailDialogSection.js.map +1 -0
- package/lib/commonjs/dialog/Dialog.js +101 -90
- package/lib/commonjs/dialog/Dialog.js.map +1 -1
- package/lib/commonjs/dialog/context.js +4 -1
- package/lib/commonjs/dialog/context.js.map +1 -1
- package/lib/commonjs/dialog/index.js +20 -0
- package/lib/commonjs/dialog/index.js.map +1 -1
- package/lib/commonjs/dialog/index.web.js +20 -0
- package/lib/commonjs/dialog/index.web.js.map +1 -1
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +28 -0
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/layout/app-shell-region.js.map +1 -1
- package/lib/commonjs/layout/index.js +7 -0
- package/lib/commonjs/layout/index.js.map +1 -1
- package/lib/commonjs/layout/index.web.js +7 -0
- package/lib/commonjs/layout/index.web.js.map +1 -1
- package/lib/commonjs/layout/safe-area-ownership.js +31 -0
- package/lib/commonjs/layout/safe-area-ownership.js.map +1 -0
- package/lib/commonjs/layout/screen-scope.js +26 -20
- package/lib/commonjs/layout/screen-scope.js.map +1 -1
- package/lib/commonjs/list/ListItemBase.js +62 -58
- package/lib/commonjs/list/ListItemBase.js.map +1 -1
- package/lib/commonjs/list/ListMail.js +5 -1
- package/lib/commonjs/list/ListMail.js.map +1 -1
- package/lib/commonjs/list/list-style.js +2 -1
- package/lib/commonjs/list/list-style.js.map +1 -1
- package/lib/commonjs/page-header/PageHeader.js +3 -1
- package/lib/commonjs/page-header/PageHeader.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoard.js +2 -0
- package/lib/commonjs/project-board/ProjectBoard.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoard.web.js +2 -0
- package/lib/commonjs/project-board/ProjectBoard.web.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardBase.js +29 -41
- package/lib/commonjs/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/commonjs/project-board/ProjectBoardCardContent.js +56 -0
- package/lib/commonjs/project-board/ProjectBoardCardContent.js.map +1 -0
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js +7 -340
- package/lib/commonjs/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/commonjs/project-board/TicketDetailDialog.js +317 -412
- package/lib/commonjs/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/commonjs/project-board/TicketGenieSurface.js +13 -82
- package/lib/commonjs/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/commonjs/project-board/TicketTokenChart.js +1 -1
- package/lib/commonjs/project-board/TicketTokenChart.js.map +1 -1
- package/lib/commonjs/project-board/context.js +9 -2
- package/lib/commonjs/project-board/context.js.map +1 -1
- package/lib/commonjs/project-board/index.js +7 -0
- package/lib/commonjs/project-board/index.js.map +1 -1
- package/lib/commonjs/project-board/index.web.js +7 -0
- package/lib/commonjs/project-board/index.web.js.map +1 -1
- package/lib/commonjs/screen/ScreenBase.js +44 -32
- package/lib/commonjs/screen/ScreenBase.js.map +1 -1
- package/lib/commonjs/screen/ScreenContent.js +61 -0
- package/lib/commonjs/screen/ScreenContent.js.map +1 -0
- package/lib/commonjs/screen/ScreenScrollViewBase.js +66 -1
- package/lib/commonjs/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/commonjs/screen/content.js +25 -0
- package/lib/commonjs/screen/content.js.map +1 -0
- package/lib/commonjs/screen/index.js +7 -0
- package/lib/commonjs/screen/index.js.map +1 -1
- package/lib/commonjs/screen/index.web.js +7 -0
- package/lib/commonjs/screen/index.web.js.map +1 -1
- package/lib/commonjs/screen/keyboard-components.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarFolder.js +61 -74
- package/lib/commonjs/sidebar/SidebarFolder.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarTreeSection.js +30 -38
- package/lib/commonjs/sidebar/SidebarTreeSection.js.map +1 -1
- package/lib/commonjs/sidebar/tree.js +2 -2
- package/lib/commonjs/sidebar/tree.js.map +1 -1
- package/lib/module/app-shell/AppShell.js +15 -5
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellEngine.js +18 -5
- package/lib/module/app-shell/AppShellEngine.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +60 -30
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/AppShellPanels.js +52 -28
- package/lib/module/app-shell/AppShellPanels.js.map +1 -1
- package/lib/module/app-shell/composition.js +226 -0
- package/lib/module/app-shell/composition.js.map +1 -0
- package/lib/module/app-shell/context.js +4 -0
- package/lib/module/app-shell/context.js.map +1 -1
- package/lib/module/app-shell/hooks/index.js +1 -0
- package/lib/module/app-shell/hooks/index.js.map +1 -1
- package/lib/module/app-shell/index.js +3 -0
- package/lib/module/app-shell/index.js.map +1 -1
- package/lib/module/app-shell/index.web.js +3 -0
- package/lib/module/app-shell/index.web.js.map +1 -1
- package/lib/module/app-shell/panel-layout-css.js +7 -3
- package/lib/module/app-shell/panel-layout-css.js.map +1 -1
- package/lib/module/app-shell/panel-session.js +204 -0
- package/lib/module/app-shell/panel-session.js.map +1 -0
- package/lib/module/app-shell/shell-layout-css.js +6 -4
- package/lib/module/app-shell/shell-layout-css.js.map +1 -1
- package/lib/module/canvas/CanvasPanelBase.js +1 -0
- package/lib/module/canvas/CanvasPanelBase.js.map +1 -1
- package/lib/module/chat-screen/ChatInfoPanelBase.js +1 -0
- package/lib/module/chat-screen/ChatInfoPanelBase.js.map +1 -1
- package/lib/module/dialog/DetailDialog.js +15 -0
- package/lib/module/dialog/DetailDialog.js.map +1 -0
- package/lib/module/dialog/DetailDialog.web.js +15 -0
- package/lib/module/dialog/DetailDialog.web.js.map +1 -0
- package/lib/module/dialog/DetailDialogBase.js +200 -0
- package/lib/module/dialog/DetailDialogBase.js.map +1 -0
- package/lib/module/dialog/DetailDialogMotion.js +81 -0
- package/lib/module/dialog/DetailDialogMotion.js.map +1 -0
- package/lib/module/dialog/DetailDialogMotion.web.js +342 -0
- package/lib/module/dialog/DetailDialogMotion.web.js.map +1 -0
- package/lib/module/dialog/DetailDialogSection.js +44 -0
- package/lib/module/dialog/DetailDialogSection.js.map +1 -0
- package/lib/module/dialog/Dialog.js +102 -91
- package/lib/module/dialog/Dialog.js.map +1 -1
- package/lib/module/dialog/context.js +3 -0
- package/lib/module/dialog/context.js.map +1 -1
- package/lib/module/dialog/index.js +2 -0
- package/lib/module/dialog/index.js.map +1 -1
- package/lib/module/dialog/index.web.js +2 -0
- package/lib/module/dialog/index.web.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +2 -2
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/layout/app-shell-region.js.map +1 -1
- package/lib/module/layout/index.js +1 -0
- package/lib/module/layout/index.js.map +1 -1
- package/lib/module/layout/index.web.js +1 -0
- package/lib/module/layout/index.web.js.map +1 -1
- package/lib/module/layout/safe-area-ownership.js +26 -0
- package/lib/module/layout/safe-area-ownership.js.map +1 -0
- package/lib/module/layout/screen-scope.js +26 -20
- package/lib/module/layout/screen-scope.js.map +1 -1
- package/lib/module/list/ListItemBase.js +63 -59
- package/lib/module/list/ListItemBase.js.map +1 -1
- package/lib/module/list/ListMail.js +5 -1
- package/lib/module/list/ListMail.js.map +1 -1
- package/lib/module/list/list-style.js +1 -0
- package/lib/module/list/list-style.js.map +1 -1
- package/lib/module/page-header/PageHeader.js +3 -1
- package/lib/module/page-header/PageHeader.js.map +1 -1
- package/lib/module/project-board/ProjectBoard.js +2 -0
- package/lib/module/project-board/ProjectBoard.js.map +1 -1
- package/lib/module/project-board/ProjectBoard.web.js +2 -0
- package/lib/module/project-board/ProjectBoard.web.js.map +1 -1
- package/lib/module/project-board/ProjectBoardBase.js +30 -42
- package/lib/module/project-board/ProjectBoardBase.js.map +1 -1
- package/lib/module/project-board/ProjectBoardCardContent.js +52 -0
- package/lib/module/project-board/ProjectBoardCardContent.js.map +1 -0
- package/lib/module/project-board/TicketCornerGenieSurface.web.js +1 -339
- package/lib/module/project-board/TicketCornerGenieSurface.web.js.map +1 -1
- package/lib/module/project-board/TicketDetailDialog.js +317 -412
- package/lib/module/project-board/TicketDetailDialog.js.map +1 -1
- package/lib/module/project-board/TicketGenieSurface.js +1 -78
- package/lib/module/project-board/TicketGenieSurface.js.map +1 -1
- package/lib/module/project-board/TicketTokenChart.js +1 -1
- package/lib/module/project-board/TicketTokenChart.js.map +1 -1
- package/lib/module/project-board/context.js +1 -1
- package/lib/module/project-board/context.js.map +1 -1
- package/lib/module/project-board/index.js +1 -0
- package/lib/module/project-board/index.js.map +1 -1
- package/lib/module/project-board/index.web.js +1 -0
- package/lib/module/project-board/index.web.js.map +1 -1
- package/lib/module/screen/ScreenBase.js +22 -10
- package/lib/module/screen/ScreenBase.js.map +1 -1
- package/lib/module/screen/ScreenContent.js +57 -0
- package/lib/module/screen/ScreenContent.js.map +1 -0
- package/lib/module/screen/ScreenScrollViewBase.js +67 -2
- package/lib/module/screen/ScreenScrollViewBase.js.map +1 -1
- package/lib/module/screen/content.js +21 -0
- package/lib/module/screen/content.js.map +1 -0
- package/lib/module/screen/index.js +1 -0
- package/lib/module/screen/index.js.map +1 -1
- package/lib/module/screen/index.web.js +1 -0
- package/lib/module/screen/index.web.js.map +1 -1
- package/lib/module/screen/keyboard-components.js.map +1 -1
- package/lib/module/sidebar/SidebarFolder.js +61 -74
- package/lib/module/sidebar/SidebarFolder.js.map +1 -1
- package/lib/module/sidebar/SidebarTreeSection.js +30 -38
- package/lib/module/sidebar/SidebarTreeSection.js.map +1 -1
- package/lib/module/sidebar/tree.js +2 -2
- package/lib/module/sidebar/tree.js.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanels.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/composition.d.ts +52 -0
- package/lib/typescript/commonjs/app-shell/composition.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts +4 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/hooks/index.d.ts +2 -0
- package/lib/typescript/commonjs/app-shell/hooks/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/index.d.ts +5 -0
- package/lib/typescript/commonjs/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/index.web.d.ts +5 -0
- package/lib/typescript/commonjs/app-shell/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/panel-session.d.ts +51 -0
- package/lib/typescript/commonjs/app-shell/panel-session.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/types.d.ts +15 -3
- package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/DetailDialog.d.ts +5 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts +5 -0
- package/lib/typescript/commonjs/dialog/DetailDialog.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts +20 -0
- package/lib/typescript/commonjs/dialog/DetailDialogBase.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts +9 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts +7 -0
- package/lib/typescript/commonjs/dialog/DetailDialogMotion.web.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts +6 -0
- package/lib/typescript/commonjs/dialog/DetailDialogSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/context.d.ts +2 -0
- package/lib/typescript/commonjs/dialog/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.d.ts +3 -1
- package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts +3 -1
- package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/dialog/types.d.ts +37 -0
- package/lib/typescript/commonjs/dialog/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +3 -3
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +3 -3
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/app-shell-region.d.ts +2 -0
- package/lib/typescript/commonjs/layout/app-shell-region.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/index.d.ts +1 -0
- package/lib/typescript/commonjs/layout/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/index.web.d.ts +1 -0
- package/lib/typescript/commonjs/layout/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts +8 -0
- package/lib/typescript/commonjs/layout/safe-area-ownership.d.ts.map +1 -0
- package/lib/typescript/commonjs/layout/screen-scope.d.ts +3 -1
- package/lib/typescript/commonjs/layout/screen-scope.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListItemBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/ListMail.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/list-style.d.ts +1 -0
- package/lib/typescript/commonjs/list/list-style.d.ts.map +1 -1
- package/lib/typescript/commonjs/list/types.d.ts +10 -3
- package/lib/typescript/commonjs/list/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoard.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoard.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts +4 -0
- package/lib/typescript/commonjs/project-board/ProjectBoardCardContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
- package/lib/typescript/commonjs/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts +1 -8
- package/lib/typescript/commonjs/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/context.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/index.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/index.web.d.ts +2 -1
- package/lib/typescript/commonjs/project-board/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/project-board/types.d.ts +12 -0
- package/lib/typescript/commonjs/project-board/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/ScreenContent.d.ts +14 -0
- package/lib/typescript/commonjs/screen/ScreenContent.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/content.d.ts +6 -0
- package/lib/typescript/commonjs/screen/content.d.ts.map +1 -0
- package/lib/typescript/commonjs/screen/index.d.ts +3 -0
- package/lib/typescript/commonjs/screen/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/index.web.d.ts +3 -0
- package/lib/typescript/commonjs/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/keyboard-components.d.ts +5 -0
- package/lib/typescript/commonjs/screen/keyboard-components.d.ts.map +1 -1
- package/lib/typescript/commonjs/screen/types.d.ts +7 -0
- package/lib/typescript/commonjs/screen/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarFolder.d.ts +3 -12
- package/lib/typescript/commonjs/sidebar/SidebarFolder.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarTreeSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellEngine.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanels.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/composition.d.ts +52 -0
- package/lib/typescript/module/app-shell/composition.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/context.d.ts +4 -0
- package/lib/typescript/module/app-shell/context.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/hooks/index.d.ts +2 -0
- package/lib/typescript/module/app-shell/hooks/index.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/index.d.ts +5 -0
- package/lib/typescript/module/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/index.web.d.ts +5 -0
- package/lib/typescript/module/app-shell/index.web.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts +2 -1
- package/lib/typescript/module/app-shell/panel-layout-types.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/panel-session.d.ts +51 -0
- package/lib/typescript/module/app-shell/panel-session.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts +2 -1
- package/lib/typescript/module/app-shell/shell-layout-css.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/types.d.ts +15 -3
- package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/module/dialog/DetailDialog.d.ts +5 -0
- package/lib/typescript/module/dialog/DetailDialog.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialog.web.d.ts +5 -0
- package/lib/typescript/module/dialog/DetailDialog.web.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogBase.d.ts +20 -0
- package/lib/typescript/module/dialog/DetailDialogBase.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts +9 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts +7 -0
- package/lib/typescript/module/dialog/DetailDialogMotion.web.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DetailDialogSection.d.ts +6 -0
- package/lib/typescript/module/dialog/DetailDialogSection.d.ts.map +1 -0
- package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
- package/lib/typescript/module/dialog/context.d.ts +2 -0
- package/lib/typescript/module/dialog/context.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.d.ts +3 -1
- package/lib/typescript/module/dialog/index.d.ts.map +1 -1
- package/lib/typescript/module/dialog/index.web.d.ts +3 -1
- package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
- package/lib/typescript/module/dialog/types.d.ts +37 -0
- package/lib/typescript/module/dialog/types.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +3 -3
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +3 -3
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/app-shell-region.d.ts +2 -0
- package/lib/typescript/module/layout/app-shell-region.d.ts.map +1 -1
- package/lib/typescript/module/layout/index.d.ts +1 -0
- package/lib/typescript/module/layout/index.d.ts.map +1 -1
- package/lib/typescript/module/layout/index.web.d.ts +1 -0
- package/lib/typescript/module/layout/index.web.d.ts.map +1 -1
- package/lib/typescript/module/layout/safe-area-ownership.d.ts +8 -0
- package/lib/typescript/module/layout/safe-area-ownership.d.ts.map +1 -0
- package/lib/typescript/module/layout/screen-scope.d.ts +3 -1
- package/lib/typescript/module/layout/screen-scope.d.ts.map +1 -1
- package/lib/typescript/module/list/ListItemBase.d.ts.map +1 -1
- package/lib/typescript/module/list/ListMail.d.ts.map +1 -1
- package/lib/typescript/module/list/list-style.d.ts +1 -0
- package/lib/typescript/module/list/list-style.d.ts.map +1 -1
- package/lib/typescript/module/list/types.d.ts +10 -3
- package/lib/typescript/module/list/types.d.ts.map +1 -1
- package/lib/typescript/module/page-header/PageHeader.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoard.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoard.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardBase.d.ts.map +1 -1
- package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts +4 -0
- package/lib/typescript/module/project-board/ProjectBoardCardContent.d.ts.map +1 -0
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts +1 -6
- package/lib/typescript/module/project-board/TicketCornerGenieSurface.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketDetailDialog.d.ts.map +1 -1
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts +1 -8
- package/lib/typescript/module/project-board/TicketGenieSurface.d.ts.map +1 -1
- package/lib/typescript/module/project-board/context.d.ts +2 -1
- package/lib/typescript/module/project-board/context.d.ts.map +1 -1
- package/lib/typescript/module/project-board/index.d.ts +2 -1
- package/lib/typescript/module/project-board/index.d.ts.map +1 -1
- package/lib/typescript/module/project-board/index.web.d.ts +2 -1
- package/lib/typescript/module/project-board/index.web.d.ts.map +1 -1
- package/lib/typescript/module/project-board/types.d.ts +12 -0
- package/lib/typescript/module/project-board/types.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/ScreenContent.d.ts +14 -0
- package/lib/typescript/module/screen/ScreenContent.d.ts.map +1 -0
- package/lib/typescript/module/screen/ScreenScrollViewBase.d.ts.map +1 -1
- package/lib/typescript/module/screen/content.d.ts +6 -0
- package/lib/typescript/module/screen/content.d.ts.map +1 -0
- package/lib/typescript/module/screen/index.d.ts +3 -0
- package/lib/typescript/module/screen/index.d.ts.map +1 -1
- package/lib/typescript/module/screen/index.web.d.ts +3 -0
- package/lib/typescript/module/screen/index.web.d.ts.map +1 -1
- package/lib/typescript/module/screen/keyboard-components.d.ts +5 -0
- package/lib/typescript/module/screen/keyboard-components.d.ts.map +1 -1
- package/lib/typescript/module/screen/types.d.ts +7 -0
- package/lib/typescript/module/screen/types.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarFolder.d.ts +3 -12
- package/lib/typescript/module/sidebar/SidebarFolder.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarTreeSection.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/types.d.ts +1 -1
- package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/support/public-part-classifications.json +19 -1
- package/src/app-shell/AppShell.tsx +15 -6
- package/src/app-shell/AppShellEngine.tsx +36 -10
- package/src/app-shell/AppShellPanelLayout.tsx +106 -55
- package/src/app-shell/AppShellPanels.tsx +75 -44
- package/src/app-shell/composition.ts +257 -0
- package/src/app-shell/context.ts +5 -0
- package/src/app-shell/hooks/index.ts +3 -0
- package/src/app-shell/index.ts +16 -0
- package/src/app-shell/index.web.ts +16 -0
- package/src/app-shell/panel-layout-css.ts +7 -3
- package/src/app-shell/panel-layout-types.ts +2 -1
- package/src/app-shell/panel-session.tsx +246 -0
- package/src/app-shell/shell-layout-css.ts +6 -1
- package/src/app-shell/types.ts +15 -3
- package/src/canvas/CanvasPanelBase.tsx +1 -1
- package/src/chat-screen/ChatInfoPanelBase.tsx +1 -1
- package/src/dialog/DetailDialog.tsx +13 -0
- package/src/dialog/DetailDialog.web.tsx +13 -0
- package/src/dialog/DetailDialogBase.tsx +207 -0
- package/src/dialog/DetailDialogMotion.tsx +75 -0
- package/src/dialog/DetailDialogMotion.web.tsx +360 -0
- package/src/dialog/DetailDialogSection.tsx +42 -0
- package/src/dialog/Dialog.tsx +98 -85
- package/src/dialog/context.ts +3 -0
- package/src/dialog/index.ts +5 -0
- package/src/dialog/index.web.ts +5 -0
- package/src/dialog/types.ts +40 -0
- package/src/index.ts +7 -0
- package/src/index.web.ts +7 -0
- package/src/layout/app-shell-region.ts +2 -0
- package/src/layout/index.ts +2 -0
- package/src/layout/index.web.ts +2 -0
- package/src/layout/safe-area-ownership.ts +22 -0
- package/src/layout/screen-scope.tsx +31 -22
- package/src/list/ListItemBase.tsx +59 -65
- package/src/list/ListMail.tsx +5 -1
- package/src/list/list-style.ts +1 -0
- package/src/list/types.ts +11 -3
- package/src/page-header/PageHeader.tsx +3 -1
- package/src/project-board/ProjectBoard.tsx +2 -0
- package/src/project-board/ProjectBoard.web.tsx +2 -0
- package/src/project-board/ProjectBoardBase.tsx +13 -13
- package/src/project-board/ProjectBoardCardContent.tsx +54 -0
- package/src/project-board/TicketCornerGenieSurface.web.tsx +1 -362
- package/src/project-board/TicketDetailDialog.tsx +311 -426
- package/src/project-board/TicketGenieSurface.tsx +4 -75
- package/src/project-board/TicketTokenChart.tsx +1 -1
- package/src/project-board/context.ts +2 -1
- package/src/project-board/index.ts +2 -0
- package/src/project-board/index.web.ts +2 -0
- package/src/project-board/types.ts +13 -0
- package/src/screen/ScreenBase.tsx +30 -7
- package/src/screen/ScreenContent.tsx +61 -0
- package/src/screen/ScreenScrollViewBase.tsx +80 -1
- package/src/screen/content.ts +26 -0
- package/src/screen/index.ts +4 -0
- package/src/screen/index.web.ts +4 -0
- package/src/screen/keyboard-components.ts +2 -0
- package/src/screen/types.ts +7 -0
- package/src/sidebar/SidebarFolder.tsx +101 -91
- package/src/sidebar/SidebarTreeSection.tsx +36 -35
- package/src/sidebar/tree.ts +2 -2
- package/src/sidebar/types.ts +5 -1
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RiCheckLine as CopiedActionIcon } from '../icons/remix/RiCheckLine';
|
|
3
|
-
import { RiMore2Fill as TicketActionsIcon } from '../icons/remix/RiMore2Fill';
|
|
4
|
-
import { PageHeader } from '../page-header';
|
|
1
|
+
import { DetailDialogSection } from '../dialog/DetailDialogSection';
|
|
5
2
|
import { RiStarLine } from '../icons/remix/RiStarLine';
|
|
6
3
|
import { RiStarFill } from '../icons/remix/RiStarFill';
|
|
7
|
-
import { RiCloseLine as DismissActionIcon } from '../icons/remix/RiCloseLine';
|
|
8
|
-
import { useTheme } from '../theme/use-theme';
|
|
9
4
|
import { useEffect, useRef, useState } from 'react';
|
|
10
|
-
import { Platform
|
|
5
|
+
import { Platform } from 'react-native';
|
|
11
6
|
import { writeClipboardText } from '../hooks/clipboard';
|
|
12
7
|
import { openExternal } from '../hooks/link-activation';
|
|
13
8
|
import { TicketTokenChart } from './TicketTokenChart';
|
|
14
|
-
import { useDialogControl } from '../dialog/context';
|
|
15
9
|
import { useIsRtl } from '../hooks/use-is-rtl';
|
|
16
10
|
import { useMessages } from '../locale/messages';
|
|
17
|
-
import { BREAKPOINTS } from '../styles/breakpoints';
|
|
18
11
|
import { Textarea } from '../textarea';
|
|
19
12
|
import { BoardTooltip } from './BoardTooltip';
|
|
20
13
|
import { MemberAvatars } from './MemberAvatars';
|
|
@@ -28,10 +21,13 @@ import {
|
|
|
28
21
|
SourceChip as Chip,
|
|
29
22
|
SourcePressable as Pressable,
|
|
30
23
|
RiArrowUpLine,
|
|
24
|
+
RiCheckLine,
|
|
31
25
|
RiCheckboxCircleLine,
|
|
32
26
|
RiEditLine,
|
|
33
27
|
RiFileCopyLine,
|
|
34
28
|
RiFolder6Line,
|
|
29
|
+
RiLinkM,
|
|
30
|
+
RiMore2Fill,
|
|
35
31
|
RiRestartLine,
|
|
36
32
|
SourceText as Text,
|
|
37
33
|
SourceView as View,
|
|
@@ -79,20 +75,14 @@ export function TicketDetailDialog({
|
|
|
79
75
|
const { messages: m } = useMessages(PROJECT_BOARD_MESSAGES);
|
|
80
76
|
const {
|
|
81
77
|
Button,
|
|
82
|
-
|
|
83
|
-
ScreenScrollView,
|
|
84
|
-
Dialog,
|
|
85
|
-
TicketCornerGenieSurface,
|
|
78
|
+
DetailDialog,
|
|
86
79
|
DropdownMenu,
|
|
87
80
|
DropdownMenuTrigger,
|
|
88
81
|
DropdownMenuContent,
|
|
89
82
|
DropdownMenuItem,
|
|
90
83
|
DropdownMenuCheckboxItem,
|
|
91
84
|
} = useProjectBoardPlatform();
|
|
92
|
-
const control = useDialogControl();
|
|
93
|
-
const theme = useTheme();
|
|
94
85
|
const rtl = useIsRtl();
|
|
95
|
-
const { width: viewportWidth } = useWindowDimensions();
|
|
96
86
|
const [comment, setComment] = useState('');
|
|
97
87
|
const [editingDescription, setEditingDescription] = useState(false);
|
|
98
88
|
const [draft, setDraft] = useState(ticket.description ?? '');
|
|
@@ -153,427 +143,322 @@ export function TicketDetailDialog({
|
|
|
153
143
|
</DropdownMenuItem>
|
|
154
144
|
);
|
|
155
145
|
return (
|
|
156
|
-
<
|
|
157
|
-
control={control}
|
|
146
|
+
<DetailDialog
|
|
158
147
|
startOpen
|
|
159
148
|
onClose={onClose}
|
|
160
149
|
label={`${ticket.code}: ${m.properties}`}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
backgroundColor: theme.colors.card,
|
|
195
|
-
}}
|
|
196
|
-
header={
|
|
197
|
-
<PageHeader
|
|
198
|
-
testID="ticket-detail-header"
|
|
199
|
-
title={ticket.code}
|
|
200
|
-
subtitle={[boardTitle, ticket.area].filter(Boolean).join(' · ')}
|
|
201
|
-
actions={
|
|
202
|
-
<>
|
|
203
|
-
<Button.Group accessibilityLabel={m.actions}>
|
|
204
|
-
<BoardTooltip label={ticket.isFavorite ? m.favoriteRemove : m.favoriteAdd}>
|
|
205
|
-
<Button
|
|
206
|
-
icon={ticket.isFavorite ? RiStarFill : RiStarLine}
|
|
207
|
-
accessibilityLabel={ticket.isFavorite ? m.favoriteRemove : m.favoriteAdd}
|
|
208
|
-
pressed={!!ticket.isFavorite}
|
|
209
|
-
onPress={() => onUpdate({ isFavorite: !ticket.isFavorite })}
|
|
210
|
-
/>
|
|
211
|
-
</BoardTooltip>
|
|
212
|
-
<BoardTooltip
|
|
213
|
-
label={copyMessage === m.linkCopied ? m.linkCopied : m.copyLink}
|
|
214
|
-
>
|
|
215
|
-
<Button
|
|
216
|
-
icon={copyMessage === m.linkCopied ? CopiedActionIcon : LinkActionIcon}
|
|
217
|
-
accessibilityLabel={m.copyLink}
|
|
218
|
-
onPress={() => {
|
|
219
|
-
void copy('link');
|
|
220
|
-
}}
|
|
221
|
-
/>
|
|
222
|
-
</BoardTooltip>
|
|
223
|
-
<DropdownMenu>
|
|
224
|
-
<DropdownMenuTrigger asChild>
|
|
225
|
-
<Button icon={TicketActionsIcon} accessibilityLabel={m.actions} />
|
|
226
|
-
</DropdownMenuTrigger>
|
|
227
|
-
<DropdownMenuContent
|
|
228
|
-
label={m.actions}
|
|
229
|
-
className="z-[120] w-[220px] rounded-[14px] p-1"
|
|
230
|
-
style={{ width: 220 }}
|
|
231
|
-
>
|
|
232
|
-
{action(m.editDescription, RiEditLine, () => {
|
|
233
|
-
setDraft(ticket.description ?? '');
|
|
234
|
-
setEditingDescription(true);
|
|
235
|
-
})}
|
|
236
|
-
{action(
|
|
237
|
-
copyMessage === m.idCopied ? m.idCopied : m.copyId,
|
|
238
|
-
RiFileCopyLine,
|
|
239
|
-
() => {
|
|
240
|
-
void copy('id');
|
|
241
|
-
},
|
|
242
|
-
)}
|
|
243
|
-
{action(
|
|
244
|
-
column.id === 'done' ? m.reopen : m.markDone,
|
|
245
|
-
column.id === 'done' ? RiRestartLine : RiCheckboxCircleLine,
|
|
246
|
-
() => onMove(column.id === 'done' ? 'todo' : 'done'),
|
|
247
|
-
)}
|
|
248
|
-
</DropdownMenuContent>
|
|
249
|
-
</DropdownMenu>
|
|
250
|
-
</Button.Group>
|
|
251
|
-
<Button
|
|
252
|
-
appearance="outline"
|
|
253
|
-
tone="neutral"
|
|
254
|
-
icon={DismissActionIcon}
|
|
255
|
-
accessibilityLabel={m.closeDetails}
|
|
256
|
-
onPress={() => control.close()}
|
|
257
|
-
/>
|
|
258
|
-
</>
|
|
259
|
-
}
|
|
260
|
-
/>
|
|
261
|
-
}
|
|
262
|
-
>
|
|
263
|
-
<Text className="sr-only" accessibilityLiveRegion="polite">
|
|
264
|
-
{copyMessage}
|
|
265
|
-
</Text>
|
|
266
|
-
<ScreenScrollView
|
|
267
|
-
accessibilityLabel={m.properties}
|
|
268
|
-
style={{ flex: 1, minHeight: 0 }}
|
|
269
|
-
contentContainerStyle={{ flexGrow: 1 }}
|
|
150
|
+
closeLabel={m.closeDetails}
|
|
151
|
+
testID="ticket-detail"
|
|
152
|
+
header={ticket.code}
|
|
153
|
+
subtitle={[boardTitle, ticket.area].filter(Boolean).join(' · ')}
|
|
154
|
+
actions={
|
|
155
|
+
<Button.Group accessibilityLabel={m.actions}>
|
|
156
|
+
<BoardTooltip label={ticket.isFavorite ? m.favoriteRemove : m.favoriteAdd}>
|
|
157
|
+
<Button
|
|
158
|
+
iconOnly
|
|
159
|
+
icon={ticket.isFavorite ? <RiStarFill /> : <RiStarLine />}
|
|
160
|
+
accessibilityLabel={ticket.isFavorite ? m.favoriteRemove : m.favoriteAdd}
|
|
161
|
+
pressed={!!ticket.isFavorite}
|
|
162
|
+
onPress={() => onUpdate({ isFavorite: !ticket.isFavorite })}
|
|
163
|
+
/>
|
|
164
|
+
</BoardTooltip>
|
|
165
|
+
<BoardTooltip label={copyMessage === m.linkCopied ? m.linkCopied : m.copyLink}>
|
|
166
|
+
<Button
|
|
167
|
+
iconOnly
|
|
168
|
+
icon={copyMessage === m.linkCopied ? <RiCheckLine /> : <RiLinkM />}
|
|
169
|
+
accessibilityLabel={m.copyLink}
|
|
170
|
+
onPress={() => {
|
|
171
|
+
void copy('link');
|
|
172
|
+
}}
|
|
173
|
+
/>
|
|
174
|
+
</BoardTooltip>
|
|
175
|
+
<DropdownMenu>
|
|
176
|
+
<DropdownMenuTrigger asChild>
|
|
177
|
+
<Button iconOnly icon={<RiMore2Fill />} accessibilityLabel={m.actions} />
|
|
178
|
+
</DropdownMenuTrigger>
|
|
179
|
+
<DropdownMenuContent
|
|
180
|
+
label={m.actions}
|
|
181
|
+
className="z-[120] w-[220px] rounded-[14px] p-1"
|
|
182
|
+
style={{ width: 220 }}
|
|
270
183
|
>
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
</Text>
|
|
295
|
-
{editingDescription ? (
|
|
296
|
-
<View className="flex flex-col gap-3">
|
|
297
|
-
<Textarea
|
|
298
|
-
accessibilityLabel={m.ticketDescription}
|
|
299
|
-
value={draft}
|
|
300
|
-
onValueChange={setDraft}
|
|
301
|
-
rows={4}
|
|
302
|
-
maxLength={5000}
|
|
303
|
-
autoFocus
|
|
304
|
-
/>
|
|
305
|
-
<View className="flex justify-end gap-2">
|
|
306
|
-
<Button
|
|
307
|
-
appearance="outline"
|
|
308
|
-
tone="neutral"
|
|
309
|
-
size="sm"
|
|
310
|
-
onPress={() => setEditingDescription(false)}
|
|
311
|
-
>
|
|
312
|
-
{m.cancel}
|
|
313
|
-
</Button>
|
|
314
|
-
<Button
|
|
315
|
-
size="sm"
|
|
316
|
-
disabled={!draft.trim()}
|
|
317
|
-
onPress={() => {
|
|
318
|
-
onUpdate({ description: draft.trim() });
|
|
319
|
-
setEditingDescription(false);
|
|
320
|
-
}}
|
|
321
|
-
>
|
|
322
|
-
{m.saveDescription}
|
|
323
|
-
</Button>
|
|
324
|
-
</View>
|
|
325
|
-
</View>
|
|
326
|
-
) : (
|
|
327
|
-
<Text className="whitespace-pre-wrap text-body-regular text-text-secondary wrap-anywhere">
|
|
328
|
-
{ticket.description ?? ''}
|
|
329
|
-
</Text>
|
|
330
|
-
)}
|
|
331
|
-
</View>
|
|
332
|
-
</View>
|
|
333
|
-
<View
|
|
334
|
-
accessibilityLabel={m.properties}
|
|
335
|
-
className="flex items-start gap-5 max-sm:flex-col max-sm:gap-2"
|
|
336
|
-
>
|
|
337
|
-
<Text className="w-[70px] shrink-0 pt-0.5 text-body-medium text-text-secondary">
|
|
338
|
-
{m.properties}
|
|
339
|
-
</Text>
|
|
340
|
-
<View className="flex min-w-0 flex-wrap items-center gap-x-5 gap-y-3">
|
|
341
|
-
<PropertySelect
|
|
342
|
-
label={m.status}
|
|
343
|
-
value={column.id}
|
|
344
|
-
options={columns.map((c) => ({
|
|
345
|
-
id: c.id,
|
|
346
|
-
label: c.title,
|
|
347
|
-
icon: (
|
|
348
|
-
<TicketStatusIcon
|
|
349
|
-
status={c.id}
|
|
350
|
-
className="text-foreground-icon-secondary"
|
|
351
|
-
/>
|
|
352
|
-
),
|
|
353
|
-
}))}
|
|
354
|
-
onChange={onMove}
|
|
355
|
-
renderValue={
|
|
356
|
-
<View className="flex items-center gap-1.5">
|
|
357
|
-
<TicketStatusIcon
|
|
358
|
-
status={column.id}
|
|
359
|
-
className="text-foreground-icon-secondary"
|
|
360
|
-
/>
|
|
361
|
-
<Text className="text-body-medium text-text-primary">
|
|
362
|
-
{column.title}
|
|
363
|
-
</Text>
|
|
364
|
-
</View>
|
|
365
|
-
}
|
|
366
|
-
/>
|
|
367
|
-
<PropertySelect
|
|
368
|
-
chip
|
|
369
|
-
label={m.priority}
|
|
370
|
-
value={ticket.priority}
|
|
371
|
-
options={PRIORITIES.map((p) => ({ id: p, label: m.priorityLabels[p] }))}
|
|
372
|
-
onChange={(p) => onUpdate({ priority: p as TicketPriority })}
|
|
373
|
-
renderValue={
|
|
374
|
-
<Chip
|
|
375
|
-
className={cx(
|
|
376
|
-
'px-[7px] py-0.5 text-body-medium transition-colors duration-150',
|
|
377
|
-
PRIORITY_HOVERS[ticket.priority],
|
|
378
|
-
PRIORITY_STYLES[ticket.priority],
|
|
379
|
-
)}
|
|
380
|
-
>
|
|
381
|
-
{m.priorityLabels[ticket.priority]}
|
|
382
|
-
</Chip>
|
|
383
|
-
}
|
|
384
|
-
/>
|
|
385
|
-
<DropdownMenu>
|
|
386
|
-
<DropdownMenuTrigger asChild>
|
|
387
|
-
<Pressable
|
|
388
|
-
accessibilityLabel={m.editAssignees}
|
|
389
|
-
className="-m-1 flex items-center gap-1.5 rounded-md p-1 text-body-medium text-text-primary hover:bg-background-primary-hover"
|
|
390
|
-
>
|
|
391
|
-
{ticket.assignees.length ? (
|
|
392
|
-
<>
|
|
393
|
-
<MemberAvatars
|
|
394
|
-
ids={ticket.assignees.slice(0, 3)}
|
|
395
|
-
members={members}
|
|
396
|
-
size={18}
|
|
397
|
-
/>
|
|
398
|
-
<Text className="text-body-medium text-text-primary">
|
|
399
|
-
{owner?.name ?? ticket.assignees[0]}
|
|
400
|
-
{ticket.assignees.length > 1
|
|
401
|
-
? ` +${ticket.assignees.length - 1}`
|
|
402
|
-
: ''}
|
|
403
|
-
</Text>
|
|
404
|
-
</>
|
|
405
|
-
) : (
|
|
406
|
-
<>
|
|
407
|
-
<TicketAssigneeIcon className="size-[18px] text-foreground-icon-tertiary" />
|
|
408
|
-
<Text className="text-body-medium text-text-tertiary">
|
|
409
|
-
{m.assignee}
|
|
410
|
-
</Text>
|
|
411
|
-
</>
|
|
412
|
-
)}
|
|
413
|
-
</Pressable>
|
|
414
|
-
</DropdownMenuTrigger>
|
|
415
|
-
<DropdownMenuContent
|
|
416
|
-
label={m.editAssignees}
|
|
417
|
-
className="z-[120] w-[220px] rounded-[14px] p-1"
|
|
418
|
-
style={{ width: 220 }}
|
|
419
|
-
>
|
|
420
|
-
{Object.values(members).map((p) => (
|
|
421
|
-
<DropdownMenuCheckboxItem
|
|
422
|
-
key={p.id}
|
|
423
|
-
className="rounded-2lg px-2 py-1.5 hover:bg-background-secondary-hover"
|
|
424
|
-
checked={ticket.assignees.includes(p.id)}
|
|
425
|
-
onCheckedChange={(selected) =>
|
|
426
|
-
onUpdate({
|
|
427
|
-
assignees: selected
|
|
428
|
-
? [...ticket.assignees, p.id]
|
|
429
|
-
: ticket.assignees.filter((id) => id !== p.id),
|
|
430
|
-
})
|
|
431
|
-
}
|
|
432
|
-
>
|
|
433
|
-
<View className="flex items-center gap-2">
|
|
434
|
-
<Avatar
|
|
435
|
-
className="size-[18px]"
|
|
436
|
-
source={p.avatar}
|
|
437
|
-
initials={p.initials}
|
|
438
|
-
/>
|
|
439
|
-
<Text className="text-body-medium text-text-primary">{p.name}</Text>
|
|
440
|
-
</View>
|
|
441
|
-
</DropdownMenuCheckboxItem>
|
|
442
|
-
))}
|
|
443
|
-
</DropdownMenuContent>
|
|
444
|
-
</DropdownMenu>
|
|
445
|
-
<PropertySelect
|
|
446
|
-
label={m.project}
|
|
447
|
-
value={ticket.project}
|
|
448
|
-
options={projects.map((p) => ({ id: p, label: p }))}
|
|
449
|
-
onChange={(project) => onUpdate({ project })}
|
|
450
|
-
renderValue={
|
|
451
|
-
<View className="flex items-center gap-1.5">
|
|
452
|
-
<RiFolder6Line className="size-[18px] text-foreground-icon-secondary" />
|
|
453
|
-
<Text className="text-body-medium text-text-primary">
|
|
454
|
-
{ticket.project}
|
|
455
|
-
</Text>
|
|
456
|
-
</View>
|
|
457
|
-
}
|
|
458
|
-
/>
|
|
459
|
-
</View>
|
|
460
|
-
</View>
|
|
461
|
-
{!!ticket.resources?.length && (
|
|
462
|
-
<View
|
|
463
|
-
className="flex items-start gap-5 max-sm:flex-col max-sm:gap-2"
|
|
464
|
-
accessibilityLabel={m.resources}
|
|
465
|
-
>
|
|
466
|
-
<Text className="w-[71px] shrink-0 pt-0.5 text-body-medium text-text-secondary">
|
|
467
|
-
{m.resources}
|
|
468
|
-
</Text>
|
|
469
|
-
<View className="flex flex-wrap gap-2">
|
|
470
|
-
{ticket.resources.map((r) => (
|
|
471
|
-
<Pressable
|
|
472
|
-
key={r.href}
|
|
473
|
-
accessibilityRole="link"
|
|
474
|
-
accessibilityLabel={r.label}
|
|
475
|
-
href={r.href}
|
|
476
|
-
target="_blank"
|
|
477
|
-
rel="noreferrer"
|
|
478
|
-
className="rounded-md outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring"
|
|
479
|
-
onPress={Platform.OS === 'web' ? undefined : () => openExternal(r.href)}
|
|
480
|
-
>
|
|
481
|
-
<Chip className="bg-ticket-detail-resource-background px-[7px] py-0.5 text-body-medium text-ticket-detail-resource-text">
|
|
482
|
-
{r.label}
|
|
483
|
-
</Chip>
|
|
484
|
-
</Pressable>
|
|
485
|
-
))}
|
|
486
|
-
</View>
|
|
487
|
-
</View>
|
|
488
|
-
)}
|
|
489
|
-
{ticket.tokenUsage && (
|
|
490
|
-
<TicketTokenChart title={m.tokens} {...ticket.tokenUsage} plotHeight={190} />
|
|
491
|
-
)}
|
|
492
|
-
</View>
|
|
184
|
+
{action(m.editDescription, RiEditLine, () => {
|
|
185
|
+
setDraft(ticket.description ?? '');
|
|
186
|
+
setEditingDescription(true);
|
|
187
|
+
})}
|
|
188
|
+
{action(copyMessage === m.idCopied ? m.idCopied : m.copyId, RiFileCopyLine, () => {
|
|
189
|
+
void copy('id');
|
|
190
|
+
})}
|
|
191
|
+
{action(
|
|
192
|
+
column.id === 'done' ? m.reopen : m.markDone,
|
|
193
|
+
column.id === 'done' ? RiRestartLine : RiCheckboxCircleLine,
|
|
194
|
+
() => onMove(column.id === 'done' ? 'todo' : 'done'),
|
|
195
|
+
)}
|
|
196
|
+
</DropdownMenuContent>
|
|
197
|
+
</DropdownMenu>
|
|
198
|
+
</Button.Group>
|
|
199
|
+
}
|
|
200
|
+
scrollFooter={
|
|
201
|
+
<View accessibilityLabel={m.comments}>
|
|
202
|
+
<View className="flex flex-col" accessibilityLiveRegion="polite">
|
|
203
|
+
{(ticket.comments ?? []).map((entry, index) => {
|
|
204
|
+
const author = Object.values(members).find((p) => p.name === entry.author);
|
|
205
|
+
const authorName = entry.author ?? m.you;
|
|
206
|
+
return (
|
|
493
207
|
<View
|
|
494
|
-
|
|
495
|
-
className="
|
|
208
|
+
key={entry.id}
|
|
209
|
+
className="relative flex flex-col gap-[3px] rounded-2xl p-3 after:pointer-events-none after:absolute after:top-9 after:-bottom-3 after:start-[23.5px] after:w-px after:bg-border-button-default last:after:hidden"
|
|
496
210
|
>
|
|
497
|
-
<
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
return (
|
|
502
|
-
<View
|
|
503
|
-
key={entry.id}
|
|
504
|
-
className="relative flex flex-col gap-[3px] rounded-2xl p-3 after:pointer-events-none after:absolute after:top-9 after:-bottom-3 after:start-[23.5px] after:w-px after:bg-border-button-default last:after:hidden"
|
|
505
|
-
>
|
|
506
|
-
{Platform.OS !== 'web' && index < (ticket.comments?.length ?? 0) - 1 && (
|
|
507
|
-
<View
|
|
508
|
-
pointerEvents="none"
|
|
509
|
-
className="absolute top-9 -bottom-3 start-[23.5px] w-px bg-border-button-default"
|
|
510
|
-
/>
|
|
511
|
-
)}
|
|
512
|
-
<View className="flex min-w-0 items-center gap-2">
|
|
513
|
-
<Avatar
|
|
514
|
-
source={author?.avatar}
|
|
515
|
-
initials={author?.initials}
|
|
516
|
-
name={authorName}
|
|
517
|
-
color="neutral"
|
|
518
|
-
alt={authorName}
|
|
519
|
-
className="size-6"
|
|
520
|
-
size={24}
|
|
521
|
-
/>
|
|
522
|
-
<View className="flex min-w-0 flex-wrap items-center gap-x-2">
|
|
523
|
-
<Text className="truncate text-body-medium text-text-primary">
|
|
524
|
-
{authorName}
|
|
525
|
-
</Text>
|
|
526
|
-
<Text className="shrink-0 text-body-2-medium text-text-tertiary">
|
|
527
|
-
{entry.time}
|
|
528
|
-
</Text>
|
|
529
|
-
</View>
|
|
530
|
-
</View>
|
|
531
|
-
<Text className="ps-[29px] whitespace-pre-wrap text-body-medium text-text-secondary wrap-anywhere">
|
|
532
|
-
{entry.body}
|
|
533
|
-
</Text>
|
|
534
|
-
</View>
|
|
535
|
-
);
|
|
536
|
-
})}
|
|
537
|
-
</View>
|
|
538
|
-
<View className="relative">
|
|
539
|
-
<Textarea
|
|
540
|
-
accessibilityLabel={m.addComment}
|
|
541
|
-
placeholder={m.enterComment}
|
|
542
|
-
value={comment}
|
|
543
|
-
onValueChange={setComment}
|
|
544
|
-
rows={1}
|
|
545
|
-
maxLength={2000}
|
|
546
|
-
resize="none"
|
|
547
|
-
fieldClassName="h-[72px] rounded-xl bg-background-secondary-default pt-3 pb-10"
|
|
548
|
-
fieldStyle={{ paddingLeft: 12, paddingRight: 12 }}
|
|
211
|
+
{Platform.OS !== 'web' && index < (ticket.comments?.length ?? 0) - 1 && (
|
|
212
|
+
<View
|
|
213
|
+
pointerEvents="none"
|
|
214
|
+
className="absolute top-9 -bottom-3 start-[23.5px] w-px bg-border-button-default"
|
|
549
215
|
/>
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
height: 24,
|
|
561
|
-
minHeight: 24,
|
|
562
|
-
borderRadius: 12,
|
|
563
|
-
paddingLeft: 0,
|
|
564
|
-
paddingRight: 0,
|
|
565
|
-
}}
|
|
566
|
-
onPress={postComment}
|
|
567
|
-
iconOnly
|
|
568
|
-
icon={<RiArrowUpLine className="size-[13.333px]" />}
|
|
216
|
+
)}
|
|
217
|
+
<View className="flex min-w-0 items-center gap-2">
|
|
218
|
+
<Avatar
|
|
219
|
+
source={author?.avatar}
|
|
220
|
+
initials={author?.initials}
|
|
221
|
+
name={authorName}
|
|
222
|
+
color="neutral"
|
|
223
|
+
alt={authorName}
|
|
224
|
+
className="size-6"
|
|
225
|
+
size={24}
|
|
569
226
|
/>
|
|
227
|
+
<View className="flex min-w-0 flex-wrap items-center gap-x-2">
|
|
228
|
+
<Text className="truncate text-body-medium text-text-primary">
|
|
229
|
+
{authorName}
|
|
230
|
+
</Text>
|
|
231
|
+
<Text className="shrink-0 text-body-2-medium text-text-tertiary">
|
|
232
|
+
{entry.time}
|
|
233
|
+
</Text>
|
|
234
|
+
</View>
|
|
570
235
|
</View>
|
|
236
|
+
<Text className="ps-[29px] whitespace-pre-wrap text-body-medium text-text-secondary wrap-anywhere">
|
|
237
|
+
{entry.body}
|
|
238
|
+
</Text>
|
|
571
239
|
</View>
|
|
240
|
+
);
|
|
241
|
+
})}
|
|
242
|
+
</View>
|
|
243
|
+
<View className="relative">
|
|
244
|
+
<Textarea
|
|
245
|
+
accessibilityLabel={m.addComment}
|
|
246
|
+
placeholder={m.enterComment}
|
|
247
|
+
value={comment}
|
|
248
|
+
onValueChange={setComment}
|
|
249
|
+
rows={1}
|
|
250
|
+
maxLength={2000}
|
|
251
|
+
resize="none"
|
|
252
|
+
fieldClassName="h-[72px] rounded-xl bg-background-secondary-default pt-3 pb-10"
|
|
253
|
+
fieldStyle={{ paddingLeft: 12, paddingRight: 12 }}
|
|
254
|
+
/>
|
|
255
|
+
<Button
|
|
256
|
+
accessibilityLabel={m.postComment}
|
|
257
|
+
size="sm"
|
|
258
|
+
disabled={!comment.trim()}
|
|
259
|
+
className="absolute end-2 bottom-2 size-6 rounded-full p-0"
|
|
260
|
+
style={{
|
|
261
|
+
position: 'absolute',
|
|
262
|
+
bottom: 8,
|
|
263
|
+
[rtl ? 'left' : 'right']: 8,
|
|
264
|
+
width: 24,
|
|
265
|
+
height: 24,
|
|
266
|
+
minHeight: 24,
|
|
267
|
+
borderRadius: 12,
|
|
268
|
+
paddingLeft: 0,
|
|
269
|
+
paddingRight: 0,
|
|
270
|
+
}}
|
|
271
|
+
onPress={postComment}
|
|
272
|
+
iconOnly
|
|
273
|
+
icon={<RiArrowUpLine className="size-[13.333px]" />}
|
|
274
|
+
/>
|
|
275
|
+
</View>
|
|
276
|
+
</View>
|
|
277
|
+
}
|
|
278
|
+
>
|
|
279
|
+
<Text className="sr-only" accessibilityLiveRegion="polite">
|
|
280
|
+
{copyMessage}
|
|
281
|
+
</Text>
|
|
282
|
+
|
|
283
|
+
<View className="flex flex-col gap-3" accessibilityLabel={m.description}>
|
|
284
|
+
{creator && (
|
|
285
|
+
<View className="flex items-center gap-[13px] text-body-medium">
|
|
286
|
+
<Text className="text-body-medium text-text-secondary">{m.createdBy}</Text>
|
|
287
|
+
<View className="flex items-center gap-1.5 text-text-primary">
|
|
288
|
+
<Avatar
|
|
289
|
+
source={creator.avatar}
|
|
290
|
+
initials={creator.initials}
|
|
291
|
+
alt={creator.name}
|
|
292
|
+
className="size-[18px]"
|
|
293
|
+
/>
|
|
294
|
+
<Text className="text-body-medium text-text-primary">{creator.name}</Text>
|
|
295
|
+
</View>
|
|
296
|
+
</View>
|
|
297
|
+
)}
|
|
298
|
+
<View className="flex flex-col gap-1.5">
|
|
299
|
+
<Text
|
|
300
|
+
accessibilityRole="header"
|
|
301
|
+
className="text-headline-medium text-text-primary wrap-anywhere"
|
|
302
|
+
>
|
|
303
|
+
{ticket.title}
|
|
304
|
+
</Text>
|
|
305
|
+
{editingDescription ? (
|
|
306
|
+
<View className="flex flex-col gap-3">
|
|
307
|
+
<Textarea
|
|
308
|
+
accessibilityLabel={m.ticketDescription}
|
|
309
|
+
value={draft}
|
|
310
|
+
onValueChange={setDraft}
|
|
311
|
+
rows={4}
|
|
312
|
+
maxLength={5000}
|
|
313
|
+
autoFocus
|
|
314
|
+
/>
|
|
315
|
+
<View className="flex justify-end gap-2">
|
|
316
|
+
<Button
|
|
317
|
+
appearance="outline"
|
|
318
|
+
tone="neutral"
|
|
319
|
+
size="sm"
|
|
320
|
+
onPress={() => setEditingDescription(false)}
|
|
321
|
+
>
|
|
322
|
+
{m.cancel}
|
|
323
|
+
</Button>
|
|
324
|
+
<Button
|
|
325
|
+
size="sm"
|
|
326
|
+
disabled={!draft.trim()}
|
|
327
|
+
onPress={() => {
|
|
328
|
+
onUpdate({ description: draft.trim() });
|
|
329
|
+
setEditingDescription(false);
|
|
330
|
+
}}
|
|
331
|
+
>
|
|
332
|
+
{m.saveDescription}
|
|
333
|
+
</Button>
|
|
572
334
|
</View>
|
|
573
|
-
</
|
|
574
|
-
|
|
575
|
-
|
|
335
|
+
</View>
|
|
336
|
+
) : (
|
|
337
|
+
<Text className="whitespace-pre-wrap text-body-regular text-text-secondary wrap-anywhere">
|
|
338
|
+
{ticket.description ?? ''}
|
|
339
|
+
</Text>
|
|
340
|
+
)}
|
|
341
|
+
</View>
|
|
576
342
|
</View>
|
|
577
|
-
|
|
343
|
+
<DetailDialogSection label={m.properties} accessibilityLabel={m.properties}>
|
|
344
|
+
<PropertySelect
|
|
345
|
+
label={m.status}
|
|
346
|
+
value={column.id}
|
|
347
|
+
options={columns.map((c) => ({
|
|
348
|
+
id: c.id,
|
|
349
|
+
label: c.title,
|
|
350
|
+
icon: <TicketStatusIcon status={c.id} className="text-foreground-icon-secondary" />,
|
|
351
|
+
}))}
|
|
352
|
+
onChange={onMove}
|
|
353
|
+
renderValue={
|
|
354
|
+
<View className="flex items-center gap-1.5">
|
|
355
|
+
<TicketStatusIcon status={column.id} className="text-foreground-icon-secondary" />
|
|
356
|
+
<Text className="text-body-medium text-text-primary">{column.title}</Text>
|
|
357
|
+
</View>
|
|
358
|
+
}
|
|
359
|
+
/>
|
|
360
|
+
<PropertySelect
|
|
361
|
+
chip
|
|
362
|
+
label={m.priority}
|
|
363
|
+
value={ticket.priority}
|
|
364
|
+
options={PRIORITIES.map((p) => ({ id: p, label: m.priorityLabels[p] }))}
|
|
365
|
+
onChange={(p) => onUpdate({ priority: p as TicketPriority })}
|
|
366
|
+
renderValue={
|
|
367
|
+
<Chip
|
|
368
|
+
className={cx(
|
|
369
|
+
'px-[7px] py-0.5 text-body-medium transition-colors duration-150',
|
|
370
|
+
PRIORITY_HOVERS[ticket.priority],
|
|
371
|
+
PRIORITY_STYLES[ticket.priority],
|
|
372
|
+
)}
|
|
373
|
+
>
|
|
374
|
+
{m.priorityLabels[ticket.priority]}
|
|
375
|
+
</Chip>
|
|
376
|
+
}
|
|
377
|
+
/>
|
|
378
|
+
<DropdownMenu>
|
|
379
|
+
<DropdownMenuTrigger asChild>
|
|
380
|
+
<Pressable
|
|
381
|
+
accessibilityLabel={m.editAssignees}
|
|
382
|
+
className="-m-1 flex items-center gap-1.5 rounded-md p-1 text-body-medium text-text-primary hover:bg-background-primary-hover"
|
|
383
|
+
>
|
|
384
|
+
{ticket.assignees.length ? (
|
|
385
|
+
<>
|
|
386
|
+
<MemberAvatars ids={ticket.assignees.slice(0, 3)} members={members} size={18} />
|
|
387
|
+
<Text className="text-body-medium text-text-primary">
|
|
388
|
+
{owner?.name ?? ticket.assignees[0]}
|
|
389
|
+
{ticket.assignees.length > 1 ? ` +${ticket.assignees.length - 1}` : ''}
|
|
390
|
+
</Text>
|
|
391
|
+
</>
|
|
392
|
+
) : (
|
|
393
|
+
<>
|
|
394
|
+
<TicketAssigneeIcon className="size-[18px] text-foreground-icon-tertiary" />
|
|
395
|
+
<Text className="text-body-medium text-text-tertiary">{m.assignee}</Text>
|
|
396
|
+
</>
|
|
397
|
+
)}
|
|
398
|
+
</Pressable>
|
|
399
|
+
</DropdownMenuTrigger>
|
|
400
|
+
<DropdownMenuContent
|
|
401
|
+
label={m.editAssignees}
|
|
402
|
+
className="z-[120] w-[220px] rounded-[14px] p-1"
|
|
403
|
+
style={{ width: 220 }}
|
|
404
|
+
>
|
|
405
|
+
{Object.values(members).map((p) => (
|
|
406
|
+
<DropdownMenuCheckboxItem
|
|
407
|
+
key={p.id}
|
|
408
|
+
className="rounded-2lg px-2 py-1.5 hover:bg-background-secondary-hover"
|
|
409
|
+
checked={ticket.assignees.includes(p.id)}
|
|
410
|
+
onCheckedChange={(selected) =>
|
|
411
|
+
onUpdate({
|
|
412
|
+
assignees: selected
|
|
413
|
+
? [...ticket.assignees, p.id]
|
|
414
|
+
: ticket.assignees.filter((id) => id !== p.id),
|
|
415
|
+
})
|
|
416
|
+
}
|
|
417
|
+
>
|
|
418
|
+
<View className="flex items-center gap-2">
|
|
419
|
+
<Avatar className="size-[18px]" source={p.avatar} initials={p.initials} />
|
|
420
|
+
<Text className="text-body-medium text-text-primary">{p.name}</Text>
|
|
421
|
+
</View>
|
|
422
|
+
</DropdownMenuCheckboxItem>
|
|
423
|
+
))}
|
|
424
|
+
</DropdownMenuContent>
|
|
425
|
+
</DropdownMenu>
|
|
426
|
+
<PropertySelect
|
|
427
|
+
label={m.project}
|
|
428
|
+
value={ticket.project}
|
|
429
|
+
options={projects.map((p) => ({ id: p, label: p }))}
|
|
430
|
+
onChange={(project) => onUpdate({ project })}
|
|
431
|
+
renderValue={
|
|
432
|
+
<View className="flex items-center gap-1.5">
|
|
433
|
+
<RiFolder6Line className="size-[18px] text-foreground-icon-secondary" />
|
|
434
|
+
<Text className="text-body-medium text-text-primary">{ticket.project}</Text>
|
|
435
|
+
</View>
|
|
436
|
+
}
|
|
437
|
+
/>
|
|
438
|
+
</DetailDialogSection>
|
|
439
|
+
{!!ticket.resources?.length && (
|
|
440
|
+
<DetailDialogSection label={m.resources} accessibilityLabel={m.resources}>
|
|
441
|
+
{ticket.resources.map((r) => (
|
|
442
|
+
<Pressable
|
|
443
|
+
key={r.href}
|
|
444
|
+
accessibilityRole="link"
|
|
445
|
+
accessibilityLabel={r.label}
|
|
446
|
+
href={r.href}
|
|
447
|
+
target="_blank"
|
|
448
|
+
rel="noreferrer"
|
|
449
|
+
className="rounded-md outline-none focus-visible:ring-2 focus-visible:ring-border-focus-ring"
|
|
450
|
+
onPress={Platform.OS === 'web' ? undefined : () => openExternal(r.href)}
|
|
451
|
+
>
|
|
452
|
+
<Chip className="bg-ticket-detail-resource-background px-[7px] py-0.5 text-body-medium text-ticket-detail-resource-text">
|
|
453
|
+
{r.label}
|
|
454
|
+
</Chip>
|
|
455
|
+
</Pressable>
|
|
456
|
+
))}
|
|
457
|
+
</DetailDialogSection>
|
|
458
|
+
)}
|
|
459
|
+
{ticket.tokenUsage && (
|
|
460
|
+
<TicketTokenChart title={m.tokens} {...ticket.tokenUsage} plotHeight={190} />
|
|
461
|
+
)}
|
|
462
|
+
</DetailDialog>
|
|
578
463
|
);
|
|
579
464
|
}
|