@justanarthur/modo-ui-ai 0.0.0-stage → 0.3.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/LICENSE +21 -0
- package/LICENSE.fluid-functionalism +21 -0
- package/README.md +105 -2
- package/blocks/conversation/agent-prompt/examples.mdx +44 -0
- package/blocks/conversation/agent-prompt/index.tsx +114 -0
- package/blocks/conversation/composer/draft.css +25 -0
- package/blocks/conversation/composer/draft.tsx +589 -0
- package/blocks/conversation/composer/examples.mdx +164 -0
- package/blocks/conversation/composer/file-preview-tile.tsx +59 -0
- package/blocks/conversation/composer/file-thumbnail.tsx +146 -0
- package/blocks/conversation/composer/index.tsx +651 -0
- package/blocks/conversation/composer/queued-row.tsx +102 -0
- package/blocks/conversation/composer/shared.ts +38 -0
- package/blocks/conversation/composer/suggestion-row.tsx +64 -0
- package/blocks/conversation/composer/use-composer-files.ts +142 -0
- package/blocks/conversation/composer/use-history-nav.ts +60 -0
- package/blocks/conversation/composer/use-message-queue.ts +108 -0
- package/blocks/conversation/composer/use-region-height.ts +34 -0
- package/blocks/conversation/failure-states/examples.mdx +58 -0
- package/blocks/conversation/failure-states/index.tsx +274 -0
- package/blocks/conversation/transcript/examples.mdx +43 -0
- package/blocks/conversation/transcript/index.tsx +206 -0
- package/blocks/conversation/transcript-search/examples.mdx +50 -0
- package/blocks/conversation/transcript-search/index.tsx +469 -0
- package/blocks/dialogs/command-palette/examples.mdx +50 -0
- package/blocks/dialogs/command-palette/index.tsx +239 -0
- package/blocks/dialogs/hook-dialog/examples.mdx +44 -0
- package/blocks/dialogs/hook-dialog/index.tsx +286 -0
- package/blocks/dialogs/mcp-server-dialog/examples.mdx +57 -0
- package/blocks/dialogs/mcp-server-dialog/index.tsx +415 -0
- package/blocks/dialogs/shortcuts-sheet/examples.mdx +36 -0
- package/blocks/dialogs/shortcuts-sheet/index.tsx +186 -0
- package/blocks/panes/artifacts-pane/examples.mdx +23 -0
- package/blocks/panes/artifacts-pane/index.tsx +82 -0
- package/blocks/panes/changes-pane/examples.mdx +23 -0
- package/blocks/panes/changes-pane/index.tsx +248 -0
- package/blocks/panes/file-pane/examples.mdx +13 -0
- package/blocks/panes/file-pane/index.tsx +102 -0
- package/blocks/panes/pr-pane/examples.mdx +13 -0
- package/blocks/panes/pr-pane/index.tsx +191 -0
- package/blocks/panes/side-pane/examples.mdx +58 -0
- package/blocks/panes/side-pane/index.tsx +187 -0
- package/blocks/panes/tasks-pane/examples.mdx +23 -0
- package/blocks/panes/tasks-pane/index.tsx +127 -0
- package/blocks/panes/terminal-pane/examples.mdx +13 -0
- package/blocks/panes/terminal-pane/index.tsx +99 -0
- package/blocks/panes/usage-pane/examples.mdx +23 -0
- package/blocks/panes/usage-pane/index.tsx +78 -0
- package/blocks/profiles/profile-onboarding/examples.mdx +80 -0
- package/blocks/profiles/profile-onboarding/index.tsx +580 -0
- package/blocks/profiles/profile-switcher/examples.mdx +29 -0
- package/blocks/profiles/profile-switcher/index.tsx +212 -0
- package/blocks/profiles/profile-usage/examples.mdx +41 -0
- package/blocks/profiles/profile-usage/index.tsx +141 -0
- package/blocks/sessions/inbox/examples.mdx +35 -0
- package/blocks/sessions/inbox/index.tsx +372 -0
- package/blocks/sessions/session-board/examples.mdx +34 -0
- package/blocks/sessions/session-board/index.tsx +570 -0
- package/blocks/sessions/session-sidebar/examples.mdx +93 -0
- package/blocks/sessions/session-sidebar/index.tsx +497 -0
- package/blocks/settings/extensions/examples.mdx +10 -0
- package/blocks/settings/extensions/index.tsx +72 -0
- package/blocks/settings/hooks/examples.mdx +16 -0
- package/blocks/settings/hooks/index.tsx +127 -0
- package/blocks/settings/mcp-servers/examples.mdx +26 -0
- package/blocks/settings/mcp-servers/index.tsx +204 -0
- package/blocks/settings/memory/examples.mdx +22 -0
- package/blocks/settings/memory/index.tsx +113 -0
- package/blocks/settings/notifications/examples.mdx +8 -0
- package/blocks/settings/notifications/index.tsx +63 -0
- package/blocks/settings/permission-rules/examples.mdx +37 -0
- package/blocks/settings/permission-rules/index.tsx +317 -0
- package/blocks/settings/plugin-catalog/examples.mdx +52 -0
- package/blocks/settings/plugin-catalog/index.tsx +407 -0
- package/blocks/settings/plugins/examples.mdx +10 -0
- package/blocks/settings/plugins/index.tsx +72 -0
- package/blocks/settings/settings-window/examples.mdx +40 -0
- package/blocks/settings/settings-window/index.tsx +188 -0
- package/blocks/settings/worktrees/examples.mdx +17 -0
- package/blocks/settings/worktrees/index.tsx +145 -0
- package/components/conversation/agent-run/examples.mdx +38 -0
- package/components/conversation/agent-run/index.tsx +83 -0
- package/components/conversation/chapter-nav/examples.mdx +30 -0
- package/components/conversation/chapter-nav/index.tsx +123 -0
- package/components/conversation/message/examples.mdx +53 -0
- package/components/conversation/message/index.tsx +130 -0
- package/components/conversation/message/working.tsx +102 -0
- package/components/conversation/reasoning/examples.mdx +32 -0
- package/components/conversation/reasoning/index.tsx +55 -0
- package/components/conversation/recap/examples.mdx +21 -0
- package/components/conversation/recap/index.tsx +67 -0
- package/components/conversation/todo-list/examples.mdx +32 -0
- package/components/conversation/todo-list/index.tsx +106 -0
- package/components/conversation/tool-call/examples.mdx +48 -0
- package/components/conversation/tool-call/index.tsx +142 -0
- package/components/conversation/work-summary/examples.mdx +50 -0
- package/components/conversation/work-summary/index.tsx +87 -0
- package/components/prompts/permission-request/examples.mdx +32 -0
- package/components/prompts/permission-request/index.tsx +74 -0
- package/components/prompts/plan-approval/examples.mdx +37 -0
- package/components/prompts/plan-approval/index.tsx +76 -0
- package/components/prompts/prompt-card/examples.mdx +31 -0
- package/components/prompts/prompt-card/index.tsx +82 -0
- package/components/prompts/question-prompt/examples.mdx +46 -0
- package/components/prompts/question-prompt/index.tsx +118 -0
- package/dist/blocks/conversation/agent-prompt/index.d.ts +7 -0
- package/dist/blocks/conversation/agent-prompt/index.js +13 -0
- package/dist/blocks/conversation/composer/index.d.ts +4 -0
- package/dist/blocks/conversation/composer/index.js +16 -0
- package/dist/blocks/conversation/failure-states/index.d.ts +4 -0
- package/dist/blocks/conversation/failure-states/index.js +8 -0
- package/dist/blocks/conversation/transcript/index.d.ts +50 -0
- package/dist/blocks/conversation/transcript/index.js +17 -0
- package/dist/blocks/conversation/transcript-search/index.d.ts +4 -0
- package/dist/blocks/conversation/transcript-search/index.js +11 -0
- package/dist/blocks/dialogs/command-palette/index.d.ts +5 -0
- package/dist/blocks/dialogs/command-palette/index.js +20 -0
- package/dist/blocks/dialogs/hook-dialog/index.d.ts +3 -0
- package/dist/blocks/dialogs/hook-dialog/index.js +12 -0
- package/dist/blocks/dialogs/mcp-server-dialog/index.d.ts +5 -0
- package/dist/blocks/dialogs/mcp-server-dialog/index.js +12 -0
- package/dist/blocks/dialogs/shortcuts-sheet/index.d.ts +2 -0
- package/dist/blocks/dialogs/shortcuts-sheet/index.js +11 -0
- package/dist/blocks/panes/artifacts-pane/index.d.ts +3 -0
- package/dist/blocks/panes/artifacts-pane/index.js +9 -0
- package/dist/blocks/panes/changes-pane/index.d.ts +3 -0
- package/dist/blocks/panes/changes-pane/index.js +9 -0
- package/dist/blocks/panes/file-pane/index.d.ts +3 -0
- package/dist/blocks/panes/file-pane/index.js +9 -0
- package/dist/blocks/panes/pr-pane/index.d.ts +3 -0
- package/dist/blocks/panes/pr-pane/index.js +10 -0
- package/dist/blocks/panes/side-pane/index.d.ts +5 -0
- package/dist/blocks/panes/side-pane/index.js +21 -0
- package/dist/blocks/panes/tasks-pane/index.d.ts +3 -0
- package/dist/blocks/panes/tasks-pane/index.js +10 -0
- package/dist/blocks/panes/terminal-pane/index.d.ts +3 -0
- package/dist/blocks/panes/terminal-pane/index.js +9 -0
- package/dist/blocks/panes/usage-pane/index.d.ts +4 -0
- package/dist/blocks/panes/usage-pane/index.js +11 -0
- package/dist/blocks/profiles/profile-onboarding/index.d.ts +4 -0
- package/dist/blocks/profiles/profile-onboarding/index.js +11 -0
- package/dist/blocks/profiles/profile-switcher/index.d.ts +4 -0
- package/dist/blocks/profiles/profile-switcher/index.js +12 -0
- package/dist/blocks/profiles/profile-usage/index.d.ts +4 -0
- package/dist/blocks/profiles/profile-usage/index.js +10 -0
- package/dist/blocks/sessions/inbox/index.d.ts +2 -0
- package/dist/blocks/sessions/inbox/index.js +11 -0
- package/dist/blocks/sessions/session-board/index.d.ts +4 -0
- package/dist/blocks/sessions/session-board/index.js +27 -0
- package/dist/blocks/sessions/session-sidebar/index.d.ts +5 -0
- package/dist/blocks/sessions/session-sidebar/index.js +15 -0
- package/dist/blocks/settings/extensions/index.d.ts +2 -0
- package/dist/blocks/settings/extensions/index.js +9 -0
- package/dist/blocks/settings/hooks/index.d.ts +4 -0
- package/dist/blocks/settings/hooks/index.js +9 -0
- package/dist/blocks/settings/mcp-servers/index.d.ts +4 -0
- package/dist/blocks/settings/mcp-servers/index.js +9 -0
- package/dist/blocks/settings/memory/index.d.ts +4 -0
- package/dist/blocks/settings/memory/index.js +8 -0
- package/dist/blocks/settings/notifications/index.d.ts +2 -0
- package/dist/blocks/settings/notifications/index.js +8 -0
- package/dist/blocks/settings/permission-rules/index.d.ts +3 -0
- package/dist/blocks/settings/permission-rules/index.js +10 -0
- package/dist/blocks/settings/plugin-catalog/index.d.ts +2 -0
- package/dist/blocks/settings/plugin-catalog/index.js +11 -0
- package/dist/blocks/settings/plugins/index.d.ts +4 -0
- package/dist/blocks/settings/plugins/index.js +9 -0
- package/dist/blocks/settings/settings-window/index.d.ts +4 -0
- package/dist/blocks/settings/settings-window/index.js +8 -0
- package/dist/blocks/settings/worktrees/index.d.ts +4 -0
- package/dist/blocks/settings/worktrees/index.js +9 -0
- package/dist/components/conversation/agent-run/index.d.ts +3 -0
- package/dist/components/conversation/agent-run/index.js +10 -0
- package/dist/components/conversation/chapter-nav/index.d.ts +2 -0
- package/dist/components/conversation/chapter-nav/index.js +11 -0
- package/dist/components/conversation/message/index.d.ts +2 -0
- package/dist/components/conversation/message/index.js +15 -0
- package/dist/components/conversation/reasoning/index.d.ts +2 -0
- package/dist/components/conversation/reasoning/index.js +8 -0
- package/dist/components/conversation/recap/index.d.ts +2 -0
- package/dist/components/conversation/recap/index.js +9 -0
- package/dist/components/conversation/todo-list/index.d.ts +2 -0
- package/dist/components/conversation/todo-list/index.js +9 -0
- package/dist/components/conversation/tool-call/index.d.ts +3 -0
- package/dist/components/conversation/tool-call/index.js +13 -0
- package/dist/components/conversation/work-summary/index.d.ts +2 -0
- package/dist/components/conversation/work-summary/index.js +10 -0
- package/dist/components/prompts/permission-request/index.d.ts +2 -0
- package/dist/components/prompts/permission-request/index.js +9 -0
- package/dist/components/prompts/plan-approval/index.d.ts +2 -0
- package/dist/components/prompts/plan-approval/index.js +9 -0
- package/dist/components/prompts/prompt-card/index.d.ts +3 -0
- package/dist/components/prompts/prompt-card/index.js +8 -0
- package/dist/components/prompts/question-prompt/index.d.ts +2 -0
- package/dist/components/prompts/question-prompt/index.js +9 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +231 -0
- package/dist/lib/config-parts.d.ts +2 -0
- package/dist/lib/config-parts.js +16 -0
- package/dist/lib/icons.d.ts +2 -0
- package/dist/lib/icons.js +10 -0
- package/dist/lib/pace-bar.d.ts +11 -0
- package/dist/lib/pace-bar.js +6 -0
- package/dist/lib/pace.d.ts +4 -0
- package/dist/lib/pace.js +14 -0
- package/dist/lib/pane-parts.d.ts +25 -0
- package/dist/lib/pane-parts.js +11 -0
- package/dist/lib/row-trigger.d.ts +5 -0
- package/dist/lib/row-trigger.js +7 -0
- package/dist/lib/settings-parts.d.ts +70 -0
- package/dist/lib/settings-parts.js +24 -0
- package/dist/lib/side-pane-types.d.ts +2 -0
- package/dist/lib/side-pane-types.js +1 -0
- package/dist/lib/status-glyph.d.ts +8 -0
- package/dist/lib/status-glyph.js +12 -0
- package/dist/lib/types.d.ts +3 -0
- package/dist/lib/types.js +1 -0
- package/dist/shared/chunk-04a497rr.js +21 -0
- package/dist/shared/chunk-13yf0mza.d.ts +70 -0
- package/dist/shared/chunk-1hzrm8r5.d.ts +51 -0
- package/dist/shared/chunk-1qdwg7w5.d.ts +81 -0
- package/dist/shared/chunk-1yt061np.d.ts +64 -0
- package/dist/shared/chunk-218qabm5.js +250 -0
- package/dist/shared/chunk-2fk5aq60.js +313 -0
- package/dist/shared/chunk-3ps5h55t.d.ts +30 -0
- package/dist/shared/chunk-3yaftgh0.d.ts +28 -0
- package/dist/shared/chunk-4zvhpf2x.js +55 -0
- package/dist/shared/chunk-57hzzmjd.d.ts +67 -0
- package/dist/shared/chunk-58jh3mje.js +46 -0
- package/dist/shared/chunk-58qvny6a.d.ts +29 -0
- package/dist/shared/chunk-5fhkkn39.js +130 -0
- package/dist/shared/chunk-5hw0525a.d.ts +33 -0
- package/dist/shared/chunk-5meda998.js +238 -0
- package/dist/shared/chunk-5pqksw7z.js +91 -0
- package/dist/shared/chunk-6220dy5n.js +70 -0
- package/dist/shared/chunk-64bnh22t.d.ts +59 -0
- package/dist/shared/chunk-66sh633m.d.ts +60 -0
- package/dist/shared/chunk-6cmf27g3.d.ts +81 -0
- package/dist/shared/chunk-6kwk9vag.js +558 -0
- package/dist/shared/chunk-6rdwkymk.js +177 -0
- package/dist/shared/chunk-71j8qzvb.d.ts +57 -0
- package/dist/shared/chunk-74bvf3tw.d.ts +21 -0
- package/dist/shared/chunk-75zwypyr.d.ts +43 -0
- package/dist/shared/chunk-7mfer3tp.js +176 -0
- package/dist/shared/chunk-7rzjmcnh.d.ts +30 -0
- package/dist/shared/chunk-7zvb39cf.d.ts +26 -0
- package/dist/shared/chunk-8mecznyr.js +357 -0
- package/dist/shared/chunk-8pag6vmd.js +255 -0
- package/dist/shared/chunk-94grzz9f.js +187 -0
- package/dist/shared/chunk-9kw6m047.d.ts +32 -0
- package/dist/shared/chunk-at0jje23.d.ts +110 -0
- package/dist/shared/chunk-awd573h9.js +34 -0
- package/dist/shared/chunk-b171wjge.d.ts +25 -0
- package/dist/shared/chunk-b4dz15em.d.ts +36 -0
- package/dist/shared/chunk-b5ccp5de.js +35 -0
- package/dist/shared/chunk-bh2b5d1z.js +98 -0
- package/dist/shared/chunk-c36qvrwq.d.ts +30 -0
- package/dist/shared/chunk-c8wp058j.js +153 -0
- package/dist/shared/chunk-d2t72h4x.d.ts +35 -0
- package/dist/shared/chunk-dh3qy5fj.js +49 -0
- package/dist/shared/chunk-dxzrtvt9.d.ts +283 -0
- package/dist/shared/chunk-e46apgve.d.ts +40 -0
- package/dist/shared/chunk-ejtknc0w.js +21 -0
- package/dist/shared/chunk-eqajdxn8.js +82 -0
- package/dist/shared/chunk-fapc805j.js +130 -0
- package/dist/shared/chunk-fm1qyrae.d.ts +68 -0
- package/dist/shared/chunk-fqhcz6ss.d.ts +29 -0
- package/dist/shared/chunk-g88hweqh.d.ts +70 -0
- package/dist/shared/chunk-gb5ee5dw.d.ts +88 -0
- package/dist/shared/chunk-gewnsgza.js +61 -0
- package/dist/shared/chunk-hxjgey30.d.ts +36 -0
- package/dist/shared/chunk-jkkdq1mh.d.ts +213 -0
- package/dist/shared/chunk-jpq101w3.js +91 -0
- package/dist/shared/chunk-k3bv9k1v.d.ts +56 -0
- package/dist/shared/chunk-kreypnzp.d.ts +34 -0
- package/dist/shared/chunk-mnzw0bav.js +80 -0
- package/dist/shared/chunk-mrb3fp2f.d.ts +30 -0
- package/dist/shared/chunk-n1qq2wp9.js +6 -0
- package/dist/shared/chunk-n31qwnj2.js +1544 -0
- package/dist/shared/chunk-n4742y54.js +39 -0
- package/dist/shared/chunk-ndjvdkv7.d.ts +29 -0
- package/dist/shared/chunk-njf851p1.js +245 -0
- package/dist/shared/chunk-nk4578dr.js +73 -0
- package/dist/shared/chunk-nkbgg7bw.d.ts +24 -0
- package/dist/shared/chunk-nvh33x9x.js +488 -0
- package/dist/shared/chunk-paezqfg1.js +106 -0
- package/dist/shared/chunk-qemm9e3r.d.ts +21 -0
- package/dist/shared/chunk-qhxz1etk.js +96 -0
- package/dist/shared/chunk-qj5ev9ak.js +531 -0
- package/dist/shared/chunk-qnwggvjy.js +150 -0
- package/dist/shared/chunk-qt31n444.js +178 -0
- package/dist/shared/chunk-r5hz78pb.js +129 -0
- package/dist/shared/chunk-r6nb21kz.d.ts +102 -0
- package/dist/shared/chunk-rqrpvvz4.d.ts +107 -0
- package/dist/shared/chunk-s3r759ec.js +80 -0
- package/dist/shared/chunk-sdtjrw9w.d.ts +98 -0
- package/dist/shared/chunk-skg3m9m0.js +56 -0
- package/dist/shared/chunk-t21t9x7e.js +188 -0
- package/dist/shared/chunk-tc75ng2c.js +235 -0
- package/dist/shared/chunk-tkx1krwc.js +88 -0
- package/dist/shared/chunk-tprdqtb1.d.ts +30 -0
- package/dist/shared/chunk-tv9a1sek.js +137 -0
- package/dist/shared/chunk-tvbd27hg.d.ts +43 -0
- package/dist/shared/chunk-ty2ccknv.d.ts +54 -0
- package/dist/shared/chunk-v6yevw62.d.ts +28 -0
- package/dist/shared/chunk-v9q38p0x.js +258 -0
- package/dist/shared/chunk-vgh4f3sv.js +118 -0
- package/dist/shared/chunk-vjht1zn1.js +391 -0
- package/dist/shared/chunk-vsrkb0sp.d.ts +21 -0
- package/dist/shared/chunk-whsx7yp9.d.ts +37 -0
- package/dist/shared/chunk-wq9h37gy.js +86 -0
- package/dist/shared/chunk-x7az5x1y.d.ts +57 -0
- package/dist/shared/chunk-x9jf26yb.js +318 -0
- package/dist/shared/chunk-xbrrt07s.d.ts +23 -0
- package/dist/shared/chunk-xkchhs2z.js +129 -0
- package/dist/shared/chunk-xzfrskd7.js +202 -0
- package/dist/shared/chunk-y4cj4y54.js +423 -0
- package/dist/shared/chunk-y934at6m.js +7 -0
- package/dist/shared/chunk-zbpwhpjy.d.ts +75 -0
- package/dist/shared/chunk-zfhmbb7n.js +63 -0
- package/dist/shared/chunk-zk0t4vq5.js +71 -0
- package/dist/shared/chunk-znp9gna7.d.ts +23 -0
- package/dist/styles.css +467 -0
- package/index.ts +49 -0
- package/lib/config-parts.tsx +97 -0
- package/lib/icons.tsx +149 -0
- package/lib/pace-bar.tsx +24 -0
- package/lib/pace.ts +78 -0
- package/lib/pane-parts.tsx +76 -0
- package/lib/row-trigger.tsx +44 -0
- package/lib/settings-parts.tsx +232 -0
- package/lib/side-pane-types.ts +75 -0
- package/lib/status-glyph.tsx +25 -0
- package/lib/types.ts +204 -0
- package/mock/demo-reply.tsx +33 -0
- package/mock/demo-session.tsx +150 -0
- package/mock/mock-config.ts +173 -0
- package/mock/mock-extras.ts +288 -0
- package/mock/mock-panes.ts +190 -0
- package/mock/mock-settings.ts +92 -0
- package/mock/mock.ts +548 -0
- package/mock/screen-frame.tsx +49 -0
- package/package.json +114 -4
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Local addition: the AI app's profile switcher. A profile is one
|
|
3
|
+
* Claude config dir (its own `claude` process, sign-in and limits) or an
|
|
4
|
+
* Anthropic-compatible provider behind a base URL. The panel is a Popover
|
|
5
|
+
* that grows out of the trigger; the profiles are a ChoiceList (fluid hover, a
|
|
6
|
+
* melting selected background) with each profile's limits as Meters.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
'use client'
|
|
10
|
+
|
|
11
|
+
import Button from '@justanarthur/modo-ui/components/actions/button'
|
|
12
|
+
import Avatar from '@justanarthur/modo-ui/components/data-display/avatar'
|
|
13
|
+
import List, { LIST_POPOVER } from '@justanarthur/modo-ui/components/data-display/list'
|
|
14
|
+
import Meter from '@justanarthur/modo-ui/components/feedback/meter'
|
|
15
|
+
import ChoiceList from '@justanarthur/modo-ui/components/inputs/choice-list'
|
|
16
|
+
import Sidebar from '@justanarthur/modo-ui/components/navigation/sidebar'
|
|
17
|
+
import Popover from '@justanarthur/modo-ui/components/overlays/popover'
|
|
18
|
+
import { useControllableState } from '@justanarthur/modo-ui/lib/use-controllable-state'
|
|
19
|
+
import { cn } from '@justanarthur/modo-ui/lib/utils'
|
|
20
|
+
import { SizeProvider } from '@justanarthur/modo-ui/primitives/systems/sizes'
|
|
21
|
+
import { useIcon } from '../../../lib/icons'
|
|
22
|
+
import { NO_USAGE, percent } from '../../../lib/pace'
|
|
23
|
+
import { RowTrigger } from '../../../lib/row-trigger'
|
|
24
|
+
import type { Profile } from '../../../lib/types'
|
|
25
|
+
|
|
26
|
+
type ProfileTileSize = 'sm' | 'md'
|
|
27
|
+
|
|
28
|
+
// Literal tables: UnoCSS only generates the classes it can read whole.
|
|
29
|
+
const TILE_SIZE: Record<ProfileTileSize, string> = { sm: 'size-4', md: 'size-5' }
|
|
30
|
+
const TILE_TONE: Record<Profile['provider'], string> = {
|
|
31
|
+
anthropic: 'bg-foreground text-background',
|
|
32
|
+
compatible: 'bg-accent text-foreground',
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface ProfileTileProps {
|
|
36
|
+
/** The profile it stands for: an Anthropic profile is an ink tile, a compatible provider an accent one. */
|
|
37
|
+
profile: Profile
|
|
38
|
+
/** 16px (`sm`) or 20px (`md`). Defaults to `'md'`. */
|
|
39
|
+
size?: ProfileTileSize
|
|
40
|
+
/** Classes for the tile. */
|
|
41
|
+
className?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** A profile's letter tile: a square Avatar off the ladder, small enough for a row. */
|
|
45
|
+
export function ProfileTile({ profile, size = 'md', className }: ProfileTileProps) {
|
|
46
|
+
return (
|
|
47
|
+
<Avatar shape="square" role="img" aria-label={profile.name} className={cn('shrink-0', TILE_SIZE[size], className)}>
|
|
48
|
+
<Avatar.Fallback className={cn('text-micro-compact weight-semibold', TILE_TONE[profile.provider])}>
|
|
49
|
+
<span aria-hidden="true">{profile.name.slice(0, 1).toUpperCase()}</span>
|
|
50
|
+
</Avatar.Fallback>
|
|
51
|
+
</Avatar>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function ProfileRow({ profile }: { profile: Profile }) {
|
|
56
|
+
const top = profile.limits.length > 0 ? Math.max(...profile.limits.map(l => l.value)) : undefined
|
|
57
|
+
return (
|
|
58
|
+
<span className="flex min-w-0 flex-1 items-center gap-2">
|
|
59
|
+
<ProfileTile profile={profile} />
|
|
60
|
+
<span className="min-w-0 flex-1 truncate text-body text-foreground">{profile.name}</span>
|
|
61
|
+
<span className="shrink-0 text-caption text-muted-foreground">{profile.plan}</span>
|
|
62
|
+
<span aria-hidden="true" className="flex w-8 shrink-0 flex-col gap-0.5">
|
|
63
|
+
{profile.limits.slice(0, 2).map(limit => (
|
|
64
|
+
<Meter key={limit.label} variant="line" label={limit.label} value={limit.value} />
|
|
65
|
+
))}
|
|
66
|
+
</span>
|
|
67
|
+
<span className="w-8 shrink-0 text-right text-caption tabular-nums text-muted-foreground">
|
|
68
|
+
{top === undefined ? (
|
|
69
|
+
<>
|
|
70
|
+
<span aria-hidden="true">–</span>
|
|
71
|
+
<span className="sr-only">{NO_USAGE}</span>
|
|
72
|
+
</>
|
|
73
|
+
) : (
|
|
74
|
+
percent(top)
|
|
75
|
+
)}
|
|
76
|
+
</span>
|
|
77
|
+
</span>
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface ProfileSwitcherProps {
|
|
82
|
+
/** The profiles to switch between. */
|
|
83
|
+
profiles: Profile[]
|
|
84
|
+
/** Controlled active profile id. Pair with `onValueChange`. */
|
|
85
|
+
value?: string
|
|
86
|
+
/** Initial active profile id, for an uncontrolled switcher. Defaults to the first profile. */
|
|
87
|
+
defaultValue?: string
|
|
88
|
+
/** Called with the new profile id when another profile is picked. */
|
|
89
|
+
onValueChange?: (value: string) => void
|
|
90
|
+
/** Start with the panel open, as the profiles screen shows it. Defaults to `false`. */
|
|
91
|
+
defaultOpen?: boolean
|
|
92
|
+
/** The trigger: a borderless Select-style trigger with the tile, the name and two thin usage lines (it lines up with Selects in a row), or a Sidebar header row (inside a Sidebar). Defaults to `'button'`. */
|
|
93
|
+
variant?: 'button' | 'sidebar'
|
|
94
|
+
/** Which side of the trigger the panel opens on. Defaults to `'bottom'`. */
|
|
95
|
+
side?: 'top' | 'right' | 'bottom' | 'left'
|
|
96
|
+
/** Classes for the trigger. */
|
|
97
|
+
className?: string
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Switches the profile a new session runs under: one row per Claude config
|
|
102
|
+
* dir, plus any Anthropic-compatible provider, each with its plan and how
|
|
103
|
+
* much of its limits is used.
|
|
104
|
+
*
|
|
105
|
+
* Every profile is its own `claude` process with its own `CLAUDE_CONFIG_DIR`
|
|
106
|
+
* (its sign-in, settings, memory and limits), so the switcher shows what
|
|
107
|
+
* the switch costs before you make it: the plan, the config dir or base
|
|
108
|
+
* URL, how many sessions run there, and the session and weekly meters,
|
|
109
|
+
* which turn amber and red as a limit runs out. A profile with no limits yet
|
|
110
|
+
* (`limits: []`, before its first turn reports usage) shows a dash for its
|
|
111
|
+
* share and "No usage yet" under Limits. The panel grows out of the
|
|
112
|
+
* trigger; the active profile's background melts to the row you pick, and
|
|
113
|
+
* the arrow keys move the pick.
|
|
114
|
+
*
|
|
115
|
+
* @example {@include ./examples.mdx}
|
|
116
|
+
*/
|
|
117
|
+
export default function ProfileSwitcher({
|
|
118
|
+
profiles,
|
|
119
|
+
value,
|
|
120
|
+
defaultValue,
|
|
121
|
+
onValueChange,
|
|
122
|
+
defaultOpen = false,
|
|
123
|
+
variant = 'button',
|
|
124
|
+
side = 'bottom',
|
|
125
|
+
className,
|
|
126
|
+
}: ProfileSwitcherProps) {
|
|
127
|
+
const [current, setCurrent] = useControllableState(value, defaultValue ?? profiles[0]?.id ?? '', onValueChange)
|
|
128
|
+
const active = profiles.find(p => p.id === current) ?? profiles[0]
|
|
129
|
+
const ChevronsUpDown = useIcon('chevrons-up-down')
|
|
130
|
+
const Plus = useIcon('plus')
|
|
131
|
+
const Settings = useIcon('settings')
|
|
132
|
+
if (!active) return null
|
|
133
|
+
|
|
134
|
+
const trigger =
|
|
135
|
+
variant === 'sidebar' ? (
|
|
136
|
+
<Sidebar.MenuButton aria-label={`Profile: ${active.name}`} className={cn('pl-8', className)}>
|
|
137
|
+
<span aria-hidden="true" className="pointer-events-none absolute left-1.5 top-1/2 -translate-y-1/2">
|
|
138
|
+
<ProfileTile profile={active} />
|
|
139
|
+
</span>
|
|
140
|
+
<span className="min-w-0 truncate text-body weight-semibold text-foreground">{active.name}</span>
|
|
141
|
+
<span className="min-w-0 truncate text-caption text-muted-foreground">{active.plan}</span>
|
|
142
|
+
<ChevronsUpDown size={14} strokeWidth={1.5} className="ml-auto shrink-0 text-muted-foreground" />
|
|
143
|
+
</Sidebar.MenuButton>
|
|
144
|
+
) : (
|
|
145
|
+
// A borderless Select trigger, so it sits in a row of Selects (project, branch) as one of them.
|
|
146
|
+
<RowTrigger aria-label={`Profile: ${active.name}`} className={className}>
|
|
147
|
+
<ProfileTile profile={active} />
|
|
148
|
+
<span className="min-w-0 truncate">{active.name}</span>
|
|
149
|
+
{/* Its two windows at a glance: the 5-hour session above the week. */}
|
|
150
|
+
<span aria-hidden="true" className="flex w-8 shrink-0 flex-col gap-0.5">
|
|
151
|
+
{active.limits.slice(0, 2).map(limit => (
|
|
152
|
+
<Meter key={limit.label} variant="line" label={limit.label} value={limit.value} />
|
|
153
|
+
))}
|
|
154
|
+
</span>
|
|
155
|
+
</RowTrigger>
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
const popover = (
|
|
159
|
+
<Popover defaultOpen={defaultOpen}>
|
|
160
|
+
<Popover.Trigger render={trigger} />
|
|
161
|
+
<Popover.Content side={side} align="start" sideOffset={8} className={LIST_POPOVER}>
|
|
162
|
+
<SizeProvider size="default">
|
|
163
|
+
<List.Section title="Profile">
|
|
164
|
+
<ChoiceList
|
|
165
|
+
label="Profiles"
|
|
166
|
+
value={active.id}
|
|
167
|
+
onValueChange={setCurrent}
|
|
168
|
+
options={profiles.map(p => ({ value: p.id, label: p.name, content: <ProfileRow profile={p} /> }))}
|
|
169
|
+
/>
|
|
170
|
+
</List.Section>
|
|
171
|
+
<List.Section
|
|
172
|
+
title={`Limits · ${active.name}`}
|
|
173
|
+
aside={active.provider === 'compatible' ? active.baseUrl : active.configDir}
|
|
174
|
+
>
|
|
175
|
+
{active.limits.length === 0 && (
|
|
176
|
+
<p className="m-0 px-[var(--space-2)] text-caption text-muted-foreground">
|
|
177
|
+
{NO_USAGE}: limits show once a session under this profile reports usage.
|
|
178
|
+
</p>
|
|
179
|
+
)}
|
|
180
|
+
{active.limits.map(limit => (
|
|
181
|
+
<List.Row key={limit.label} label={limit.label}>
|
|
182
|
+
<Meter variant="line" className="w-16" label={limit.label} value={limit.value} />
|
|
183
|
+
<span className="w-28 pr-[var(--space-3)] text-right text-caption tabular-nums text-muted-foreground">
|
|
184
|
+
{limit.detail}
|
|
185
|
+
</span>
|
|
186
|
+
</List.Row>
|
|
187
|
+
))}
|
|
188
|
+
</List.Section>
|
|
189
|
+
<div className="flex items-center gap-[var(--space-1)]">
|
|
190
|
+
<Button variant="ghost" size="compact" leadingIcon={Plus}>
|
|
191
|
+
Add profile
|
|
192
|
+
</Button>
|
|
193
|
+
<Button variant="ghost" size="compact" leadingIcon={Settings} className="ml-auto">
|
|
194
|
+
Manage
|
|
195
|
+
</Button>
|
|
196
|
+
</div>
|
|
197
|
+
</SizeProvider>
|
|
198
|
+
</Popover.Content>
|
|
199
|
+
</Popover>
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
if (variant === 'button') return popover
|
|
203
|
+
return (
|
|
204
|
+
<Sidebar.Menu aria-label="Profile">
|
|
205
|
+
<Sidebar.MenuItem>{popover}</Sidebar.MenuItem>
|
|
206
|
+
</Sidebar.Menu>
|
|
207
|
+
)
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export type { ProfileSwitcherProps, ProfileTileProps }
|
|
211
|
+
|
|
212
|
+
export { ProfileSwitcher }
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import ProfileUsage from './index'
|
|
2
|
+
import Sidebar from '@justanarthur/modo-ui/components/navigation/sidebar'
|
|
3
|
+
import { PROFILES } from '../../../mock/mock'
|
|
4
|
+
|
|
5
|
+
# Usage
|
|
6
|
+
|
|
7
|
+
Every profile by name with its session and tightest weekly limit as pace bars: `work` is red because its session runs out before the reset, while jobiflow's 78% Opus week stays grey because it resets tomorrow. Press the row for every limit and its reset.
|
|
8
|
+
|
|
9
|
+
<div className="flex h-[360px] w-full overflow-hidden rounded-xl border border-border bg-background">
|
|
10
|
+
<Sidebar.Provider className="h-full min-h-0" persist={false} mobileBreakpoint={0}>
|
|
11
|
+
<Sidebar className="h-full">
|
|
12
|
+
<Sidebar.Content>
|
|
13
|
+
<Sidebar.Group>
|
|
14
|
+
<Sidebar.GroupLabel>Usage</Sidebar.GroupLabel>
|
|
15
|
+
<ProfileUsage profiles={PROFILES} />
|
|
16
|
+
</Sidebar.Group>
|
|
17
|
+
</Sidebar.Content>
|
|
18
|
+
</Sidebar>
|
|
19
|
+
<Sidebar.Inset className="min-h-0" />
|
|
20
|
+
</Sidebar.Provider>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
# No usage yet
|
|
24
|
+
|
|
25
|
+
A profile has no limits until its first turn reports usage (`limits: []`): it reads "No usage yet" instead of a bar.
|
|
26
|
+
|
|
27
|
+
<div className="flex h-[360px] w-full overflow-hidden rounded-xl border border-border bg-background">
|
|
28
|
+
<Sidebar.Provider className="h-full min-h-0" persist={false} mobileBreakpoint={0}>
|
|
29
|
+
<Sidebar className="h-full">
|
|
30
|
+
<Sidebar.Content>
|
|
31
|
+
<Sidebar.Group>
|
|
32
|
+
<Sidebar.GroupLabel>Usage</Sidebar.GroupLabel>
|
|
33
|
+
<ProfileUsage
|
|
34
|
+
profiles={[PROFILES[0], { ...PROFILES[2], id: 'fresh', name: 'fresh', configDir: '~/.claude-fresh', limits: [] }]}
|
|
35
|
+
/>
|
|
36
|
+
</Sidebar.Group>
|
|
37
|
+
</Sidebar.Content>
|
|
38
|
+
</Sidebar>
|
|
39
|
+
<Sidebar.Inset className="min-h-0" />
|
|
40
|
+
</Sidebar.Provider>
|
|
41
|
+
</div>
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Local addition: the AI app's usage at a glance, read against time.
|
|
3
|
+
* One Sidebar row lists every profile by name with its session limit and its
|
|
4
|
+
* tightest weekly limit as pace bars (the share colored by whether it lasts
|
|
5
|
+
* until its reset, a tick where an even spend would be); a press opens one
|
|
6
|
+
* Popover with every limit, its pace and its reset.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
'use client'
|
|
10
|
+
|
|
11
|
+
import Button from '@justanarthur/modo-ui/components/actions/button'
|
|
12
|
+
import List, { LIST_POPOVER } from '@justanarthur/modo-ui/components/data-display/list'
|
|
13
|
+
import Sidebar from '@justanarthur/modo-ui/components/navigation/sidebar'
|
|
14
|
+
import Popover from '@justanarthur/modo-ui/components/overlays/popover'
|
|
15
|
+
import { cn } from '@justanarthur/modo-ui/lib/utils'
|
|
16
|
+
import { SizeProvider } from '@justanarthur/modo-ui/primitives/systems/sizes'
|
|
17
|
+
import { useIcon } from '../../../lib/icons'
|
|
18
|
+
import { duration, type LimitPace, NO_USAGE, paceOf, percent, VERDICT_TEXT } from '../../../lib/pace'
|
|
19
|
+
import { PaceBar } from '../../../lib/pace-bar'
|
|
20
|
+
import type { Profile } from '../../../lib/types'
|
|
21
|
+
|
|
22
|
+
const VERDICT_WORD = { free: 'on pace', watch: 'only just', tight: 'too fast' } as const
|
|
23
|
+
|
|
24
|
+
/** The session limit and the weekly one that lands highest. */
|
|
25
|
+
function glanceLimits(limits: LimitPace[]) {
|
|
26
|
+
const [session, ...weekly] = limits
|
|
27
|
+
const worstWeekly = [...weekly].sort((a, b) => b.projected - a.projected)[0]
|
|
28
|
+
return [session, worstWeekly].filter((pace): pace is LimitPace => pace !== undefined)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface ProfileUsageProps {
|
|
32
|
+
/** The profiles to show. */
|
|
33
|
+
profiles: Profile[]
|
|
34
|
+
/** Called by the popover's Profiles button. */
|
|
35
|
+
onManage?: () => void
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* How much each profile has left, read against the time until each limit
|
|
40
|
+
* resets, in one sidebar row.
|
|
41
|
+
*
|
|
42
|
+
* A share alone raises the wrong alarm: 78% of a weekly limit that resets
|
|
43
|
+
* tomorrow is room to spend, while 42% of a session an hour in is not. So
|
|
44
|
+
* every bar is colored by whether its limit lasts until its reset at the
|
|
45
|
+
* current pace (grey when it does, amber when only just, red when it runs
|
|
46
|
+
* out first), and carries a tick where an even spend would be by now: a
|
|
47
|
+
* fill past the tick is spending faster than the window refills. The row
|
|
48
|
+
* lists every profile by name with its session limit over its tightest
|
|
49
|
+
* weekly one; press it for every limit with its share and time to reset.
|
|
50
|
+
* A profile with no limits yet (`limits: []`, as before its first turn
|
|
51
|
+
* reports usage) reads "No usage yet" instead of a bar.
|
|
52
|
+
*
|
|
53
|
+
* Put it in a Sidebar (the session sidebar puts it in its footer).
|
|
54
|
+
*
|
|
55
|
+
* @example {@include ./examples.mdx}
|
|
56
|
+
*/
|
|
57
|
+
export default function ProfileUsage({ profiles, onManage }: ProfileUsageProps) {
|
|
58
|
+
const Settings = useIcon('settings')
|
|
59
|
+
const paces = profiles.map(paceOf)
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<Sidebar.Menu aria-label="Profile usage">
|
|
63
|
+
<Sidebar.MenuItem>
|
|
64
|
+
<Popover>
|
|
65
|
+
<Popover.Trigger
|
|
66
|
+
render={
|
|
67
|
+
<Sidebar.MenuButton
|
|
68
|
+
aria-label={`Usage pace of ${profiles.length} profiles`}
|
|
69
|
+
className="h-auto py-[var(--space-2)]"
|
|
70
|
+
>
|
|
71
|
+
<span className="grid min-w-0 flex-1 grid-cols-[minmax(0,1fr)_minmax(0,1.4fr)] items-center gap-x-[var(--space-2)] gap-y-[var(--space-2)]">
|
|
72
|
+
{paces.map(({ profile, limits, binding }) => (
|
|
73
|
+
<span key={profile.id} className="contents">
|
|
74
|
+
<span
|
|
75
|
+
className={cn(
|
|
76
|
+
'truncate text-caption',
|
|
77
|
+
binding === undefined || binding.verdict === 'free'
|
|
78
|
+
? 'text-foreground'
|
|
79
|
+
: VERDICT_TEXT[binding.verdict],
|
|
80
|
+
)}
|
|
81
|
+
>
|
|
82
|
+
{profile.name}
|
|
83
|
+
</span>
|
|
84
|
+
{binding ? (
|
|
85
|
+
<span className="flex flex-col gap-1">
|
|
86
|
+
{glanceLimits(limits).map(pace => (
|
|
87
|
+
<PaceBar key={pace.limit.label} pace={pace} />
|
|
88
|
+
))}
|
|
89
|
+
</span>
|
|
90
|
+
) : (
|
|
91
|
+
<span className="truncate text-caption text-muted-foreground">{NO_USAGE}</span>
|
|
92
|
+
)}
|
|
93
|
+
</span>
|
|
94
|
+
))}
|
|
95
|
+
</span>
|
|
96
|
+
</Sidebar.MenuButton>
|
|
97
|
+
}
|
|
98
|
+
/>
|
|
99
|
+
<Popover.Content side="right" align="end" sideOffset={12} className={LIST_POPOVER}>
|
|
100
|
+
<SizeProvider size="default">
|
|
101
|
+
<p className="m-0 px-[var(--space-2)] text-caption text-muted-foreground">
|
|
102
|
+
The tick is where an even spend would be by now; a fill past it spends faster than the window refills.
|
|
103
|
+
</p>
|
|
104
|
+
{paces.map(({ profile, limits, binding }) => (
|
|
105
|
+
<List.Section
|
|
106
|
+
key={profile.id}
|
|
107
|
+
title={`${profile.name} · ${profile.plan}`}
|
|
108
|
+
aside={
|
|
109
|
+
binding ? (
|
|
110
|
+
<span className={VERDICT_TEXT[binding.verdict]}>{VERDICT_WORD[binding.verdict]}</span>
|
|
111
|
+
) : (
|
|
112
|
+
<span className="text-muted-foreground">{NO_USAGE}</span>
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
>
|
|
116
|
+
{limits.map(pace => (
|
|
117
|
+
<List.Row key={pace.limit.label} label={pace.limit.label}>
|
|
118
|
+
<PaceBar pace={pace} className="w-16" />
|
|
119
|
+
<span className="w-24 pr-[var(--space-3)] text-right text-caption tabular-nums text-muted-foreground">
|
|
120
|
+
{percent(pace.limit.value)} · {duration(pace.limit.resetsInHours)}
|
|
121
|
+
</span>
|
|
122
|
+
</List.Row>
|
|
123
|
+
))}
|
|
124
|
+
</List.Section>
|
|
125
|
+
))}
|
|
126
|
+
<div className="flex justify-end">
|
|
127
|
+
<Button variant="ghost" size="compact" leadingIcon={Settings} onClick={onManage}>
|
|
128
|
+
Profiles
|
|
129
|
+
</Button>
|
|
130
|
+
</div>
|
|
131
|
+
</SizeProvider>
|
|
132
|
+
</Popover.Content>
|
|
133
|
+
</Popover>
|
|
134
|
+
</Sidebar.MenuItem>
|
|
135
|
+
</Sidebar.Menu>
|
|
136
|
+
)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type { ProfileUsageProps }
|
|
140
|
+
|
|
141
|
+
export { ProfileUsage }
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Inbox, { InboxList } from './index'
|
|
2
|
+
import { INBOX } from '../../../mock/mock-extras'
|
|
3
|
+
|
|
4
|
+
# Bell
|
|
5
|
+
|
|
6
|
+
The bell carries the unread count; press it and the inbox grows out of it. Allow or deny a permission in place; a press anywhere else on a row opens its session.
|
|
7
|
+
|
|
8
|
+
<div className="flex h-[600px] w-full items-start justify-end pr-6 pt-6">
|
|
9
|
+
<Inbox items={INBOX} />
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
# The list
|
|
13
|
+
|
|
14
|
+
`InboxList` on its own, for a pane or a page.
|
|
15
|
+
|
|
16
|
+
<div className="flex h-[560px] w-96 max-w-full flex-col">
|
|
17
|
+
<InboxList items={INBOX} />
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
# Nothing waiting
|
|
21
|
+
|
|
22
|
+
<div className="w-96 max-w-full">
|
|
23
|
+
<InboxList items={[]} />
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
# Light and dark
|
|
27
|
+
|
|
28
|
+
<div className="grid w-full gap-3 @3xl:grid-cols-2">
|
|
29
|
+
<div className="light flex h-[420px] flex-col rounded-xl border border-border bg-background p-2 text-foreground">
|
|
30
|
+
<InboxList items={INBOX.slice(0, 4)} />
|
|
31
|
+
</div>
|
|
32
|
+
<div className="dark flex h-[420px] flex-col rounded-xl border border-border bg-background p-2 text-foreground">
|
|
33
|
+
<InboxList items={INBOX.slice(0, 4)} />
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|