-
Notifications
You must be signed in to change notification settings - Fork 3
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
1430: Extend card #1772
base: main
Are you sure you want to change the base?
1430: Extend card #1772
Conversation
backend/src/main/kotlin/app/ehrenamtskarte/backend/cards/webservice/schema/CardQueryService.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/cards/webservice/schema/CardQueryService.kt
Outdated
Show resolved
Hide resolved
...tlin/app/ehrenamtskarte/backend/cards/webservice/schema/types/CardVerificationResultModel.kt
Show resolved
Hide resolved
@hauf-toni Edit: I see there is a design for that but it looks like its not implemented? |
@f1sh1918 currently it looks like this, do you think it requires adjustment? (there was a small discussion in the task regarding that)
Yes, I wrote about that in the PR description |
Hm so if you click on "Weitere Aktionen" and click on first Item the link will differ depending on the card can be extended or not? |
That was the idea, yes. Keep the existing menu item (since we have it already, and it says ‘beatragen ODER verlängern’), just add query params if the card is extendable.
It’s not missing, it was intentionally not changed. Because we already have a view for the case when the card has expired and I decided to keep it, to be consistent with other states when card is inactive (card revoked, card not yet valid, etc.) UPD. But I think I need to update the text for the expired card message, because for Koblenz there is no ‘Antrag für Verlängerung’ of course. Will do that. |
fc80287
to
bdac697
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good actually. 👍
I couldn't finish the testing, will continue tomorrow. Just left you some comments
Update:
i think the extension container should have a box shadow too
You may use the flutter standard card widget for that which also brings lots of build in features
https://api.flutter.dev/flutter/material/Card-class.html
frontend/lib/identification/card_detail_view/extend_card_notification.dart
Outdated
Show resolved
Hide resolved
frontend/lib/identification/card_detail_view/extend_card_notification.dart
Outdated
Show resolved
Hide resolved
frontend/lib/identification/card_detail_view/extend_card_notification.dart
Outdated
Show resolved
Hide resolved
frontend/lib/identification/card_detail_view/extend_card_notification.dart
Outdated
Show resolved
Hide resolved
frontend/lib/identification/card_detail_view/extend_card_notification.dart
Outdated
Show resolved
Hide resolved
frontend/lib/identification/card_detail_view/extend_card_notification.dart
Outdated
Show resolved
Hide resolved
frontend/lib/identification/card_detail_view/extend_card_notification.dart
Outdated
Show resolved
Hide resolved
I think I have addressed all the comments, @f1sh1918 pls take a look |
02e5557
to
ceb2d57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine on ios 👍.
Just one small thing commented
If you don't want to wait until the url is final (your other pr) then please create another ticket and add a ticket nr to the todo
), | ||
SizedBox(height: 8), | ||
FilledButton( | ||
style: FilledButton.styleFrom( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the style should be defined in themes.dart
to be able to reuse it easily without adding any styles
Elevation and shape shouldn't change for this CTA-button.
For backgroundColor we can even define color primary as default. If we need a secondary action button we can just override the color then.
@f1sh1918 I was not going to close the current task, untill everything is done. I find it convenient, but maybe we should discuss this topic in the team, if task splitting is more preferable in such cases 🙈 |
Short description
Add the ability to extend the Koblenz Pass in the app.
Design: https://www.figma.com/design/SDoGnXIjCCXpE1tAAJkRVc/entitlementcard?node-id=792-3416&t=kUofvHMqh07BbICq-1
Proposed changes
Not included:
Query params will be added in (or after) 1430: Add query params to card self service form #1749
Side effects
Testing
curl -H "Authorization: Bearer <my_token>" -F file=@import_testdata_local.csv http://0.0.0.0:8000/users/import
CSV content:
Resolved issues
Part of: #1430