Skip to content

Conversation

@jaygiang
Copy link
Collaborator

Update examples to use new RADFish storage architecture

This PR modernizes all RADFish examples to use the new storage system, replacing the deprecated storage patterns.

Changes Made

Storage Architecture Updates:

  • Updated 4 examples to use the new Application instance with IndexedDBConnector
    • multistep-form
    • on-device-storage
    • persisted-form
    • server-sync
  • Replaced useOfflineStorage hook with useApplication
  • Migrated from string-based field definitions to typed Schema objects
  • Updated CRUD operations to use Collection API methods (create, find, update, delete)
  • Updated code snippet styling to be uniform across all example readmes

Package Version Updates:

  • Updated @nmfs-radfish/radfish to ^1.1.1 across all 12 examples
  • Ensured @nmfs-radfish/react-radfish is ^1.0.0 across all examples

Code Cleanup:

  • Removed deprecated storage methods from mock-api/src/packages/storage/
  • Updated README documentation to reflect new storage patterns

Examples Updated

  • multistep-form: Multi-step form with persistent state
  • on-device-storage: Offline storage with multiple collections
  • persisted-form: Form persistence with URL loading
  • server-sync: Data synchronization with server
  • All other examples: Package version updates

Testing

All updated examples have been tested and are working correctly with the new storage
system.

@thgaskell thgaskell merged commit 2217c03 into main Sep 11, 2025
3 checks passed
@thgaskell thgaskell deleted the example-updates branch September 11, 2025 21:24
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.

3 participants