diff --git a/web/src/app/(app)/notes/[noteId]/page.tsx b/web/src/app/(app)/notes/[noteId]/page.tsx index 0c764c0..6892ca7 100644 --- a/web/src/app/(app)/notes/[noteId]/page.tsx +++ b/web/src/app/(app)/notes/[noteId]/page.tsx @@ -274,7 +274,7 @@ export default function NoteDetailPage() { noteId={note.id} workspaceId={note.workspaceId} noteTags={note.tags} - onTagsAccepted={(tags) => void handleSave({ title: note.title, body: note.body }, { quiet: true })} + onTagsAccepted={(_tags) => void handleSave({ title: note.title, body: note.body }, { quiet: true })} onResultCreated={() => void getNoteDetail(note.id, note.workspaceId).then(setNote)} /> diff --git a/web/src/lib/feedback-client.ts b/web/src/lib/feedback-client.ts index f65f141..6ddab2b 100644 --- a/web/src/lib/feedback-client.ts +++ b/web/src/lib/feedback-client.ts @@ -1,7 +1,7 @@ "use client"; import { createFeedbackClient, type FeedbackClient } from "@bytelyst/feedback-client"; -import { PLATFORM_SERVICE_URL, PRODUCT_ID } from "@/lib/product-config"; +import { PLATFORM_SERVICE_URL } from "@/lib/product-config"; import { getAccessToken } from "@/lib/api-helpers"; let _client: FeedbackClient | null = null; diff --git a/web/src/lib/notes-client.ts b/web/src/lib/notes-client.ts index 9143ad9..b919391 100644 --- a/web/src/lib/notes-client.ts +++ b/web/src/lib/notes-client.ts @@ -46,22 +46,6 @@ function toNoteSummary(note: NoteDoc): NoteSummary { }; } -function toWorkspaceSummary(workspace: WorkspaceDoc, notes: NoteDoc[]): WorkspaceSummary { - const owner = workspace.members.find((member) => member.role === "owner")?.userId ?? workspace.updatedBy; - const noteCount = notes.filter((note) => note.workspaceId === workspace.id).length; - - return { - id: workspace.id, - name: workspace.name, - description: workspace.description ?? "", - owner, - noteCount, - visibility: workspace.members.length > 1 ? "shared" : "private", - updatedAt: workspace.updatedAt, - tags: [], - }; -} - function toNoteTask(task: NoteTaskDoc): NoteTask { return { id: task.id,