Skip to content

feat: implement cached form prefilling for reusable fields#423

Open
Michvista wants to merge 1 commit into
rinafcode:mainfrom
Michvista:feat/401-form-prefill-cache
Open

feat: implement cached form prefilling for reusable fields#423
Michvista wants to merge 1 commit into
rinafcode:mainfrom
Michvista:feat/401-form-prefill-cache

Conversation

@Michvista
Copy link
Copy Markdown
Contributor

Closes #401

Summary

  • add AsyncStorage-backed caching for reusable form values with 90-day TTL pruning
  • prefill empty fields across forms and show non-intrusive cached-value suggestions
  • let users clear cached form data from mobile settings
  • document the caching strategy and add tests for service + multi-form behavior

What changed

  • introduced formCache service and useFormCache hook
  • integrated cached suggestions into MobileFormInput
  • wired profile edit and registration flows to read/write shared cached values
  • added “Clear Cached Form Data” under Settings > Privacy
  • documented cache keys, lifecycle, and manual test flow

Testing

  • npm test -- --runInBand tests/services/formCache.test.ts
  • npm test -- --runInBand tests/hooks/useFormCache.test.ts

Notes

  • direct push to upstream origin was not permitted from this machine, so this branch was pushed to the fork remote and is ready for PR creation from there
  • full repo TypeScript check still has unrelated existing errors outside the scope of this issue

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@Michvista Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER
Copy link
Copy Markdown
Contributor

RUKAYAT-CODER commented May 27, 2026

kindly resolve conflict and fix workfow.

@Michvista
Copy link
Copy Markdown
Contributor Author

Fixed the conflicts ma'am

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.

Implement efficient form prefilling with cached values

2 participants