Document Link Management Refactoring #215
Labels
Core
Work to do on the core system of the App
⚡Important
High-impact issue that needs to be resolved before the next release
New Feature
New feature to be implemented
Refactor
Code Improvement
Milestone
Due to unclear initial requirements, our current link management has several shortcomings in both code quality (e.g., reliance on numeric toggles, poor separation of concerns) and missing key features that should be part of the application. This parent issue tracks all related sub‐issues to ensure a coherent, professional, and future‐proof architecture.
Overview
Link Management Gaps
requiredUserDetailsOption
) hamper flexibility; we want dynamic visitor fields in JSON.Refactoring Objectives
DocumentLink.visitorFields
, rely onvisitorFieldsConfig
for labeling/types, renameLink
→DocumentLink
, and store visitor submissions inDocumentLinkVisitor
./links/[linkId]
→/documentAccess/[linkId]
with dynamic forms, Tanstack Query hooks, and analytics placeholders.Three Main Issues
Link
→DocumentLink
,LinkVisitors
→DocumentLinkVisitor
), dynamicvisitorFields
, and ownership clarifications./links/[linkId]
to/documentAccess/[linkId]
, integrates dynamic visitor fields, inline PDF viewing, and analytics.CreateLink.tsx
(typed models, dynamic checkboxes), introducesuseCreateLink
, and refactors “SendingAccordion” for email placeholders or contact selection.Expected Outcome
💡 Important: Please read the Development Guidelines before starting work on these issues
References
Note
By addressing these three major issues in tandem under this parent issue, we ensure the Link Management system evolves into a fully functional, easily maintainable, and scalable solution.
The text was updated successfully, but these errors were encountered: