-
Couldn't load subscription status.
- Fork 3.1k
fix: FIT-792: Task action menu sometimes loads only reduced number of action items #8679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## develop #8679 +/- ##
===========================================
- Coverage 67.07% 8.34% -58.73%
===========================================
Files 790 478 -312
Lines 60675 33264 -27411
Branches 10310 9034 -1276
===========================================
- Hits 40697 2777 -37920
- Misses 19975 30484 +10509
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/git merge
|
|
/fmt |
…-fit-792/action-menu
This pull request modernizes how available actions are fetched and managed in the DataManager UI by introducing a new React hook,
useActions, powered by TanStack Query. The change replaces MobX-based flows with a hook-based approach, improving caching, loading states, and developer experience. The legacy MobXfetchActionsflow is now deprecated, and actions are fetched on-demand when needed, reducing unnecessary API calls and aligning with best practices for React data fetching.Key changes:
1. Actions fetching refactor and TanStack Query integration
useActionshook (useActions.ts) that fetches actions from the DataManager API using TanStack Query, supporting caching, loading/error states, and per-project cache scoping.ActionsButtoncomponent to use theuseActionshook instead of MobX flows, simplifying logic and improving UI responsiveness and reliability. [1] [2] [3]2. Documentation and migration guidance
useActions, usage patterns, migration steps from MobX, and best practices for TanStack Query integration.3. MobX flow deprecation and cleanup
fetchActionsflow as deprecated inAppStore.js, retaining it only for backward compatibility and logging errors for failed fetches.fetchActionsin favor of on-demand fetching via the new hook, preventing duplicate API calls and unnecessary data fetching.