From 81816c0caf6a10adc9484e3a6cab7afc7d897d84 Mon Sep 17 00:00:00 2001 From: Lukas Bielesch Date: Thu, 13 Mar 2025 14:21:02 +0100 Subject: [PATCH] feat(eckhart): show_group_share_success --- .../rust/src/ui/layout_eckhart/ui_firmware.rs | 19 +++++++++++++++++-- .../src/trezor/ui/layouts/eckhart/recovery.py | 8 ++++---- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs b/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs index c2c3505dc1..aa2b614e5c 100644 --- a/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs +++ b/core/embed/rust/src/ui/layout_eckhart/ui_firmware.rs @@ -620,9 +620,24 @@ impl FirmwareUI for UIEckhart { } fn show_group_share_success( - _lines: [TString<'static>; MAX_GROUP_SHARE_LINES], + lines: [TString<'static>; MAX_GROUP_SHARE_LINES], ) -> Result { - Err::, Error>(Error::ValueError(c"not implemented")) + let paragraphs = Paragraph::new(&theme::TEXT_REGULAR, lines[0]) + .into_paragraphs() + .with_placement(LinearPlacement::vertical()); + + let layout = RootComponent::new( + TextScreen::new(paragraphs) + .with_header( + Header::new(TR::words__title_done.into()) + .with_icon(theme::ICON_DONE, theme::GREEN_LIGHT) + .with_text_style(theme::label_title_confirm()), + ) + .with_action_bar(ActionBar::new_single(Button::with_text( + TR::buttons__continue.into(), + ))), + ); + Ok(layout) } fn show_homescreen( diff --git a/core/src/trezor/ui/layouts/eckhart/recovery.py b/core/src/trezor/ui/layouts/eckhart/recovery.py index 410ff53a7d..9df6a4b6fc 100644 --- a/core/src/trezor/ui/layouts/eckhart/recovery.py +++ b/core/src/trezor/ui/layouts/eckhart/recovery.py @@ -87,10 +87,10 @@ async def show_group_share_success(share_index: int, group_index: int) -> None: await raise_if_not_confirmed( trezorui_api.show_group_share_success( lines=[ - TR.recovery__you_have_entered, - TR.recovery__share_num_template.format(share_index + 1), - TR.words__from, - TR.recovery__group_num_template.format(group_index + 1), + f"{TR.recovery__you_have_entered} {TR.recovery__share_num_template.format(share_index + 1)} {TR.words__from} {TR.recovery__group_num_template.format(group_index + 1)}.", + "", + "", + "", ], ), "share_success",