diff --git a/src/components/SlashMenu.tsx b/src/components/SlashMenu.tsx index ce66197..2dc4d02 100644 --- a/src/components/SlashMenu.tsx +++ b/src/components/SlashMenu.tsx @@ -1,14 +1,5 @@ import { type Component, createSignal, For, createEffect } from "solid-js"; -import { - Heading1, Heading2, Heading3, - List, ListTodo, Type, - Code, Quote, - Image as ImageIcon, Minus, - Bold, Italic, Underline, - Grid3X3, Highlighter, - AlignLeft, AlignCenter, AlignRight, - Trash2, AppWindow, Film -} from "lucide-solid"; +import { Search, Save, FolderOpen, Tag, Settings, Database, Server, RefreshCw, Cpu, ChevronRight, X, Calendar, Pen, Type, Underline, Strikethrough, Code, Quote, ImageIcon, Heading1, Heading2, Heading3, Link, CheckSquare, List, ListOrdered, Film, AppWindow, Minus, Grid3X3, AlignLeft, AlignCenter, AlignRight, FileText, Delete, Trash2, Highlighter, Bold, Italic, ListTodo } from "lucide-solid"; import { cn } from "@/lib/utils"; export interface CommandItem { @@ -132,10 +123,19 @@ export const getSuggestionItems = ({ query }: { query: string }): CommandItem[] editor.chain().focus().deleteRange(range).uploadVideo().run(); }, }, + { + title: "File", + description: "Upload a document or file.", + aliases: ["file", "pdf", "doc", "upload"], + icon: FileText, + command: ({ editor, range }: { editor: any, range: any }) => { + editor.chain().focus().deleteRange(range).uploadFile().run(); + }, + }, { title: "Job File", description: "Embed a job file from Prism.", - aliases: ["file", "embed", "job", "pdf"], + aliases: ["job", "jobfile", "prism"], icon: AppWindow, command: ({ editor, range }: { editor: any, range: any }) => { editor.chain().focus().deleteRange(range).insertFileViewer().run(); diff --git a/src/components/TaskDetail.tsx b/src/components/TaskDetail.tsx index cf6c411..1b0347a 100644 --- a/src/components/TaskDetail.tsx +++ b/src/components/TaskDetail.tsx @@ -3,7 +3,7 @@ import { Sheet, SheetContent } from "@/components/ui/sheet"; import { type Task, removeTask, restoreTask, updateTask, saveTaskAsTemplate, shareTask, revokeShare, splitTask, loadTaskContent, currentTaskContext, cleanupTaskAttachments, getFavoriteTag } from "@/store"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; -import { ArrowUpCircle, Clock, Calendar, Type, Trash2, X, Copy, MoreHorizontal, Gauge, Share2, UserMinus, GitBranch, Tag, Settings, Star, Image as ImageIcon, Film } from "lucide-solid"; +import { ArrowUpCircle, Clock, Calendar, Type, Trash2, X, Copy, MoreHorizontal, Gauge, Share2, UserMinus, GitBranch, Tag, Settings, Star, Image as ImageIcon, Film, FileText } from "lucide-solid"; import { StatusCircle } from "./StatusCircle"; import { calculateDateFromUrgency, calculateUrgencyFromDate } from "@/store"; import { Button } from "./ui/button"; @@ -695,6 +695,34 @@ export const TaskDetail: Component = (props) => { {/* Close button (Mobile only) */} + + +
@@ -535,7 +549,7 @@ export const NotepadView: Component<{ onUpdate={(html) => handleUpdateContent(note().id, html)} onEditorReady={setEditorInstance} editable={canEdit} - class={hasTopViewer() ? "[&>*:not(.file-viewer-wrapper:first-child)]:px-4 md:[&>*:not(.file-viewer-wrapper:first-child)]:px-6 [&>*:not(.file-viewer-wrapper:first-child)]:max-w-3xl [&>*:not(.file-viewer-wrapper:first-child)]:mx-auto pb-20" : ""} + class={hasTopViewer() ? "[&>*:not(.file-viewer-wrapper:first-child,.file-attachment-wrapper:first-child)]:px-4 md:[&>*:not(.file-viewer-wrapper:first-child,.file-attachment-wrapper:first-child)]:px-6 [&>*:not(.file-viewer-wrapper:first-child,.file-attachment-wrapper:first-child)]:max-w-3xl [&>*:not(.file-viewer-wrapper:first-child,.file-attachment-wrapper:first-child)]:mx-auto [&>.file-viewer-wrapper:first-child]:h-[80vh] [&>.file-viewer-wrapper:first-child]:min-h-0 [&>.file-attachment-wrapper:first-child]:h-[80vh] [&>.file-attachment-wrapper:first-child]:min-h-0 pb-20" : ""} />
@@ -565,18 +579,18 @@ export const NotepadView: Component<{
- + Linked Tasks
@@ -593,7 +607,7 @@ export const NotepadView: Component<{ }} title="Link Existing Task" > - +