Skip to content

Conversation

@najuna-brian
Copy link
Contributor

@najuna-brian najuna-brian commented Dec 15, 2025

Closes #70

Summary

Implements the onGetAvailableForms handler to return actual form data instead of an empty array, enabling custom apps to discover available forms programmatically.

Changes

  • FormulusMessageHandlers.ts: Implemented onGetAvailableForms to query FormService and transform FormSpec[] to FormInfo[]
  • FormulusMessageHandlers.types.ts: Updated return type from Promise<any> to Promise<FormInfo[]>

Testing

  • Custom apps can now call await formulus.getAvailableForms() and receive actual form data
  • Returns proper FormInfo[] structure with all required fields
  • Native screens unaffected (they use useForms() hook directly)

@najuna-brian najuna-brian requested a review from r0ssing December 15, 2025 05:02
@najuna-brian najuna-brian marked this pull request as ready for review December 15, 2025 13:10
@r0ssing
Copy link
Contributor

r0ssing commented Dec 19, 2025

This is great! Thanks @najuna-brian - will you resolve the merge conflicts, so we can merge this into dev?

r0ssing
r0ssing previously approved these changes Dec 19, 2025
@najuna-brian najuna-brian force-pushed the implement-onGetAvailableForms branch from 759d4de to 8a92294 Compare December 20, 2025 18:47
@najuna-brian najuna-brian requested a review from IamLRBA December 20, 2025 19:03
@najuna-brian najuna-brian merged commit 92eb957 into OpenDataEnsemble:dev Dec 20, 2025
8 checks passed
@najuna-brian najuna-brian deleted the implement-onGetAvailableForms branch December 20, 2025 19:19
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 onGetAvailableForms Handler

4 participants