Confirm Page & Main Access Flow #223
Labels
Frontend
Frontend Related Issue
⚡Important
High-impact issue that needs to be resolved before the next release
Refactor
Code Improvement
Milestone
Goal
Implement a two‐step UI flow using
page.tsx
(the disclaimers/confirm button screen) andAccessPage.tsx
(the main logic). The workflow must handle dynamic JSON visitor fields, a possible password, and direct‐access scenarios.Detailed Guidelines
page.tsx
:AccessPage.tsx
:useDocumentAccess(linkId)
to get link details:visitorFields
(JSON),passwordProtected
,nameRequired
,emailRequired
(though these are columns, the server might also reflect them in the JSON).<AccessError />
.signedUrl
→ show<FileDisplay />
.<VisitorInfoModal />
to collect data.No References to old numeric flows (
userDetailsOption
):visitorFields
has 0 fields andpasswordProtected
is false, skip to file display.Tasks
page.tsx
: disclaimers, “Confirm” button → local state toggle or route toAccessPage
.AccessPage.tsx
:useDocumentAccess
hook.<AccessError>
if invalid.<VisitorInfoModal>
.The text was updated successfully, but these errors were encountered: