Skip to content
Snippets Groups Projects
Unverified Commit 7c56e97e authored by Lukas Lechner's avatar Lukas Lechner Committed by GitHub
Browse files

Screen: Vaccination List (EXPOSUREAPP-6734) (#3082)


* Create first version of incomplete vaccination list screen with mock data

* Add UiState for VaccinationListFragment.kt

* Set Toolbar Overlay

* Fine tune fragment_vaccination_list.xml

* Use ModularAdapter

* Add click listener to navigate to detail fragment

* Fix nav_graph issue

* Adjust layouts for night mode

* Fix vaccination card colors

* Fix mock data

* Revert changes in Project.xml

* Add TODO

* Show blue background on complete vaccination status

* Show subtitle on complete vaccination status

* Add VaccinationListCertificateCardItem.kt

* Show Refresh button on complete vaccination status

* Add fragment in vaccination_nav_graph.xml

* Connect Vaccination List ViewModel to Vaccination Repository

* Create new mock data

* Adapt VaccinationTestFragment.kt

* Try to make sonar happy

* Use VaccinationCertificate and ProofCertificate interfaces instead of VaccinationCertificateV1 and ProofCertificateV1

* Adjust title+subtitle alignment

* Adjust text size in vaccination_list_incomplete_top_card.xml

* Use isEligibleForProofCertificate boolean to show 'refresh' or 'register new vaccination' button

* Adjust subtitle color of vaccination_list_certificate_card.xml and vaccination_list_name_card.xml

* Fix package declaration of VaccinationListAdapter

* Update VaccinationListAdapter instead of re-creating a new one each time we observe a uiState change

* Refactor Navigation

* Show sample QR-code

* Add some layout improvements

* Adjust background height for COMPLETE and INCOMPLETE state

* Show both buttons in VaccinationListFragment - Refresh button and register Vaccination button

* Use separate flow to generate qrCode

* Refactor CardItems to be inlined into their ViewHolders

* Ignore onClick listener in equals() and hashCode() of VaccinationListVaccinationCardItem.kt to avoid re-drawings

* Fix Lint

* Fix Detekt

Co-authored-by: default avatarMohamed <mohamed.metwalli@sap.com>
Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
parent 575036cc
No related branches found
No related tags found
No related merge requests found
Showing
with 850 additions and 1 deletion
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment