Skip to content

Release 3.12.1#4250

Merged
SayakaOno merged 55 commits into
mainfrom
integration
Jul 6, 2026
Merged

Release 3.12.1#4250
SayakaOno merged 55 commits into
mainfrom
integration

Conversation

@SayakaOno

Copy link
Copy Markdown
Collaborator

SayakaOno and others added 30 commits June 25, 2026 19:38
…architecture

Replace the bespoke TAPE survey backend and frontend with a generic, DB-backed
survey model, modeled on the Market Directory Partner pattern:

- Add survey + survey_country reference tables (nullable country_id = global
  default); rename tape_survey to survey_response with a survey_id FK; repurpose
  permissions to add/get:survey_response and get:survey.
- One survey controller/route: available surveys (country-gated), plus create and
  get-latest response. Drop the broken PATCH route and its orphaned hasFarmAccess
  getter.
- Generic survey container, RTK Query slice, draft slice keyed by survey id, and
  param-based routes (/insights/survey/:surveyId). SURVEY_INFO render map with a
  ThankYouResults default; titles/status resolved via literal t() lookups.

TAPE behaviour is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…pe_globals_in_API_TypeScript_config

LF-5365: Fix missing Jest type globals in API TypeScript config
…nfig

Replace the DB-backed survey catalog (survey + survey_country tables) with a
frontend SURVEY_INFO map that already owns each survey's image and results
component. The database now stores only responses: tape_survey becomes
survey_response with a survey_key string column, and GET /survey_response maps
directly to that table (no catalog endpoint under the collection route).

Country/version gating moves into SURVEY_INFO.versionsByCountry, generalizing
the original getSurveyVersion. Gating is presentational only, matching the
controller, which records a response without checking country availability.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
We would have to preserve them anyway because of the network-fetched translation files
…-survey-flow-into-a-reusable-multi-survey-architecture

LF-5360 Generalize the tape survey flow into a reusable multi survey architecture
…y-to-insights

LF-5361 Add the Kenya IDEMS Group (Niger Farms) survey to Insights
…matic-run-fix

LF-4779 - Repair Chromatic GitHub action workflow
…ts-when-creating-a-new-farm-via-switch-farm

LF-5366 Survey draft persists when creating a new farm via switch farm
…r-browser-auto-translation-is-enabled

LF-5367 Survey crashes after browser auto translation is enabled
SayakaOno and others added 22 commits July 2, 2026 21:15
…igation-prescription-report-link

LF-5371 Update Ensemble Irrigation Prescription report URL to new format
…ntegration_webapp_compiled_locales

New Crowdin translations webapp_compiled_locales
…ntegration_api_job_locales

New Crowdin translations api_job_locales
…ntegration_api_email_templates

New Crowdin translations api_email_templates
…ntegration_webapp_consent

New Crowdin translations webapp_consent
…ntegration_webapp_locales

New Crowdin translations webapp_locales
…ntegration_webapp_locales

New Crowdin translations webapp_locales
Whether the back button actually routes to Insights depends on how the user got to the survey; direct navigation to survey is also technically possible
…n-be-retaken-by-using-the-browser-back-button

LF-5370 Completed survey can be retaken by using the browser Back button
Ensemble code change is already live
Non-array response also no longer appropriate for the other Ensemble call mock
…n-the-irrigation-prescription-list-endpoint

LF-5375 Handle pagination on the irrigation prescription list endpoint
@SayakaOno
SayakaOno requested review from a team as code owners July 6, 2026 16:59
@SayakaOno
SayakaOno requested review from kathyavini and removed request for a team July 6, 2026 16:59

@kathyavini kathyavini left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@SayakaOno
SayakaOno requested a review from den4ik1203 July 6, 2026 18:33
@SayakaOno
SayakaOno merged commit 61cfbe2 into main Jul 6, 2026
7 checks passed
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.

6 participants