Skip to content

[MRF2-15] PLU-520: Pre-bug bash fixes#1440

Merged
pregnantboy merged 6 commits intomrf/trunkfrom
mrf/pre-bugbash-fixes
Mar 6, 2026
Merged

[MRF2-15] PLU-520: Pre-bug bash fixes#1440
pregnantboy merged 6 commits intomrf/trunkfrom
mrf/pre-bugbash-fixes

Conversation

@pregnantboy
Copy link
Copy Markdown
Contributor

@pregnantboy pregnantboy commented Mar 4, 2026

Summary

These were fixes that were discovered and fixed before bug bash

Fixes

fix: radio field not parsed properly

  • was handling 'radio' instead of 'radiobutton'

to test:

  • ensure that radio button shows up in mock data and submissions properly

fix: if-then step position not incrementing properly
ref: packages/backend/src/apps/formsg/triggers/new-submission/create-mrf-steps.ts

  • bug where SQL query to increment steps was using app_key <> MRF_APP_KEY which is false for null
  • added orWhereNull('app_key') to fix this

to test:

  • When adding MRF step before if-then step, ensure that that the if-then steps still appear properly

fix: postman email step editor error

  • think this was a regression where the flowId was taken from step.flow.id in AttachmentSuggestion. there was a refactor earlier in this stack where flow was removed from step since its duplicating info returned.
  • fixed but retrieving flowId from EditorContext instead (please verify !)

to test:

  • Email attachments still work

fix: nested step height incorrect

  • CSS issue: grouped/nest steps were being squashed
  • fixed by increasing height

to test:

  • Grouped/nested steps dont appear squashed

fix: disabled step still appears after deleted

  • Set disabled step to null on delete

to test:

  • Go to reject branch and see disabled MRF step, delete the trigger, the disabled MRF step should be gone

@pregnantboy pregnantboy marked this pull request as ready for review March 4, 2026 09:40
@pregnantboy pregnantboy requested a review from a team as a code owner March 4, 2026 09:40
@pregnantboy pregnantboy changed the title fix: radio field not parsed properly [MRF2-15] PLU-520: Pre-bug bash fixes Mar 4, 2026
@linear
Copy link
Copy Markdown

linear Bot commented Mar 4, 2026

PLU-520 MRF: Approvals

Comment thread packages/frontend/src/components/AttachmentSuggestions/index.tsx Outdated
Copy link
Copy Markdown
Contributor

@kevinkim-ogp kevinkim-ogp left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Copy Markdown
Contributor Author

pregnantboy commented Mar 6, 2026

Merge activity

  • Mar 6, 12:47 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Mar 6, 12:51 PM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 6, 12:51 PM UTC: @pregnantboy merged this pull request with Graphite.

@pregnantboy pregnantboy changed the base branch from mrf/change-mrf-step-styling to graphite-base/1440 March 6, 2026 12:48
@pregnantboy pregnantboy changed the base branch from graphite-base/1440 to mrf/trunk March 6, 2026 12:49
@pregnantboy pregnantboy force-pushed the mrf/pre-bugbash-fixes branch from 406f77d to 9563432 Compare March 6, 2026 12:50
@pregnantboy pregnantboy merged commit 234e657 into mrf/trunk Mar 6, 2026
2 checks passed
@pregnantboy pregnantboy deleted the mrf/pre-bugbash-fixes branch March 6, 2026 12:51
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