Affected Apps / Packages
Studio (apps/studio)
Description
The global search shortcut (Ctrl + K) only searches through resumes, leaving out Cover Letters entirely. Furthermore, selection routing in StudioShell.tsx is hardcoded to /editor/resume/${id}, which causes navigation errors when non-resume document types are selected.
Steps to Reproduce
- Press
Ctrl + K to open the search modal.
- Search for an existing Cover Letter; notice it does not appear in the results.
- Observe that selecting a search item redirects to
/editor/resume/[id] unconditionally.
Expected Behavior
The search modal should query and index both resumes and cover letters, and routing should dynamically dispatch to /editor/resume/[id] or /editor/cover_letter/[id] based on the document type.
Environment Information
- OS: Windows
- Browser: Chrome / Edge
- Node.js: 20.x
Relevant Logs
No response
Proposed Fix / Suggestions
- Search Integration: Refactor
WorkspaceSearchModal to retrieve documents using getDocumentLibrarySnapshot() (which unifies Resumes and Cover Letters):
// In apps/studio/components/dashboard/WorkspaceSearchModal.tsx:
const docs = getDocumentLibrarySnapshot();
- Dynamic Routing: Pass document type back in the
onOpenDocument callback in StudioShell.tsx and route conditionally:
onOpenDocument={(id, type) => router.push(`/editor/${type.toLowerCase()}/${id}`)}
Affected Apps / Packages
Studio (apps/studio)
Description
The global search shortcut (
Ctrl + K) only searches through resumes, leaving out Cover Letters entirely. Furthermore, selection routing inStudioShell.tsxis hardcoded to/editor/resume/${id}, which causes navigation errors when non-resume document types are selected.Steps to Reproduce
Ctrl + Kto open the search modal./editor/resume/[id]unconditionally.Expected Behavior
The search modal should query and index both resumes and cover letters, and routing should dynamically dispatch to
/editor/resume/[id]or/editor/cover_letter/[id]based on the document type.Environment Information
Relevant Logs
No response
Proposed Fix / Suggestions
WorkspaceSearchModalto retrieve documents usinggetDocumentLibrarySnapshot()(which unifies Resumes and Cover Letters):onOpenDocumentcallback inStudioShell.tsxand route conditionally: