Skip to content

Fixing surveys list slowness#4157

Merged
SteRiccio merged 14 commits intomasterfrom
fix/surveys-list-slowness
Mar 19, 2026
Merged

Fixing surveys list slowness#4157
SteRiccio merged 14 commits intomasterfrom
fix/surveys-list-slowness

Conversation

@SteRiccio
Copy link
Member

No description provided.

@SteRiccio SteRiccio requested a review from Copilot March 19, 2026 13:19
@SteRiccio SteRiccio self-assigned this Mar 19, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve responsiveness in the surveys area by updating table column handling, reducing expensive UI sections when disabled via env config, and aligning survey status values with localized labels.

Changes:

  • Bump @openforis/arena-server dependency to ^1.2.20.
  • Localize survey status display (dashboard + surveys list) and introduce i18n resources for status labels.
  • Update table visible-column computation and optionally hide the Activity Log dashboard tab via ENV.activityLogDisabled.

Reviewed changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
yarn.lock Updates lockfile for @openforis/arena-server@^1.2.20.
package.json Bumps @openforis/arena-server to ^1.2.20.
webapp/views/App/views/Home/Dashboard/SurveyInfo/SurveyInfo.js Replaces raw status rendering with surveysView.status.* i18n key.
webapp/views/App/views/Home/Dashboard/Dashboard.js Adds ENV.activityLogDisabled guard to avoid rendering Activity Log tab.
webapp/components/survey/Surveys/Surveys.js Localizes status column and maps published-draft to published for non-editors.
webapp/components/Table/useTable.js Refactors visible column keys/columns derivation logic.
server/modules/survey/manager/surveyManager.js Minor refactor (letconst) and JSDoc edits for insertSurvey.
core/survey/_survey/surveyInfo.js Changes survey status constants to lowercase/hyphenated keys.
core/i18n/resources/en/common.js Adds surveysView.status translations.
core/i18n/resources/es/common.js Adds surveysView.status translations.
core/i18n/resources/mn/common.js Adds surveysView.status translations.
core/i18n/resources/pt/common.js Adds surveysView.status translations.
core/i18n/resources/ru/common.js Adds surveysView.status translations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SteRiccio SteRiccio requested a review from Copilot March 19, 2026 14:00
@sonarqubecloud
Copy link

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets perceived slowness in the surveys/home experience by updating the Arena server dependency, adjusting dashboard tabs behavior, and improving how survey status is represented and localized across the UI.

Changes:

  • Bump @openforis/arena-server to ^1.2.20 (lockfile + package.json).
  • Switch survey status values to lowercase keys and render localized status labels via surveysView.status.* translations.
  • Add an env-flag gate to hide the Dashboard Activity Log tab when ACTIVITY_LOG_DISABLED is enabled.

Reviewed changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
yarn.lock Updates lockfile for @openforis/arena-server version bump.
package.json Bumps @openforis/arena-server dependency to ^1.2.20.
core/survey/_survey/surveyInfo.js Changes survey status constants to lowercase values.
core/i18n/resources/en/common.js Adds surveysView.status.* translations (EN).
core/i18n/resources/es/common.js Adds surveysView.status.* translations (ES).
core/i18n/resources/pt/common.js Adds surveysView.status.* translations (PT).
core/i18n/resources/ru/common.js Adds surveysView.status.* translations (RU).
core/i18n/resources/mn/common.js Adds surveysView.status.* translations (MN).
webapp/views/App/views/Home/Dashboard/Dashboard.js Conditionally includes Activity Log tab based on ProcessUtils.ENV.activityLogDisabled.
webapp/views/App/views/Home/Dashboard/SurveyInfo/SurveyInfo.js Displays localized survey status in dashboard header.
webapp/components/survey/Surveys/Surveys.js Displays localized survey status in surveys table (with published-draft mapping for non-editors).
webapp/components/Table/useTable.js Refactors visible column keys computation (but introduces an unsafe optional-chaining issue).
server/modules/survey/manager/surveyManager.js Minor refactor and JSDoc edits around insertSurvey.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SteRiccio SteRiccio merged commit dba46d0 into master Mar 19, 2026
5 checks passed
@SteRiccio SteRiccio deleted the fix/surveys-list-slowness branch March 19, 2026 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants