-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
FrontendFrontend Related IssueFrontend Related IssueNew FeatureNew feature to be implementedNew feature to be implemented🌱Nice-to-HaveEnhancements, Refactors, UI tweaks, or non-critical optimizationsEnhancements, Refactors, UI tweaks, or non-critical optimizations
Milestone
Description
Goal:
Wire up the existing “Create Link” button in each InfoTable row so that it opens the new Modal V2LinkCreateModaland properly handles link creation for the selected document.
The button UI is already present; this issue covers hooking it up to the new, centralised modal system, ensuring consistent behaviour with our recent Modal Refactor V2 work.
🎯 Key Deliverables
-
InfoTable Row:
- Ensure each row’s Create Link button is wired to open
LinkCreateModalusing the unifiedModalProvidercontext. - Pass correct props:
documentId(from row) and any default values if required.
- Ensure each row’s Create Link button is wired to open
-
Modal V2 Registry:
- Confirm
LinkCreateModalis registered in the global modal registry. - Use consistent key naming (
"link-create").
- Confirm
-
Create Link Logic:
- On modal submit, create link via existing link service.
- Refresh local TanStack Query cache (
useDocumentLinksQueryor equivalent). - Show success toast on create; close modal.
-
Error Handling:
- Display toast on failure; modal stays open to retry.
-
UX Consistency:
- Button shows loading state if needed.
- Disable multiple rapid clicks.
- Respects existing styles and layout in InfoTable row.
✅ Acceptance Criteria
- Clicking Create Link on any row opens
LinkCreateModalwith the right document context. - Submitting the modal successfully creates a new link for that document.
- Newly created link appears instantly in the Links Table without manual refresh.
- No console errors, stale data, or modal mismatches.
- Visual & functional QA confirms parity with owner-side “Create Link” modal flow.
🗂 Notes
- Modal implementation must use the centralised Modal V2 Provider — no local state modals.
- Uses same validation/schema as other link-creation flows.
- No styling changes to InfoTable row needed.
- No new routes or backend work required — reuses existing API.
Metadata
Metadata
Assignees
Labels
FrontendFrontend Related IssueFrontend Related IssueNew FeatureNew feature to be implementedNew feature to be implemented🌱Nice-to-HaveEnhancements, Refactors, UI tweaks, or non-critical optimizationsEnhancements, Refactors, UI tweaks, or non-critical optimizations