harbor run -t openthoughts/tasktrove-exp-rpt-stack-jest-large-stack-jest-0991harbor download openthoughts/tasktrove-exp-rpt-stack-jest-large-stack-jest-0991Task title: Implement “New Card from Context Menu” flow for a faux PDF viewer with persistent cards and a DOM structure matching tests
Task description: Build a small SPA under /app/ (TypeScript or JavaScript) that simulates uploading a PDF, shows a selectable text layer, and allows creating new “cards” via a custom context-menu action. Implement three actions exposed to tests via the context menu: aFromContextMenu, qFromContextMenu, and noteFromContextMenu. Each action should create a new card in a left-side panel containing a single-line input (textarea) whose value is the currently selected text (e.g., “A Simple PDF”). The created cards must persist across page reloads (via localStorage) and remain after re-uploading the same PDF.
Acceptance criteria and concrete requirements:
Notes:
Deliverable: