diff --git a/web/src/app/(app)/settings/page.tsx b/web/src/app/(app)/settings/page.tsx index 08efacf..fa90b1f 100644 --- a/web/src/app/(app)/settings/page.tsx +++ b/web/src/app/(app)/settings/page.tsx @@ -4,7 +4,7 @@ import { useState } from "react"; import { useTheme } from "@/lib/use-theme"; import { useAuth } from "@/lib/auth"; import { AppShell } from "@/components/AppShell"; -import { Button, Card } from "@/components/ui/Primitives"; +import { AlertBanner, Button, Card, Input, Select, Textarea } from "@/components/ui/Primitives"; import { getFeedbackClient } from "@/lib/feedback-client"; import { toast } from "@/lib/toast"; import { NOTES_API_URL, PLATFORM_SERVICE_URL, MCP_SERVER_URL, PRODUCT_ID } from "@/lib/product-config"; @@ -65,25 +65,30 @@ export default function SettingsPage() { title="Settings" description="Account, preferences, feedback, and session management." actions={ - } > -
+
{/* Profile */} - + Profile -
+
{user?.name ?? "—"} · {user?.email ?? "—"} · {user?.role ?? "—"}
{/* Appearance */} - -
+ +
Appearance -
Switch between dark and light mode
+
Switch between dark and light mode
{/* Danger zone */} - + Danger zone -
-
+ Connect your agent (MCP) -

+

Use your platform access token with the shared MCP server on port 4007. Point tools at the NoteLett backend and product id{" "} {PRODUCT_ID}.

-
+        
           {`Notes API base: ${NOTES_API_URL}
 Platform API: ${PLATFORM_SERVICE_URL}
 MCP API base: ${MCP_SERVER_URL}
@@ -137,29 +166,29 @@ MCP API base: ${MCP_SERVER_URL}
 #   "notelett": { "url": "${MCP_SERVER_URL}" }
 # }`}
         
-

+

Deep links for tools: see docs/DEEP_LINKS.md in the repo.

-
+ -
+ API tokens for automation -

+

Scoped tokens for MCP or CI are provisioned through the ByteLyst platform when your tenant enables them. This web app does not yet expose create/revoke; use the platform admin or CLI when available.

-
+ -
+ Offline queue -

+

Failed writes are retried from local storage via @bytelyst/offline-queue (storage key{" "} {`${PRODUCT_ID}_offline_queue`}). Reload or return online to flush.

-
+ {/* Feedback */} -
+ Send feedback -
- - setFeedbackTitle(e.target.value)} /> +
+ setFeedbackTitle(e.target.value)} + />
-