Skip to content

v0.31.2

Choose a tag to compare

@github-actions github-actions released this 20 Feb 04:38
· 1736 commits to main since this release
9d0ab04

Added

  • Centralized query key invalidation helpers (frontend/src/api/query-keys.ts) with domain-specific functions for consistent cache management

Changed

  • Migrated ~70 frontend files from manual apiClient calls to Orval-generated functions and React Query hooks
    • Pages: all project, task, document, initiative, settings, and user settings pages
    • Components: sidebar, comment section, import dialogs, bulk edit dialogs, task checklist, notifications
    • Hooks: tags, roles, AI settings, interface colors, version check, push notifications, realtime updates
    • Route loaders: all ensureQueryData calls updated to use generated fetchers and query keys
  • Centralized frontend API query hooks into domain-specific hook files (useDocuments, useProjects, useInitiatives, useComments, useNotifications) following the useTags pattern — replaces inline useQuery/useMutation calls across pages with clean, reusable hooks that include error toasts and cache invalidation
  • Created usePagination hook for reusable page/pageSize state management with URL search param sync
  • Replaced manual query keys (e.g., ["projects"]) with generated URL-based keys (e.g., ["/api/v1/projects/"])
  • Replaced manual queryClient.invalidateQueries() calls with domain-specific helpers from query-keys.ts
  • Orval config updated to httpClient: "axios" for clean return types (no discriminated union wrappers)
  • API mutator updated to accept AxiosRequestConfig and prevent double URL prefixing with baseURL: ""
  • Removed duplicate TaskListResponse and DocumentListResponse type definitions from types/api.ts in favor of Orval-generated versions
  • Deleted src/api/notifications.ts — all consumers migrated to useNotifications hooks

Fixed

  • Tasks endpoint returned no results when requesting tasks for a template project

Downloads

Android App

Download the APK from the assets below and install on your Android device.

Docker Image

docker pull morelitea/initiative:0.31.2

Or use latest tag. View on Docker Hub.