@agent-native/core 0.79.17 → 0.79.19
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/corpus/README.md +2 -2
- package/corpus/core/CHANGELOG.md +14 -0
- package/corpus/core/docs/content/file-uploads.md +11 -4
- package/corpus/core/docs/content/locales/ar-SA/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/locales/de-DE/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/locales/es-ES/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/locales/fr-FR/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/locales/hi-IN/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/locales/ja-JP/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/locales/ko-KR/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/locales/pt-BR/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/locales/zh-CN/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/locales/zh-TW/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/multi-app-workspace.md +3 -3
- package/corpus/core/docs/content/template-clips.md +14 -5
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/agent/engine/builder-engine.ts +8 -3
- package/corpus/core/src/cli/mcp.ts +11 -6
- package/corpus/core/src/client/AssistantChat.tsx +6 -2
- package/corpus/core/src/client/chat/markdown-renderer.tsx +1 -0
- package/corpus/core/src/client/i18n.tsx +77 -65
- package/corpus/core/src/client/index.ts +7 -1
- package/corpus/core/src/client/org/OrgSwitcher.tsx +5 -5
- package/corpus/core/src/client/org/TeamPage.tsx +11 -3
- package/corpus/core/src/client/settings/SettingsTabsPage.tsx +216 -0
- package/corpus/core/src/client/settings/index.ts +5 -0
- package/corpus/core/src/file-upload/index.ts +1 -0
- package/corpus/core/src/file-upload/registry.ts +22 -6
- package/corpus/core/src/file-upload/types.ts +6 -1
- package/corpus/core/src/integrations/adapters/email.ts +26 -18
- package/corpus/core/src/integrations/adapters/slack.ts +8 -7
- package/corpus/core/src/integrations/adapters/telegram.ts +9 -11
- package/corpus/core/src/integrations/adapters/whatsapp.ts +12 -9
- package/corpus/core/src/integrations/plugin.ts +79 -13
- package/corpus/core/src/onboarding/default-steps.ts +6 -3
- package/corpus/core/src/onboarding/types.ts +1 -1
- package/corpus/core/src/org/handlers.ts +1 -1
- package/corpus/core/src/server/agent-chat-plugin.ts +4 -7
- package/corpus/core/src/server/better-auth-instance.ts +19 -62
- package/corpus/core/src/server/core-routes-plugin.ts +93 -180
- package/corpus/core/src/server/create-server.ts +55 -116
- package/corpus/core/src/server/email-actions.ts +3 -6
- package/corpus/core/src/server/email.ts +52 -17
- package/corpus/core/src/server/index.ts +2 -1
- package/corpus/core/src/server/scoped-key-storage.ts +223 -0
- package/corpus/core/src/shared/agent-env.ts +3 -3
- package/corpus/core/src/sharing/actions/share-resource.ts +1 -1
- package/corpus/core/src/styles/agent-native.css +47 -3
- package/corpus/core/src/templates/workspace-root/AGENTS.md +3 -2
- package/corpus/core/src/templates/workspace-root/README.md +1 -1
- package/corpus/core/src/templates/workspace-root/scripts/repair-workspace-org.ts +29 -90
- package/corpus/core/src/terminal/pty-server.ts +3 -38
- package/corpus/core/src/triggers/dispatcher.ts +1 -2
- package/corpus/templates/.retired/issues/package.json +7 -0
- package/corpus/templates/.retired/meeting-notes/package.json +7 -0
- package/corpus/templates/.retired/recruiting/package.json +7 -0
- package/corpus/templates/.retired/scheduling/package.json +7 -0
- package/corpus/templates/.retired/voice/package.json +7 -0
- package/corpus/templates/analytics/app/components/layout/Header.tsx +0 -1
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +1 -18
- package/corpus/templates/analytics/app/global.css +15 -0
- package/corpus/templates/analytics/app/i18n/zh-TW.ts +7 -1
- package/corpus/templates/analytics/app/i18n-data.ts +71 -2
- package/corpus/templates/analytics/app/pages/Ask.tsx +1 -1
- package/corpus/templates/analytics/app/pages/Settings.tsx +120 -73
- package/corpus/templates/analytics/app/pages/sessions/SessionsPage.tsx +0 -11
- package/corpus/templates/analytics/app/routes/catalog.tsx +33 -176
- package/corpus/templates/analytics/app/routes/team.tsx +3 -2
- package/corpus/templates/analytics/changelog/2026-06-26-dashboard-templates-are-tucked-into-settings-and-show-simple.md +6 -0
- package/corpus/templates/analytics/changelog/2026-06-26-the-ask-tab-uses-a-softer-dark-gray-canvas-while-sidebar-cha.md +6 -0
- package/corpus/templates/analytics/changelog/2026-06-26-the-sessions-page-shows-a-single-page-title-instead-of-repea.md +6 -0
- package/corpus/templates/analytics/server/lib/dashboard-catalog.ts +37 -28
- package/corpus/templates/assets/app/routes/settings.tsx +65 -43
- package/corpus/templates/assets/app/routes/team.tsx +2 -10
- package/corpus/templates/brain/app/routes/settings.tsx +390 -358
- package/corpus/templates/brain/app/routes/team.tsx +2 -8
- package/corpus/templates/calendar/actions/db-connect.ts +5 -29
- package/corpus/templates/calendar/app/components/CloudUpgrade.tsx +8 -51
- package/corpus/templates/calendar/app/components/calendar/GoogleConnectBanner.tsx +2 -1
- package/corpus/templates/calendar/app/components/calendar/GoogleSetupWizard.tsx +4 -2
- package/corpus/templates/calendar/app/components/layout/Sidebar.tsx +0 -2
- package/corpus/templates/calendar/app/pages/Settings.tsx +304 -271
- package/corpus/templates/calendar/app/routes/_app.team.tsx +2 -17
- package/corpus/templates/calendar/server/handlers/google-auth.ts +22 -9
- package/corpus/templates/calendar/server/lib/booking-emails.ts +1 -1
- package/corpus/templates/calendar/server/lib/event-guest-notifications.ts +1 -1
- package/corpus/templates/calendar/server/lib/google-calendar.ts +48 -28
- package/corpus/templates/chat/app/components/layout/Header.tsx +0 -1
- package/corpus/templates/chat/app/hooks/use-navigation-state.ts +4 -2
- package/corpus/templates/chat/app/routes/settings.tsx +54 -54
- package/corpus/templates/chat/app/routes/team.tsx +2 -10
- package/corpus/templates/clips/.agents/skills/ai-video-tools/SKILL.md +7 -2
- package/corpus/templates/clips/.agents/skills/recording/SKILL.md +1 -1
- package/corpus/templates/clips/.agents/skills/video-sharing/SKILL.md +7 -0
- package/corpus/templates/clips/AGENTS.md +8 -0
- package/corpus/templates/clips/actions/invite-member.ts +1 -1
- package/corpus/templates/clips/actions/request-transcript.ts +1 -1
- package/corpus/templates/clips/app/components/library/library-layout.tsx +325 -333
- package/corpus/templates/clips/app/components/player/delete-recording-menu.tsx +80 -40
- package/corpus/templates/clips/app/components/player/transcript-panel.tsx +2 -0
- package/corpus/templates/clips/app/routes/_app.settings._index.tsx +629 -643
- package/corpus/templates/clips/app/routes/r.$recordingId.tsx +263 -158
- package/corpus/templates/clips/app/routes/share.$shareId.tsx +10 -2
- package/corpus/templates/clips/changelog/2026-06-26-long-desktop-recordings-are-checkpointed-so-macos-finalizati.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-26-non-mac-desktop-recordings-wait-for-upload-transcription.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-26-recording-details-button-stays-at-the-far-right-on-small-screen.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-26-s3-compatible-storage-keys-now-save-securely-from-clips-sett.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-26-shared-clip-links-guide-agents-through-processing-transcripts.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-26-the-agent-sidebar-now-slides-in-smoothly-without-duplicate-e.md +6 -0
- package/corpus/templates/clips/changelog/2026-06-26-the-clip-details-sidebar-now-collapses-into-a-slide-out-pane.md +6 -0
- package/corpus/templates/clips/desktop/src/lib/recorder.ts +55 -3
- package/corpus/templates/clips/desktop/src/lib/transcription-capture.ts +217 -5
- package/corpus/templates/clips/desktop/src-tauri/src/lib.rs +1 -0
- package/corpus/templates/clips/desktop/src-tauri/src/native_screen.rs +176 -5
- package/corpus/templates/clips/server/lib/public-agent-context.ts +31 -0
- package/corpus/templates/clips/server/lib/s3-upload-provider.ts +60 -14
- package/corpus/templates/clips/server/lib/video-storage.ts +37 -9
- package/corpus/templates/clips/server/routes/api/agent-transcript.json.get.ts +5 -0
- package/corpus/templates/content/app/components/layout/Header.tsx +0 -1
- package/corpus/templates/content/app/components/sidebar/NotionButton.tsx +1 -0
- package/corpus/templates/content/app/routes/_app.settings.tsx +54 -55
- package/corpus/templates/content/app/routes/_app.team.tsx +2 -28
- package/corpus/templates/content/server/lib/notion.ts +43 -11
- package/corpus/templates/content/server/routes/api/notion/auth-url.get.ts +2 -2
- package/corpus/templates/content/server/routes/api/notion/status.get.ts +3 -3
- package/corpus/templates/design/app/routes/settings.tsx +60 -38
- package/corpus/templates/design/app/routes/team.tsx +2 -10
- package/corpus/templates/dispatch/app/hooks/use-navigation-state.ts +2 -2
- package/corpus/templates/dispatch/app/routes/settings.tsx +70 -55
- package/corpus/templates/dispatch/app/routes/team.tsx +5 -1
- package/corpus/templates/forms/actions/db-connect.ts +7 -36
- package/corpus/templates/forms/actions/navigate.ts +2 -2
- package/corpus/templates/forms/app/components/CloudUpgrade.tsx +8 -47
- package/corpus/templates/forms/app/components/layout/Header.tsx +0 -1
- package/corpus/templates/forms/app/components/layout/Layout.tsx +42 -25
- package/corpus/templates/forms/app/components/layout/Sidebar.tsx +35 -76
- package/corpus/templates/forms/app/global.css +9 -25
- package/corpus/templates/forms/app/hooks/use-navigation-state.ts +4 -4
- package/corpus/templates/forms/app/i18n/ar-SA.ts +1 -0
- package/corpus/templates/forms/app/i18n/de-DE.ts +1 -0
- package/corpus/templates/forms/app/i18n/en-US.ts +1 -0
- package/corpus/templates/forms/app/i18n/es-ES.ts +1 -0
- package/corpus/templates/forms/app/i18n/fr-FR.ts +1 -0
- package/corpus/templates/forms/app/i18n/hi-IN.ts +1 -0
- package/corpus/templates/forms/app/i18n/ja-JP.ts +1 -0
- package/corpus/templates/forms/app/i18n/ko-KR.ts +1 -0
- package/corpus/templates/forms/app/i18n/pt-BR.ts +1 -0
- package/corpus/templates/forms/app/i18n/zh-CN.ts +1 -0
- package/corpus/templates/forms/app/i18n/zh-TW.ts +1 -0
- package/corpus/templates/forms/app/lib/route-prewarm.ts +9 -8
- package/corpus/templates/forms/app/pages/AskPage.tsx +70 -0
- package/corpus/templates/forms/app/pages/FormsListPage.tsx +74 -81
- package/corpus/templates/forms/app/root.tsx +1 -1
- package/corpus/templates/forms/app/routes/_app.ask.tsx +14 -0
- package/corpus/templates/forms/app/routes/_app.settings.tsx +54 -54
- package/corpus/templates/forms/app/routes/_app.team.tsx +2 -9
- package/corpus/templates/forms/app/routes/_index.tsx +21 -130
- package/corpus/templates/forms/changelog/2026-06-26-ask-forms-opens-as-a-standard-app-tab-with-a-simpler-sidebar.md +6 -0
- package/corpus/templates/forms/changelog/2026-06-26-forms-are-shown-in-a-tighter-row-list-with-a-denser-sidebar.md +6 -0
- package/corpus/templates/forms/shared/navigation.ts +4 -2
- package/corpus/templates/macros/app/routes/settings.tsx +54 -54
- package/corpus/templates/macros/app/routes/team.tsx +2 -10
- package/corpus/templates/mail/actions/helpers.ts +2 -2
- package/corpus/templates/mail/app/components/GoogleConnectBanner.tsx +2 -1
- package/corpus/templates/mail/app/pages/SettingsPage.tsx +5 -5
- package/corpus/templates/mail/app/routes/team.tsx +3 -2
- package/corpus/templates/mail/server/handlers/emails.ts +3 -2
- package/corpus/templates/mail/server/handlers/google-auth.ts +19 -12
- package/corpus/templates/mail/server/lib/automation-engine.ts +3 -2
- package/corpus/templates/mail/server/lib/email-state.ts +2 -3
- package/corpus/templates/mail/server/lib/google-auth.ts +28 -11
- package/corpus/templates/mail/server/lib/jobs.ts +3 -2
- package/corpus/templates/mail/server/onboarding.ts +9 -6
- package/corpus/templates/mail/server/routes/api/attachments.get.ts +3 -3
- package/corpus/templates/plan/actions/request-plan-access.ts +1 -1
- package/corpus/templates/plan/app/components/layout/Header.tsx +0 -1
- package/corpus/templates/plan/app/components/plan/CanvasArea.tsx +56 -4
- package/corpus/templates/plan/app/global.css +8 -3
- package/corpus/templates/plan/app/hooks/use-navigation-state.ts +4 -2
- package/corpus/templates/plan/app/lib/route-prewarm.ts +0 -4
- package/corpus/templates/plan/app/pages/PlansPage.tsx +1 -1
- package/corpus/templates/plan/app/routes/settings.tsx +75 -73
- package/corpus/templates/plan/app/routes/team.tsx +2 -8
- package/corpus/templates/plan/changelog/2026-06-26-canvas-grid-panning-now-stays-smooth-and-fills-the-workspace.md +6 -0
- package/corpus/templates/plan/server/lib/comment-notifications.ts +1 -1
- package/corpus/templates/slides/actions/check-image-gen.ts +2 -1
- package/corpus/templates/slides/actions/db-connect.ts +7 -45
- package/corpus/templates/slides/actions/edit-image.ts +6 -3
- package/corpus/templates/slides/actions/generate-image-api.ts +1 -1
- package/corpus/templates/slides/actions/generate-image.ts +2 -2
- package/corpus/templates/slides/actions/generate-slides-ai.ts +5 -3
- package/corpus/templates/slides/actions/image-gen-status.ts +4 -3
- package/corpus/templates/slides/actions/image-search.ts +6 -3
- package/corpus/templates/slides/actions/search-images.ts +6 -3
- package/corpus/templates/slides/app/components/CloudUpgrade.tsx +8 -51
- package/corpus/templates/slides/app/components/layout/Header.tsx +0 -1
- package/corpus/templates/slides/app/components/layout/Sidebar.tsx +0 -2
- package/corpus/templates/slides/app/routes/settings.tsx +54 -54
- package/corpus/templates/slides/app/routes/team.tsx +2 -12
- package/corpus/templates/slides/server/handlers/google-docs-auth.ts +9 -9
- package/corpus/templates/slides/server/handlers/image-gen.ts +5 -1
- package/corpus/templates/slides/server/handlers/image-providers/gemini.ts +9 -1
- package/corpus/templates/slides/server/handlers/image-providers/index.ts +18 -8
- package/corpus/templates/slides/server/handlers/image-providers/openai.ts +10 -4
- package/corpus/templates/slides/server/handlers/image-providers/types.ts +1 -0
- package/corpus/templates/slides/server/lib/google-docs-oauth.ts +59 -34
- package/corpus/templates/slides/server/register-secrets.ts +60 -0
- package/corpus/templates/videos/actions/db-connect.ts +7 -45
- package/corpus/templates/videos/app/components/CloudUpgrade.tsx +8 -51
- package/corpus/templates/videos/app/components/Sidebar.tsx +1 -9
- package/corpus/templates/videos/app/components/layout/Header.tsx +0 -1
- package/corpus/templates/videos/app/components/layout/NavSidebar.tsx +0 -3
- package/corpus/templates/videos/app/routes/settings.tsx +54 -54
- package/corpus/templates/videos/app/routes/team.tsx +2 -8
- package/dist/agent/engine/builder-engine.d.ts.map +1 -1
- package/dist/agent/engine/builder-engine.js +8 -3
- package/dist/agent/engine/builder-engine.js.map +1 -1
- package/dist/cli/mcp.d.ts.map +1 -1
- package/dist/cli/mcp.js +3 -4
- package/dist/cli/mcp.js.map +1 -1
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +6 -2
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/chat/markdown-renderer.d.ts.map +1 -1
- package/dist/client/chat/markdown-renderer.js +1 -0
- package/dist/client/chat/markdown-renderer.js.map +1 -1
- package/dist/client/i18n.d.ts.map +1 -1
- package/dist/client/i18n.js +20 -9
- package/dist/client/i18n.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/org/OrgSwitcher.d.ts +3 -3
- package/dist/client/org/OrgSwitcher.js +2 -2
- package/dist/client/org/OrgSwitcher.js.map +1 -1
- package/dist/client/org/TeamPage.d.ts +6 -1
- package/dist/client/org/TeamPage.d.ts.map +1 -1
- package/dist/client/org/TeamPage.js +2 -2
- package/dist/client/org/TeamPage.js.map +1 -1
- package/dist/client/settings/SettingsTabsPage.d.ts +27 -0
- package/dist/client/settings/SettingsTabsPage.d.ts.map +1 -0
- package/dist/client/settings/SettingsTabsPage.js +108 -0
- package/dist/client/settings/SettingsTabsPage.js.map +1 -0
- package/dist/client/settings/index.d.ts +1 -0
- package/dist/client/settings/index.d.ts.map +1 -1
- package/dist/client/settings/index.js +1 -0
- package/dist/client/settings/index.js.map +1 -1
- package/dist/file-upload/index.d.ts +1 -1
- package/dist/file-upload/index.d.ts.map +1 -1
- package/dist/file-upload/index.js +1 -1
- package/dist/file-upload/index.js.map +1 -1
- package/dist/file-upload/registry.d.ts +1 -0
- package/dist/file-upload/registry.d.ts.map +1 -1
- package/dist/file-upload/registry.js +24 -6
- package/dist/file-upload/registry.js.map +1 -1
- package/dist/file-upload/types.d.ts +6 -1
- package/dist/file-upload/types.d.ts.map +1 -1
- package/dist/file-upload/types.js.map +1 -1
- package/dist/integrations/adapters/email.d.ts.map +1 -1
- package/dist/integrations/adapters/email.js +18 -18
- package/dist/integrations/adapters/email.js.map +1 -1
- package/dist/integrations/adapters/slack.d.ts.map +1 -1
- package/dist/integrations/adapters/slack.js +8 -7
- package/dist/integrations/adapters/slack.js.map +1 -1
- package/dist/integrations/adapters/telegram.d.ts.map +1 -1
- package/dist/integrations/adapters/telegram.js +9 -9
- package/dist/integrations/adapters/telegram.js.map +1 -1
- package/dist/integrations/adapters/whatsapp.d.ts.map +1 -1
- package/dist/integrations/adapters/whatsapp.js +10 -9
- package/dist/integrations/adapters/whatsapp.js.map +1 -1
- package/dist/integrations/plugin.d.ts.map +1 -1
- package/dist/integrations/plugin.js +47 -13
- package/dist/integrations/plugin.js.map +1 -1
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/observability/routes.d.ts +6 -6
- package/dist/onboarding/default-steps.d.ts.map +1 -1
- package/dist/onboarding/default-steps.js +6 -5
- package/dist/onboarding/default-steps.js.map +1 -1
- package/dist/onboarding/types.d.ts +1 -1
- package/dist/onboarding/types.d.ts.map +1 -1
- package/dist/onboarding/types.js.map +1 -1
- package/dist/org/handlers.js +1 -1
- package/dist/org/handlers.js.map +1 -1
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +4 -6
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/agent-engine-api-key-route.d.ts +2 -2
- package/dist/server/better-auth-instance.d.ts.map +1 -1
- package/dist/server/better-auth-instance.js +17 -56
- package/dist/server/better-auth-instance.js.map +1 -1
- package/dist/server/core-routes-plugin.d.ts +1 -1
- package/dist/server/core-routes-plugin.d.ts.map +1 -1
- package/dist/server/core-routes-plugin.js +67 -153
- package/dist/server/core-routes-plugin.js.map +1 -1
- package/dist/server/create-server.d.ts +3 -9
- package/dist/server/create-server.d.ts.map +1 -1
- package/dist/server/create-server.js +37 -91
- package/dist/server/create-server.js.map +1 -1
- package/dist/server/email-actions.d.ts +2 -3
- package/dist/server/email-actions.d.ts.map +1 -1
- package/dist/server/email-actions.js +3 -6
- package/dist/server/email-actions.js.map +1 -1
- package/dist/server/email.d.ts +3 -3
- package/dist/server/email.d.ts.map +1 -1
- package/dist/server/email.js +40 -19
- package/dist/server/email.js.map +1 -1
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.js.map +1 -1
- package/dist/server/scoped-key-storage.d.ts +22 -0
- package/dist/server/scoped-key-storage.d.ts.map +1 -0
- package/dist/server/scoped-key-storage.js +152 -0
- package/dist/server/scoped-key-storage.js.map +1 -0
- package/dist/shared/agent-env.d.ts +3 -3
- package/dist/shared/agent-env.d.ts.map +1 -1
- package/dist/shared/agent-env.js +3 -3
- package/dist/shared/agent-env.js.map +1 -1
- package/dist/sharing/actions/share-resource.js +1 -1
- package/dist/sharing/actions/share-resource.js.map +1 -1
- package/dist/styles/agent-native.css +47 -3
- package/dist/templates/workspace-root/AGENTS.md +3 -2
- package/dist/templates/workspace-root/README.md +1 -1
- package/dist/templates/workspace-root/scripts/repair-workspace-org.ts +29 -90
- package/dist/terminal/pty-server.d.ts.map +1 -1
- package/dist/terminal/pty-server.js +3 -36
- package/dist/terminal/pty-server.js.map +1 -1
- package/dist/triggers/dispatcher.js +1 -1
- package/dist/triggers/dispatcher.js.map +1 -1
- package/docs/content/file-uploads.md +11 -4
- package/docs/content/locales/ar-SA/multi-app-workspace.md +3 -3
- package/docs/content/locales/de-DE/multi-app-workspace.md +3 -3
- package/docs/content/locales/es-ES/multi-app-workspace.md +3 -3
- package/docs/content/locales/fr-FR/multi-app-workspace.md +3 -3
- package/docs/content/locales/hi-IN/multi-app-workspace.md +3 -3
- package/docs/content/locales/ja-JP/multi-app-workspace.md +3 -3
- package/docs/content/locales/ko-KR/multi-app-workspace.md +3 -3
- package/docs/content/locales/pt-BR/multi-app-workspace.md +3 -3
- package/docs/content/locales/zh-CN/multi-app-workspace.md +3 -3
- package/docs/content/locales/zh-TW/multi-app-workspace.md +3 -3
- package/docs/content/multi-app-workspace.md +3 -3
- package/docs/content/template-clips.md +14 -5
- package/package.json +1 -1
- package/src/templates/workspace-root/AGENTS.md +3 -2
- package/src/templates/workspace-root/README.md +1 -1
- package/src/templates/workspace-root/scripts/repair-workspace-org.ts +29 -90
- package/corpus/core/src/server/env-var-writes.ts +0 -16
- package/corpus/templates/analytics/app/pages/Team.tsx +0 -9
- package/corpus/templates/calendar/app/pages/Team.tsx +0 -12
- package/corpus/templates/mail/app/pages/Team.tsx +0 -17
- package/dist/server/env-var-writes.d.ts +0 -10
- package/dist/server/env-var-writes.d.ts.map +0 -1
- package/dist/server/env-var-writes.js +0 -18
- package/dist/server/env-var-writes.js.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChangelogSettingsCard,
|
|
3
3
|
LanguagePicker,
|
|
4
|
+
SettingsTabsPage,
|
|
4
5
|
openAgentSettings,
|
|
5
6
|
useT,
|
|
6
7
|
} from "@agent-native/core/client";
|
|
7
|
-
import {
|
|
8
|
+
import { TeamPage } from "@agent-native/core/client/org";
|
|
8
9
|
|
|
9
10
|
import { useSetPageTitle } from "@/components/layout/HeaderActions";
|
|
10
11
|
import { Button } from "@/components/ui/button";
|
|
@@ -29,60 +30,59 @@ export default function SettingsRoute() {
|
|
|
29
30
|
useSetPageTitle(t("settings.title"));
|
|
30
31
|
|
|
31
32
|
return (
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</p>
|
|
40
|
-
</div>
|
|
33
|
+
<SettingsTabsPage
|
|
34
|
+
teamLabel={t("navigation.team")}
|
|
35
|
+
general={
|
|
36
|
+
<div className="mx-auto w-full max-w-3xl space-y-6">
|
|
37
|
+
<p className="text-sm leading-6 text-muted-foreground">
|
|
38
|
+
{t("settings.description")}
|
|
39
|
+
</p>
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
<Card>
|
|
42
|
+
<CardHeader>
|
|
43
|
+
<CardTitle className="text-base">
|
|
44
|
+
{t("settings.languageTitle")}
|
|
45
|
+
</CardTitle>
|
|
46
|
+
<CardDescription>
|
|
47
|
+
{t("settings.languageDescription")}
|
|
48
|
+
</CardDescription>
|
|
49
|
+
</CardHeader>
|
|
50
|
+
<CardContent className="max-w-xs space-y-1.5">
|
|
51
|
+
<Label>{t("settings.languageLabel")}</Label>
|
|
52
|
+
<LanguagePicker label={t("settings.languageLabel")} />
|
|
53
|
+
</CardContent>
|
|
54
|
+
</Card>
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
</main>
|
|
56
|
+
<Card>
|
|
57
|
+
<CardHeader>
|
|
58
|
+
<CardTitle className="text-base">
|
|
59
|
+
{t("settings.agentTitle")}
|
|
60
|
+
</CardTitle>
|
|
61
|
+
<CardDescription>
|
|
62
|
+
{t("settings.agentDescription")}
|
|
63
|
+
</CardDescription>
|
|
64
|
+
</CardHeader>
|
|
65
|
+
<CardContent>
|
|
66
|
+
<Button variant="outline" onClick={() => openAgentSettings()}>
|
|
67
|
+
{t("settings.openAgentSettings")}
|
|
68
|
+
</Button>
|
|
69
|
+
</CardContent>
|
|
70
|
+
</Card>
|
|
71
|
+
</div>
|
|
72
|
+
}
|
|
73
|
+
team={
|
|
74
|
+
<div className="mx-auto w-full max-w-3xl">
|
|
75
|
+
<TeamPage
|
|
76
|
+
showTitle={false}
|
|
77
|
+
createOrgDescription="Set up a team to share forms and view responses together."
|
|
78
|
+
/>
|
|
79
|
+
</div>
|
|
80
|
+
}
|
|
81
|
+
whatsNew={
|
|
82
|
+
<div className="mx-auto w-full max-w-3xl">
|
|
83
|
+
<ChangelogSettingsCard markdown={changelog} />
|
|
84
|
+
</div>
|
|
85
|
+
}
|
|
86
|
+
/>
|
|
87
87
|
);
|
|
88
88
|
}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { useSetPageTitle } from "@/components/layout/HeaderActions";
|
|
1
|
+
import { Navigate } from "react-router";
|
|
4
2
|
|
|
5
3
|
export function meta() {
|
|
6
4
|
return [{ title: "Team" }];
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
export default function TeamRoute() {
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div className="p-8">
|
|
13
|
-
<TeamPage createOrgDescription="Set up a team to share forms and view responses together." />
|
|
14
|
-
</div>
|
|
15
|
-
);
|
|
8
|
+
return <Navigate to="/settings#team" replace />;
|
|
16
9
|
}
|
|
@@ -1,34 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
appPath,
|
|
4
|
-
markAgentChatHomeHandoff,
|
|
5
|
-
navigateWithAgentChatViewTransition,
|
|
6
|
-
useT,
|
|
7
|
-
} from "@agent-native/core/client";
|
|
8
|
-
import {
|
|
9
|
-
IconArrowRight,
|
|
10
|
-
IconChartBar,
|
|
11
|
-
IconDatabase,
|
|
12
|
-
IconSettings,
|
|
13
|
-
} from "@tabler/icons-react";
|
|
14
|
-
import { useEffect } from "react";
|
|
15
|
-
import { useNavigate } from "react-router";
|
|
1
|
+
import { DefaultSpinner } from "@agent-native/core/client";
|
|
2
|
+
import { redirect, type LoaderFunctionArgs } from "react-router";
|
|
16
3
|
|
|
17
|
-
import { ThemeToggle } from "@/components/ThemeToggle";
|
|
18
|
-
import { Button } from "@/components/ui/button";
|
|
19
|
-
import {
|
|
20
|
-
Tooltip,
|
|
21
|
-
TooltipContent,
|
|
22
|
-
TooltipProvider,
|
|
23
|
-
TooltipTrigger,
|
|
24
|
-
} from "@/components/ui/tooltip";
|
|
25
4
|
import messages from "@/i18n/en-US";
|
|
26
|
-
import { scheduleFormsRoutePrewarm } from "@/lib/route-prewarm";
|
|
27
|
-
import { TAB_ID } from "@/lib/tab-id";
|
|
28
5
|
|
|
29
6
|
const SEO_TITLE = messages.routeTitles.formsIndex;
|
|
30
7
|
const SEO_DESCRIPTION = messages.routeDescriptions.formsIndex;
|
|
31
8
|
|
|
9
|
+
function target(url: URL): string {
|
|
10
|
+
return `/ask${url.search}${url.hash}`;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function loader({ url }: LoaderFunctionArgs) {
|
|
14
|
+
throw redirect(target(url));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function clientLoader({ url }: LoaderFunctionArgs) {
|
|
18
|
+
throw redirect(target(url));
|
|
19
|
+
}
|
|
20
|
+
|
|
32
21
|
export function meta() {
|
|
33
22
|
return [
|
|
34
23
|
{ title: SEO_TITLE },
|
|
@@ -44,112 +33,14 @@ export function meta() {
|
|
|
44
33
|
];
|
|
45
34
|
}
|
|
46
35
|
|
|
47
|
-
export
|
|
48
|
-
const navigate = useNavigate();
|
|
49
|
-
const t = useT();
|
|
50
|
-
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
function handleChatRunning(event: Event) {
|
|
53
|
-
const detail = (event as CustomEvent).detail;
|
|
54
|
-
if (detail?.isRunning === true) markAgentChatHomeHandoff("forms");
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const cancelRoutePrewarm = scheduleFormsRoutePrewarm();
|
|
58
|
-
window.addEventListener("agentNative.chatRunning", handleChatRunning);
|
|
59
|
-
return () => {
|
|
60
|
-
cancelRoutePrewarm();
|
|
61
|
-
window.removeEventListener("agentNative.chatRunning", handleChatRunning);
|
|
62
|
-
};
|
|
63
|
-
}, []);
|
|
64
|
-
|
|
65
|
-
function openForms() {
|
|
66
|
-
markAgentChatHomeHandoff("forms");
|
|
67
|
-
navigateWithAgentChatViewTransition(navigate, "/forms");
|
|
68
|
-
}
|
|
69
|
-
|
|
36
|
+
export function HydrateFallback() {
|
|
70
37
|
return (
|
|
71
|
-
<div className="
|
|
72
|
-
<
|
|
73
|
-
<TooltipProvider delayDuration={700}>
|
|
74
|
-
<Tooltip>
|
|
75
|
-
<TooltipTrigger asChild>
|
|
76
|
-
<button
|
|
77
|
-
type="button"
|
|
78
|
-
aria-label={t("home.openDashboard")}
|
|
79
|
-
className="pointer-events-auto flex items-center gap-2 rounded-md text-sm font-semibold text-foreground transition-colors hover:text-foreground/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
80
|
-
onClick={openForms}
|
|
81
|
-
>
|
|
82
|
-
<img
|
|
83
|
-
src={appPath("/agent-native-icon-light.svg")}
|
|
84
|
-
alt=""
|
|
85
|
-
aria-hidden="true"
|
|
86
|
-
className="block h-4 w-auto shrink-0 dark:hidden"
|
|
87
|
-
/>
|
|
88
|
-
<img
|
|
89
|
-
src={appPath("/agent-native-icon-dark.svg")}
|
|
90
|
-
alt=""
|
|
91
|
-
aria-hidden="true"
|
|
92
|
-
className="hidden h-4 w-auto shrink-0 dark:block"
|
|
93
|
-
/>
|
|
94
|
-
{t("navigation.brand")}
|
|
95
|
-
</button>
|
|
96
|
-
</TooltipTrigger>
|
|
97
|
-
<TooltipContent side="bottom">
|
|
98
|
-
{t("home.openDashboard")}
|
|
99
|
-
</TooltipContent>
|
|
100
|
-
</Tooltip>
|
|
101
|
-
</TooltipProvider>
|
|
102
|
-
<div className="pointer-events-auto flex items-center gap-1.5">
|
|
103
|
-
<ThemeToggle />
|
|
104
|
-
<Button
|
|
105
|
-
type="button"
|
|
106
|
-
variant="ghost"
|
|
107
|
-
size="sm"
|
|
108
|
-
className="gap-1.5"
|
|
109
|
-
onClick={openForms}
|
|
110
|
-
>
|
|
111
|
-
{t("home.dashboard")}
|
|
112
|
-
<IconArrowRight className="size-3.5" />
|
|
113
|
-
</Button>
|
|
114
|
-
</div>
|
|
115
|
-
</header>
|
|
116
|
-
<AgentChatHome
|
|
117
|
-
className="relative z-10 h-full min-h-0 overflow-hidden px-4 py-0 sm:px-6 sm:py-0"
|
|
118
|
-
contentClassName="h-full min-h-0 max-w-4xl"
|
|
119
|
-
surfaceClassName="forms-home-chat-panel border-0 bg-transparent shadow-none"
|
|
120
|
-
defaultMode="chat"
|
|
121
|
-
storageKey="forms"
|
|
122
|
-
browserTabId={TAB_ID}
|
|
123
|
-
showHeader={false}
|
|
124
|
-
showTabBar={false}
|
|
125
|
-
dynamicSuggestions={false}
|
|
126
|
-
suggestions={[]}
|
|
127
|
-
emptyStateText={t("home.emptyState")}
|
|
128
|
-
emptyStateDisplay="hidden"
|
|
129
|
-
centerComposerWhenEmpty
|
|
130
|
-
composerLayoutVariant="hero"
|
|
131
|
-
composerPlaceholder={t("home.composerPlaceholder")}
|
|
132
|
-
composerSlot={
|
|
133
|
-
<div className="forms-chat-intro">
|
|
134
|
-
<h1>{t("home.heading")}</h1>
|
|
135
|
-
<p>{t("home.description")}</p>
|
|
136
|
-
<div className="forms-chat-pill-row" aria-hidden="true">
|
|
137
|
-
<span>
|
|
138
|
-
<IconDatabase className="size-3.5" />
|
|
139
|
-
{t("home.pillForms")}
|
|
140
|
-
</span>
|
|
141
|
-
<span>
|
|
142
|
-
<IconChartBar className="size-3.5" />
|
|
143
|
-
{t("home.pillAnalytics")}
|
|
144
|
-
</span>
|
|
145
|
-
<span>
|
|
146
|
-
<IconSettings className="size-3.5" />
|
|
147
|
-
{t("home.pillConfiguration")}
|
|
148
|
-
</span>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
}
|
|
152
|
-
/>
|
|
38
|
+
<div className="flex h-screen w-full items-center justify-center bg-background">
|
|
39
|
+
<DefaultSpinner />
|
|
153
40
|
</div>
|
|
154
41
|
);
|
|
155
42
|
}
|
|
43
|
+
|
|
44
|
+
export default function IndexRoute() {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
@@ -8,6 +8,7 @@ export const FORM_BUILDER_TABS = [
|
|
|
8
8
|
export type FormBuilderTab = (typeof FORM_BUILDER_TABS)[number];
|
|
9
9
|
|
|
10
10
|
export const FORMS_NAVIGATION_VIEWS = [
|
|
11
|
+
"ask",
|
|
11
12
|
"home",
|
|
12
13
|
"forms",
|
|
13
14
|
"form",
|
|
@@ -58,8 +59,9 @@ export function formsRoutePath(target: FormsNavigationTarget): string | null {
|
|
|
58
59
|
if (!target.view && formId) return formBuilderPath(formId, tab);
|
|
59
60
|
|
|
60
61
|
switch (target.view) {
|
|
62
|
+
case "ask":
|
|
61
63
|
case "home":
|
|
62
|
-
return "/";
|
|
64
|
+
return "/ask";
|
|
63
65
|
case "forms":
|
|
64
66
|
return "/forms";
|
|
65
67
|
case "form":
|
|
@@ -71,7 +73,7 @@ export function formsRoutePath(target: FormsNavigationTarget): string | null {
|
|
|
71
73
|
? `/response-insights?formId=${encodeURIComponent(formId)}`
|
|
72
74
|
: "/response-insights";
|
|
73
75
|
case "team":
|
|
74
|
-
return "/team";
|
|
76
|
+
return "/settings#team";
|
|
75
77
|
case "extensions":
|
|
76
78
|
return "/extensions";
|
|
77
79
|
case "form-preview":
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChangelogSettingsCard,
|
|
3
3
|
LanguagePicker,
|
|
4
|
+
SettingsTabsPage,
|
|
4
5
|
openAgentSettings,
|
|
5
6
|
useT,
|
|
6
7
|
} from "@agent-native/core/client";
|
|
7
|
-
import {
|
|
8
|
+
import { TeamPage } from "@agent-native/core/client/org";
|
|
8
9
|
|
|
9
10
|
import { useSetPageTitle } from "@/components/layout/HeaderActions";
|
|
10
11
|
import { Button } from "@/components/ui/button";
|
|
@@ -29,60 +30,59 @@ export default function SettingsRoute() {
|
|
|
29
30
|
useSetPageTitle(t("settings.title"));
|
|
30
31
|
|
|
31
32
|
return (
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
</p>
|
|
40
|
-
</div>
|
|
33
|
+
<SettingsTabsPage
|
|
34
|
+
teamLabel={t("team.title")}
|
|
35
|
+
general={
|
|
36
|
+
<div className="mx-auto w-full max-w-3xl space-y-6">
|
|
37
|
+
<p className="text-sm leading-6 text-muted-foreground">
|
|
38
|
+
{t("settings.description")}
|
|
39
|
+
</p>
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
<Card>
|
|
42
|
+
<CardHeader>
|
|
43
|
+
<CardTitle className="text-base">
|
|
44
|
+
{t("settings.languageTitle")}
|
|
45
|
+
</CardTitle>
|
|
46
|
+
<CardDescription>
|
|
47
|
+
{t("settings.languageDescription")}
|
|
48
|
+
</CardDescription>
|
|
49
|
+
</CardHeader>
|
|
50
|
+
<CardContent className="max-w-xs space-y-1.5">
|
|
51
|
+
<Label>{t("settings.languageLabel")}</Label>
|
|
52
|
+
<LanguagePicker label={t("settings.languageLabel")} />
|
|
53
|
+
</CardContent>
|
|
54
|
+
</Card>
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
</main>
|
|
56
|
+
<Card>
|
|
57
|
+
<CardHeader>
|
|
58
|
+
<CardTitle className="text-base">
|
|
59
|
+
{t("settings.agentTitle")}
|
|
60
|
+
</CardTitle>
|
|
61
|
+
<CardDescription>
|
|
62
|
+
{t("settings.agentDescription")}
|
|
63
|
+
</CardDescription>
|
|
64
|
+
</CardHeader>
|
|
65
|
+
<CardContent>
|
|
66
|
+
<Button variant="outline" onClick={() => openAgentSettings()}>
|
|
67
|
+
{t("settings.openAgentSettings")}
|
|
68
|
+
</Button>
|
|
69
|
+
</CardContent>
|
|
70
|
+
</Card>
|
|
71
|
+
</div>
|
|
72
|
+
}
|
|
73
|
+
team={
|
|
74
|
+
<div className="mx-auto w-full max-w-3xl">
|
|
75
|
+
<TeamPage
|
|
76
|
+
showTitle={false}
|
|
77
|
+
createOrgDescription={t("team.createOrgDescription")}
|
|
78
|
+
/>
|
|
79
|
+
</div>
|
|
80
|
+
}
|
|
81
|
+
whatsNew={
|
|
82
|
+
<div className="mx-auto w-full max-w-3xl">
|
|
83
|
+
<ChangelogSettingsCard markdown={changelog} />
|
|
84
|
+
</div>
|
|
85
|
+
}
|
|
86
|
+
/>
|
|
87
87
|
);
|
|
88
88
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TeamPage } from "@agent-native/core/client/org";
|
|
1
|
+
import { Navigate } from "react-router";
|
|
3
2
|
|
|
4
|
-
import { useSetPageTitle } from "@/components/layout/HeaderActions";
|
|
5
3
|
import messages from "@/i18n/en-US";
|
|
6
4
|
|
|
7
5
|
export function meta() {
|
|
@@ -9,11 +7,5 @@ export function meta() {
|
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
export default function TeamRoute() {
|
|
12
|
-
|
|
13
|
-
useSetPageTitle(t("team.title"));
|
|
14
|
-
return (
|
|
15
|
-
<main className="mx-auto w-full max-w-3xl px-4 py-6 sm:px-6 sm:py-10">
|
|
16
|
-
<TeamPage createOrgDescription={t("team.createOrgDescription")} />
|
|
17
|
-
</main>
|
|
18
|
-
);
|
|
10
|
+
return <Navigate to="/settings#team" replace />;
|
|
19
11
|
}
|
|
@@ -148,6 +148,7 @@ import {
|
|
|
148
148
|
createOAuth2Client,
|
|
149
149
|
gmailListLabels,
|
|
150
150
|
} from "../server/lib/google-api.js";
|
|
151
|
+
import { getOAuth2Credentials } from "../server/lib/google-auth.js";
|
|
151
152
|
|
|
152
153
|
interface TokenRecord {
|
|
153
154
|
access_token: string;
|
|
@@ -169,8 +170,7 @@ async function resolveAccessToken(
|
|
|
169
170
|
tokens.expiry_date &&
|
|
170
171
|
tokens.expiry_date < now + 60_000
|
|
171
172
|
) {
|
|
172
|
-
const clientId =
|
|
173
|
-
const clientSecret = process.env.GOOGLE_CLIENT_SECRET!;
|
|
173
|
+
const { clientId, clientSecret } = await getOAuth2Credentials(accountId);
|
|
174
174
|
const oauth = createOAuth2Client(clientId, clientSecret, "");
|
|
175
175
|
const refreshed = await oauth.refreshToken(tokens.refresh_token);
|
|
176
176
|
const updated = {
|
|
@@ -331,6 +331,7 @@ export function GoogleConnectBanner({
|
|
|
331
331
|
method: "POST",
|
|
332
332
|
headers: { "Content-Type": "application/json" },
|
|
333
333
|
body: JSON.stringify({
|
|
334
|
+
scope: "workspace",
|
|
334
335
|
vars: [
|
|
335
336
|
{ key: "GOOGLE_CLIENT_ID", value: clientId },
|
|
336
337
|
{ key: "GOOGLE_CLIENT_SECRET", value: clientSecret },
|
|
@@ -345,7 +346,7 @@ export function GoogleConnectBanner({
|
|
|
345
346
|
|
|
346
347
|
setSaved(true);
|
|
347
348
|
await fetchStatus();
|
|
348
|
-
// Reload after
|
|
349
|
+
// Reload after the server has persisted the scoped credentials.
|
|
349
350
|
setTimeout(() => window.location.reload(), 1500);
|
|
350
351
|
} catch (err) {
|
|
351
352
|
setSaveError(
|
|
@@ -1490,6 +1490,7 @@ const navItems: {
|
|
|
1490
1490
|
icon: React.ComponentType<{ className?: string }>;
|
|
1491
1491
|
}[] = [
|
|
1492
1492
|
{ id: "general", labelKey: "settings.general", icon: IconSettings },
|
|
1493
|
+
{ id: "team", labelKey: "settings.team", icon: IconUsers },
|
|
1493
1494
|
{ id: "whats-new", labelKey: "settings.whatsNew", icon: IconHistory },
|
|
1494
1495
|
{ id: "drafting", labelKey: "settings.drafting", icon: IconSignature },
|
|
1495
1496
|
{ id: "automations", labelKey: "settings.automations", icon: IconBolt },
|
|
@@ -1497,7 +1498,6 @@ const navItems: {
|
|
|
1497
1498
|
{ id: "aliases", labelKey: "settings.aliases", icon: IconUsers },
|
|
1498
1499
|
{ id: "tracking", labelKey: "settings.tracking", icon: IconChartBar },
|
|
1499
1500
|
{ id: "slack", labelKey: "settings.slack", icon: IconBolt },
|
|
1500
|
-
{ id: "team", labelKey: "settings.team", icon: IconUsers },
|
|
1501
1501
|
];
|
|
1502
1502
|
|
|
1503
1503
|
function isSettingsSection(value: string | null): value is SettingsSection {
|
|
@@ -1530,9 +1530,6 @@ export function SettingsPage() {
|
|
|
1530
1530
|
<div className="flex flex-1 flex-col sm:flex-row overflow-hidden">
|
|
1531
1531
|
{/* Top tabs on mobile, left sidebar on desktop */}
|
|
1532
1532
|
<div className="sm:w-[200px] shrink-0 sm:border-e border-b sm:border-b-0 border-border/30 bg-muted/50 dark:bg-[hsl(220,6%,5%)] sm:p-3 flex sm:flex-col gap-0.5 overflow-x-auto">
|
|
1533
|
-
<p className="hidden sm:block px-2 py-1.5 text-[10px] font-medium text-muted-foreground/40 uppercase tracking-wider mb-1">
|
|
1534
|
-
{t("settings.title")}
|
|
1535
|
-
</p>
|
|
1536
1533
|
{navItems.map((item) => {
|
|
1537
1534
|
const Icon = item.icon;
|
|
1538
1535
|
const isActive = activeSection === item.id;
|
|
@@ -1572,7 +1569,10 @@ export function SettingsPage() {
|
|
|
1572
1569
|
{activeSection === "slack" && <SlackIntakeSection />}
|
|
1573
1570
|
{activeSection === "team" && (
|
|
1574
1571
|
<div className="flex-1 overflow-y-auto">
|
|
1575
|
-
<TeamPage
|
|
1572
|
+
<TeamPage
|
|
1573
|
+
showTitle={false}
|
|
1574
|
+
createOrgDescription={t("settings.teamDescription")}
|
|
1575
|
+
/>
|
|
1576
1576
|
</div>
|
|
1577
1577
|
)}
|
|
1578
1578
|
</div>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { Navigate } from "react-router";
|
|
2
|
+
|
|
1
3
|
import messages from "@/i18n/en-US";
|
|
2
|
-
import Team from "@/pages/Team";
|
|
3
4
|
|
|
4
5
|
export function meta() {
|
|
5
6
|
return [{ title: messages.mail.routeTitles.team }];
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export default function TeamRoute() {
|
|
9
|
-
return <
|
|
10
|
+
return <Navigate to="/settings?section=team" replace />;
|
|
10
11
|
}
|
|
@@ -62,6 +62,7 @@ import {
|
|
|
62
62
|
listGmailMessages,
|
|
63
63
|
gmailToEmailMessage,
|
|
64
64
|
getAccountDisplayName,
|
|
65
|
+
getOAuth2Credentials,
|
|
65
66
|
setAccountDisplayName,
|
|
66
67
|
} from "../lib/google-auth.js";
|
|
67
68
|
import { getSyntheticEmailsForView, getSnoozedThreadIds } from "../lib/jobs.js";
|
|
@@ -177,8 +178,8 @@ async function getAccessToken(accountEmail: string): Promise<string | null> {
|
|
|
177
178
|
tokens.expiry_date < Date.now() + 5 * 60 * 1000
|
|
178
179
|
) {
|
|
179
180
|
try {
|
|
180
|
-
const clientId =
|
|
181
|
-
|
|
181
|
+
const { clientId, clientSecret } =
|
|
182
|
+
await getOAuth2Credentials(accountEmail);
|
|
182
183
|
const oauth = createOAuth2Client(
|
|
183
184
|
clientId,
|
|
184
185
|
clientSecret,
|