Skip to content

fix(FR-2988): clarify revision-apply confirmation popup#7620

Merged
yomybaby merged 1 commit into
mainfrom
fr-2988-clarify-revision-apply-popconfirm
May 28, 2026
Merged

fix(FR-2988): clarify revision-apply confirmation popup#7620
yomybaby merged 1 commit into
mainfrom
fr-2988-clarify-revision-apply-popconfirm

Conversation

@yomybaby
Copy link
Copy Markdown
Member

@yomybaby yomybaby commented May 27, 2026

Resolves #7619 (FR-2988)

Summary

Clarify the confirmation popup that appears when applying a revision in the Deployment Revision History. Previously the popconfirm title was Apply and the description was just #<revisionNumber>, which was easy to misread as a label rather than a confirmation prompt — a Frontend channel discussion flagged it as ambiguous.

Changes

  • react/src/components/DeploymentRevisionHistoryTab.tsx — both popconfirm sites (row action + drawer footer) now use clearer copy.
  • resources/i18n/*.json (21 locales)
    • Added deployment.ApplyRevisionApply revision (used as popconfirm title)
    • Updated deployment.ApplyConfirmApply selected revision #{{revisionNumber}}? (was previously unused; repurposed as the description)

Before / After

Before After
before after
Before After
Title Apply Apply revision / 리비전 적용
Description #3 Apply selected revision #3? / 선택하신 리비전 #3을(를) 적용하시겠습니까?

Notes

  • Kept as antd Popconfirm — applying a revision is reversible (a different revision can be applied later), so the destructive-confirmation typed-modal rule does not apply.
  • Mutation, success/error toast, and disabled-state logic are unchanged.

Test plan

  • Open a deployment with multiple revisions → Revision History tab
  • Click the row action "Apply" button on a non-current revision → popconfirm shows the new title + description
  • Open the revision detail drawer → footer "Apply" button → same new copy
  • Verify all 21 locale strings render with the {{revisionNumber}} placeholder filled in

🤖 Generated with Claude Code

Copy link
Copy Markdown
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent changes, fast-track this PR to the front of the merge queue

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@yomybaby yomybaby changed the title feat(FR-2960): remove orphaned legacy model-serving endpoint components (#7568) fix(FR-2988): clarify revision-apply confirmation popup May 27, 2026
@github-actions github-actions Bot added area:ux UI / UX issue. area:i18n Localization labels May 27, 2026
yomybaby added a commit that referenced this pull request May 27, 2026
yomybaby added a commit that referenced this pull request May 27, 2026
@yomybaby yomybaby marked this pull request as ready for review May 27, 2026 12:47
Copilot AI review requested due to automatic review settings May 27, 2026 12:47
Copy link
Copy Markdown
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.

Copilot wasn't able to review any files in this pull request.

Copy link
Copy Markdown
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM

Make the deployment revision-apply popconfirm self-explanatory. Previously
the title was 'Apply' and the description showed only '#<revisionNumber>',
which was easy to misread as a label rather than a confirmation prompt.

- Add new i18n key 'deployment.ApplyRevision' for the popconfirm title.
- Repurpose existing (previously unused) 'deployment.ApplyConfirm' as
  the description, shortened to 'Apply selected revision #N?'.
- Apply the new copy to both popconfirm sites in DeploymentRevisionHistoryTab:
  the row action button and the detail drawer footer.
- Propagate translations to all 21 locales.

Also fixes a pre-existing test breakage caused by FR-2987: the mock at
react/__test__/buiLanguage.mock.js was missing the new 'buiTranslations'
export, which broke every test transitively importing DefaultProviders
with 'TypeError: Cannot convert undefined or null to object' at the
Object.entries(buiTranslations).forEach(...) call.
@yomybaby yomybaby force-pushed the fr-2988-clarify-revision-apply-popconfirm branch from 2daac8a to 7881e91 Compare May 27, 2026 23:02
@github-actions github-actions Bot added the size:M 30~100 LoC label May 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Coverage Report for react-coverage (./react)

Status Category Percentage Covered / Total
🔵 Lines 6.52% 1800 / 27575
🔵 Statements 5.35% 1995 / 37282
🔵 Functions 5.27% 297 / 5632
🔵 Branches 3.73% 1300 / 34831
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
react/src/components/DeploymentRevisionHistoryTab.tsx 0% 0% 0% 0% 64-689
Generated in workflow #1140 for commit 7881e91 by the Vitest Coverage Report Action

@yomybaby yomybaby merged commit 9fa9078 into main May 28, 2026
13 checks passed
@yomybaby yomybaby deleted the fr-2988-clarify-revision-apply-popconfirm branch May 28, 2026 02:44
agatha197 added a commit that referenced this pull request May 28, 2026
…-fetch

Also adds buiTranslations to bui-language mock to fix test TypeError from
missing export (introduced by FR-2987 / #7595, backfilled here since
FR-2988 / #7620 that fixed main landed after this branch was created).
agatha197 added a commit that referenced this pull request May 29, 2026
…-fetch

Also adds buiTranslations to bui-language mock to fix test TypeError from
missing export (introduced by FR-2987 / #7595, backfilled here since
FR-2988 / #7620 that fixed main landed after this branch was created).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:i18n Localization area:ux UI / UX issue. size:M 30~100 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify revision-apply confirmation popup in Deployment Revision History

3 participants