Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: RQES Redesign #50

Merged

Conversation

ckaitatzis
Copy link
Contributor

@ckaitatzis ckaitatzis commented Feb 11, 2025

Description of changes

RQES document signing flow redesign
Issue: #48

Applied UI modifications according to latest design for the document, QTSP and certificate selection flow. Key changes include:

  • OptionsSelection screen was introduced to facilitate selection of QTSP service and certificate for signing a document.
  • OptionsSelectionInteractor was refactored to handle the selection logic.
  • Updated ModalOptionUi and bottom sheet to support icons, action buttons.
  • Enhancements in SelectionOptionUi model to act as a generic UI model carrying selection events.
  • Introduction of MultiRowToolbar to support multi-line titles in ContentScreen.
  • Localization updates with new wordings, imported resources.
  • Unit tests provided with detailed description, for TestOptionsSelectionInteractor and TestOptionsSelectionViewModel, ensuring high coverage, restructuring and removing previous tests.

Additional refinements include adjustments to bottom sheets, updating UI in Success screen, cleanup (removing unused states, localizable keys, unnecessary functions)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other fix (maintenance or house-keeping)
  • Test suite run successfully
  • Added Tests ()

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the readme
  • My changes generate no new warnings
  • I have added unit tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have checked that my views are accessible
  • I have checked that my strings are localized where applicable

…ides selection of qtsp service, certificate and info of the selected document, work in progress.

OptionsSelection screen was created that will allow selecting QTSP and certificate for signing a document. ModalOptionUi was adjusted to support leading and trailing icon. Bottom sheet for qtsp was modified to also include action buttons at the bottom, item selection is applied on done click.
Icons, localized texts and other resources were imported, corrections on unit tests.

Signed-off-by: Christos Kaitatzis <[email protected]>
…teractor,

currentScreenSelectionState value was set in viewmodel to determine state of the screen, when certificate is selected the Continue button will be displayed, adjsutements in bottom sheets shown in QTSP and certificate celection step, wordings set in localizable keys, wip

Signed-off-by: Christos Kaitatzis <[email protected]>
# Conflicts:
#	rqes-ui-sdk/src/main/java/eu/europa/ec/eudi/rqesui/presentation/ui/select_certificate/SelectCertificateScreen.kt
Modifications in SelectionOptionUi model to act as a generic UI option model that can carry an event, using it to define the items for document, qtsp and certificate selection. Equivalent modifications in Success screen, also using now the ContentHeader. Imported WrapImage, WrapText, AppIconAndText, RelyingParty components. LocalizableKey updated with new wordings. Drawables and text resources for content description added.

Signed-off-by: Christos Kaitatzis <[email protected]>
…, corrections in OptionsSelectionViewModel, removed unused localizable keys.

Signed-off-by: Christos Kaitatzis <[email protected]>
As the interactor responsible for qtsp and certificate functionality is now OptionsSelectionInteractor, TestOptionsSelectionInteractor will now contain the test cases placed at TestSelectQtspInteractor and TestSelectCertificateInteractor.
View model tests commented out temporarily.

Signed-off-by: Christos Kaitatzis <[email protected]>
…onsSelection view model, adjustments and improvements in TestSuccessViewModel

Signed-off-by: Christos Kaitatzis <[email protected]>
Call modifieed in OptionsSelectionInteractor to only retrieve selected QTSP and not both file and qtsp as it is not needed at that step.
TestOptionsSelectionViewModel created with tests targeting high coverage and test cases commenting, previous test classes removed.

Signed-off-by: Christos Kaitatzis <[email protected]>
…imports, corrected name of options selection view model test

Signed-off-by: Christos Kaitatzis <[email protected]>
…ent type, removed maxLines on mainText of SelectionItem to avoid hiding info from to user while selecting options

Signed-off-by: Christos Kaitatzis <[email protected]>
…fter a check for content not being null in GenericBaseSheetContent, the two buttons are set to be displayed independently when button text for positive or negative action is not null, to support showing one option also, removed unused function

Signed-off-by: Christos Kaitatzis <[email protected]>
MultiRowToolbar was created in order to place toolbar title in ViewDocument screen at a different row, also supports two lines of text with ellipsis, correction in OptionsSelectionViewModel on the qtspServiceSelectionItem icon tint .

Signed-off-by: Christos Kaitatzis <[email protected]>
@ckaitatzis ckaitatzis added the enhancement New feature or request label Feb 11, 2025
@ckaitatzis ckaitatzis self-assigned this Feb 11, 2025
@ckaitatzis ckaitatzis requested a review from a team as a code owner February 11, 2025 11:30
@stzouvaras stzouvaras requested a review from gstamatop February 11, 2025 12:08
…electToolbar function in ContentScreen should take into consideration the contentErrorConfig properties

Signed-off-by: Christos Kaitatzis <[email protected]>
@stzouvaras stzouvaras linked an issue Feb 13, 2025 that may be closed by this pull request
- OptionsSelectionUiConfig now has a sealed interface to distinguish between its possible states.
- SelectionItem composable reworked. Also, it is no longer used from the Success Screen as well. A new composable was introduced for its purposes.
- ViewDocumentScreen UI adjusted to correctly show its Title.
- Various UI fixes in some composables to be according to the designs.
- Removed some unused files from the project.
- Adjusted unit tests.
@stzouvaras stzouvaras merged commit 849e243 into eu-digital-identity-wallet:main Feb 18, 2025
3 of 4 checks passed
@stzouvaras stzouvaras deleted the feature/rqes_redesign branch February 18, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New UI/UX Design and Flows
3 participants