v0.31.2
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
apiClientcalls 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
ensureQueryDatacalls updated to use generated fetchers and query keys
- Centralized frontend API query hooks into domain-specific hook files (
useDocuments,useProjects,useInitiatives,useComments,useNotifications) following theuseTagspattern — replaces inlineuseQuery/useMutationcalls across pages with clean, reusable hooks that include error toasts and cache invalidation - Created
usePaginationhook 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 fromquery-keys.ts - Orval config updated to
httpClient: "axios"for clean return types (no discriminated union wrappers) - API mutator updated to accept
AxiosRequestConfigand prevent double URL prefixing withbaseURL: "" - Removed duplicate
TaskListResponseandDocumentListResponsetype definitions fromtypes/api.tsin favor of Orval-generated versions - Deleted
src/api/notifications.ts— all consumers migrated touseNotificationshooks
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.2Or use latest tag. View on Docker Hub.