All release notes

v1.36.8

3 features, 4 fixes

Update note panel hooks with authenticatedFetch

  • useScriptureDetection: 3 scripture detection/verse fetch APIs
  • useNoteSubmission: 5 API calls (scripture detect, verse fetch, note create, threads list)

Update remaining profile and panel components with authenticatedFetch

  • EditNameColorPanel: user profile get/update APIs
  • MyChurchPanel: church data get/update APIs (4 calls)
  • MyAchievementsPanel: achievements API
  • ProfilePage: profile update, credentials APIs
  • MyDataPanel: delete account, clear data, import APIs
  • EditSpacePanel: spaces items API
  • NewSpacePanel: spaces items, create APIs
  • NewTagPanel: tags create, list, assign APIs
  • NewNotePanel: subscription status API

Migrate all React components to use authenticatedFetch

  • EditThreadPanel: thread update API
  • ManageBillingPanel: subscription status API
  • EmailPasswordPanel: user profile API
  • InboxItemsList: inbox add/archive/unarchive APIs
  • MobileNavigation: threads list API
  • NavigationColumn: threads list API
  • TiptapEditor: 6 scripture detection/verse fetch APIs
  • NewThreadPanel: thread create/update APIs
  • UpgradePageContent: subscription status API
  • Automatic JWT token inclusion in all API requests
  • Consistent auth pattern across all components
  • Fixes '

Resolve CSP blocking React hydration in development

  • Kill background Netlify/Deno processes that were intercepting requests
  • Clean up CSP headers to remove http: and only allow https: in production
  • Add dev:clean script to kill background processes before starting dev server
  • Update netlify.toml comments to clarify production-only CSP

Relax CSP headers for development

  • Add localhost and 127.0.0.1 to allowed sources
  • Remove upgrade-insecure-requests to allow HTTP in dev
  • Fixes React hydration being blocked by CSP
  • Panels and menus should now work in development

Change React components from client:only to client:load

  • The client:only directive doesn't work properly in static builds where
  • there's no SSR. Changing to client:load ensures React components hydrate
  • properly on page load.
  • This should fix panels and menus not opening.

Update subscription checks for static build compatibility

  • Make hasUnlimitedNotes async and support both SSR and static builds
  • Check subscriptions via Clerk client API for JWT auth
  • Update canCreateNote and getSubscriptionInfo to work without auth object
  • Remove auth parameter from subscription/status API route