Skip to content

App portal/feature/draft save and load#495

Open
ph4iry wants to merge 3 commits into
devfrom
app-portal/feature/draft-save-and-load
Open

App portal/feature/draft save and load#495
ph4iry wants to merge 3 commits into
devfrom
app-portal/feature/draft-save-and-load

Conversation

@ph4iry

@ph4iry ph4iry commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Added MongoDB-based drafting/saving

🎫 Issue #483.

▶ Changelist:

  • added getDraft(userId) and saveDraft(userId, responses) to query/update applicant_data by the id of the user submitting
  • GET /api/v1/registration accepts either a header or query param for the userId when interacting with the endpoint; this will be filled in automatically later down the line
  • POST /api/v1/registration returns { ok: true, savedAt } for a "saved X ago" timestamp
  • finalized application data document shape; see src/lib/application/service.ts

📝 Notes + 🚧 TODO:

  • in previous commits there was a service test file to do integration tests on the three main qualities specified in the ticket (no document handling, saving/reading round trip, autosave still keeps documents submitted after saving);to prevent random files it's removed for this PR

🧪 Testing:

  • Manually, you can start the dev server and temporarily append a userId to REGISTRATION_API in ApplicationForm.tsx and wait for autosave to verify the document is shown in Mongo

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
core-live Ready Ready Preview, Comment Jul 14, 2026 3:35pm
core-main Ready Ready Preview, Comment Jul 14, 2026 3:35pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant