mediawiki-extensions-Growth.../modules
Sergio Gimeno 26cf3280b6 Suggested edits: update task queue before loading
The store was emitting QUEUE_LOADING/false events before the
task queue was actually updated. Consumers of the loading
event were getting an outdated task count.

In I75dcffaa35138165be22658f1844d98ea9af6384 we introduced
the same approach but it caused issues in the post edit dialog,
see T360469. The issues were caused by the store methods
hasPreviousTask and hasNextTask returning false while the
loading property has not yet been updated after fetching
tasks.

Emit the queue loading event after the queue
is updated and make store getters return the prev/next
computed value independently from the task queue loading
or not.

Note: the source problem remains in FiltersDialog.updateLoadingState
being only subscribed to TASK_QUEUE_LOADING and not task queue
changes. Consider refactoring it in follow-up in two different
handlers, one for loading state and another for new task counts.
Also consider using a state management solution eg Pinia.

Bug: T359992
Change-Id: Ib545b9f24ea6b84504a8ba4d2c4561737be9be0b
2024-05-03 12:59:40 +02:00
..
ext.growthExperiments.Account Move var declarations inline 2023-10-23 13:48:35 +01:00
ext.growthExperiments.Account.styles Welcome survey: Remove obsolete questions from the bank 2023-10-10 20:29:01 +00:00
ext.growthExperiments.DataStore Suggested edits: update task queue before loading 2024-05-03 12:59:40 +02:00
ext.growthExperiments.Help Workaround for night mode incompatibility with LESS mixins 2024-02-20 17:44:11 +00:00
ext.growthExperiments.HelpPanel Fix exit button and address deprecation warnings 2023-12-14 23:14:29 +00:00
ext.growthExperiments.Homepage.ConfirmEmailNotice Consolidate ext.growthExperiments.Homepage.ConfirmEmail.styles into ext.growthExperiments.Homepage.styles 2022-01-24 12:08:17 +01:00
ext.growthExperiments.Homepage.Impact Consolidate homepage modules that are always enabled 2022-02-07 14:07:39 -08:00
ext.growthExperiments.Homepage.Logger Move var declarations inline 2023-10-23 13:48:35 +01:00
ext.growthExperiments.Homepage.Logging build: Updating eslint-config-wikimedia to 0.25.0 2023-05-16 00:15:53 +02:00
ext.growthExperiments.Homepage.Mentorship Move var declarations inline 2023-10-23 13:48:35 +01:00
ext.growthExperiments.Homepage.NewImpact docs: fix wrong renderMode prop values 2024-03-05 13:49:50 +01:00
ext.growthExperiments.Homepage.SuggestedEdits Document generated CSS class names 2024-02-28 16:04:34 +00:00
ext.growthExperiments.Homepage.WelcomeSurveyReminder Add WelcomeSurveyReminder homepage module 2022-09-02 04:47:17 +00:00
ext.growthExperiments.Homepage.mobile Fix exit button and address deprecation warnings 2023-12-14 23:14:29 +00:00
ext.growthExperiments.Homepage.styles Workaround for night mode incompatibility with LESS mixins 2024-02-20 17:44:11 +00:00
ext.growthExperiments.HomepageDiscovery styles: Use new forward-facing breakpoint variables 2023-10-23 16:12:53 -07:00
ext.growthExperiments.LevelingUp.InviteToSuggestedEdits Workaround for night mode incompatibility with LESS mixins 2024-02-20 17:44:11 +00:00
ext.growthExperiments.MentorDashboard build: Update Vue, Codex 2024-02-21 20:29:18 +01:00
ext.growthExperiments.MidEditSignup Move var declarations inline 2023-10-23 13:48:35 +01:00
ext.growthExperiments.PostEdit Workaround for night mode incompatibility with LESS mixins 2024-02-20 17:44:11 +00:00
ext.growthExperiments.StructuredTask Merge "Section images: adjust placeholder width in narrow screens" 2023-12-19 14:34:16 +00:00
ext.growthExperiments.StructuredTask.PreEdit Document generated CSS class names 2024-02-28 16:04:34 +00:00
ext.growthExperiments.StructuredTask.desktop Eslint: Removes reundant eslint check and upgrades linter to ES6 2023-12-05 20:22:24 +00:00
ext.growthExperiments.StructuredTask.mobile Fix remaining uses of 'parent'->'super' 2023-11-02 19:04:21 +00:00
ext.growthExperiments.SuggestedEditSession Move var declarations inline 2023-10-23 13:48:35 +01:00
lib styles: Replace old variables calls with skin variables 2023-05-10 16:53:13 +00:00
tours User impact: Show discovery tour to desktop users who had old module 2022-12-05 09:59:30 +01:00
ui-components Move var declarations inline 2023-10-23 13:48:35 +01:00
utils HelpPanelLogger: add check for CodeMirror 6 element 2024-02-20 20:05:33 +00:00
vue-components User impact: pass second argument for tooltip info 2024-01-10 11:46:28 +01:00
.eslintrc.json Eslint: Removes reundant eslint check and upgrades linter to ES6 2023-12-05 20:22:24 +00:00
homepage.init.js Monitoring: Use first-contentful-paint 2023-01-10 11:17:47 +01:00