Skip to content

fix(core): improve stellar confirmation screens#6922

Open
PrisionMike wants to merge 2 commits into
mainfrom
overcat/fix-stellar-layout
Open

fix(core): improve stellar confirmation screens#6922
PrisionMike wants to merge 2 commits into
mainfrom
overcat/fix-stellar-layout

Conversation

@PrisionMike
Copy link
Copy Markdown
Contributor

@PrisionMike PrisionMike commented May 13, 2026

fixes #6709
Cherry-picking from #6771
CC @overcat

@PrisionMike PrisionMike requested review from ibz and romanz May 13, 2026 13:16
@PrisionMike PrisionMike self-assigned this May 13, 2026
@PrisionMike PrisionMike requested a review from obrusvit as a code owner May 13, 2026 13:16
@PrisionMike PrisionMike added altcoin Any non-Bitcoin coins translations Put this label on a PR to run tests in all languages labels May 13, 2026
@github-project-automation github-project-automation Bot moved this to 🔎 Needs review in Firmware May 13, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

Review Change Stack

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

💤 Files selected but had no reviewable changes (1)
  • tests/ui_tests/fixtures.json
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f87b6448-062e-492e-b877-42f34d8936c7

📥 Commits

Reviewing files that changed from the base of the PR and between 284c6ac and ca22c7f.

📒 Files selected for processing (1)
  • tests/ui_tests/fixtures.json

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

This PR refactors Stellar transaction confirmation flows to improve visual clarity between intermediate and final confirmation screens. The changes introduce a new confirm_stellar_output_amount helper function across all UI frameworks (bolt, caesar, delizia, eckhart) and make confirm_stellar_output signature flexible with optional parameters. The Stellar app layer (layout.py and operations/layout.py) is updated to use these new helpers consistently and add explicit verb=TR.buttons__continue parameters throughout operation confirmations to clarify button behavior at each step.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The PR description is minimal and lacks required template sections for core developers, particularly missing project assignment, priority, team, sprint, and development status information. Add comprehensive PR description following the template: assign yourself, add to Firmware project with Priority/Team/Sprint, and set development status to 'Needs Review' since this appears ready for review rather than a draft.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix(core): improve stellar confirmation screens' clearly summarizes the main change - improving Stellar confirmation screens UI.
Linked Issues check ✅ Passed The PR addresses issue #6709 by refactoring Stellar confirmation screens to use improved UI helpers and explicit continue verbs, differentiating intermediate confirmations from final confirmations.
Out of Scope Changes check ✅ Passed All changes are directly related to improving Stellar confirmation screens as specified in issue #6709 and involve layout refactoring and UI helper updates.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch overcat/fix-stellar-layout

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

en main(all)

model device_test click_test persistence_test
T2T1 test(all) main(all) test(all) main(all) test(all) main(all)
T3B1 test(all) main(all) test(all) main(all) test(all) main(all)
T3T1 test(all) main(all) test(all) main(all) test(all) main(all)
T3W1 test(all) main(all) test(all) main(all) test(all) main(all)
Translations

cs main(all)

model device_test click_test
T2T1 test(all) main(all) test(all) main(all)
T3B1 test(all) main(all) test(all) main(all)
T3T1 test(all) main(all) test(all) main(all)
T3W1 test(all) main(all) test(all) main(all)

de main(all)

model device_test click_test
T2T1 test(all) main(all) test(all) main(all)
T3B1 test(all) main(all) test(all) main(all)
T3T1 test(all) main(all) test(all) main(all)
T3W1 test(all) main(all) test(all) main(all)

es main(all)

model device_test click_test
T2T1 test(all) main(all) test(all) main(all)
T3B1 test(all) main(all) test(all) main(all)
T3T1 test(all) main(all) test(all) main(all)
T3W1 test(all) main(all) test(all) main(all)

fr main(all)

model device_test click_test
T2T1 test(all) main(all) test(all) main(all)
T3B1 test(all) main(all) test(all) main(all)
T3T1 test(all) main(all) test(all) main(all)
T3W1 test(all) main(all) test(all) main(all)

pt main(all)

model device_test click_test
T2T1 test(all) main(all) test(all) main(all)
T3B1 test(all) main(all) test(all) main(all)
T3T1 test(all) main(all) test(all) main(all)
T3W1 test(all) main(all) test(all) main(all)

Latest CI run: 25805954837

Copy link
Copy Markdown
Contributor

@obrusvit obrusvit left a comment

Choose a reason for hiding this comment

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

LGTM, two comments.

@@ -0,0 +1 @@
Improve Stellar confirmation screens to better distinguish intermediate steps from the final confirmation and polish related layout details.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's shorten it to something like: "Improve Stellar confirmations flows."

verb=TR.buttons__continue,
)

if amount is not None and asset is not None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If it must be supplied together, please make the function take the type enforcing it, i.e. amount: (str, StellarAsset) | None.

Double-check similar pattern in other function calls please.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@copilot create a new branch from this one and implement the feedback of this comment. Then create another PR targeting the base branch.

Copy link
Copy Markdown
Contributor

Copilot AI commented May 15, 2026

@obrusvit I've opened a new pull request, #6942, to work on those changes. Once the pull request is ready, I'll request review from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

altcoin Any non-Bitcoin coins translations Put this label on a PR to run tests in all languages

Projects

Status: 🔎 Needs review

Development

Successfully merging this pull request may close these issues.

Improve Stellar layouts

4 participants