-
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 add params #1803
Conversation
…workaround to fix display of more actions button
…nd-card-add-params # Conflicts: # frontend/lib/identification/card_detail_view/card_detail_view.dart # frontend/lib/identification/card_detail_view/extend_card_notification.dart # frontend/lib/identification/util/card_info_utils.dart
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.
Interesting I tested this on ios and worked fine even this shouldn't be related to this pr. |
@ztefanie |
String getApplicationUrlWithParameters( | ||
String applicationUrl, | ||
CardInfo cardInfo, | ||
String projectId, | ||
String? applicationUrlQueryKeyName, | ||
String? applicationUrlQueryKeyBirthday, | ||
String? applicationUrlQueryKeyReferenceNumber) { |
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.
String getApplicationUrlWithParameters( | |
String applicationUrl, | |
CardInfo cardInfo, | |
String projectId, | |
String? applicationUrlQueryKeyName, | |
String? applicationUrlQueryKeyBirthday, | |
String? applicationUrlQueryKeyReferenceNumber) { | |
String getApplicationUrlWithParameters(BuildContext context, CardInfo cardInfo) { | |
final applicationUrl = getApplicationUrl(context); | |
final projectId = buildConfig.projectId.production; | |
final applicationUrlQueryKeyName = buildConfig.applicationUrlQueryKeyName; | |
final applicationUrlQueryKeyBirthday = buildConfig.applicationUrlQueryKeyBirthday; | |
final applicationUrlQueryKeyReferenceNumber = buildConfig.applicationUrlQueryKeyReferenceNumber; |
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.
if i change that, we need some linting ignores for null checks, since these values don't exist for all projects
it seems I have the same issue on the current branch. |
ok i will merge recent main when you pr was merged |
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.
Not tested again.
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 had to run yarn tsc --build
once to get administration to pick up the changes in frontend/build-configs. Tested on firefox, works as expected! Thanks for putting time into this, seems like quite a nasty thing...
…test improvements, only add queryParams if card is extendable
30a205f
to
5c1d8b5
Compare
Just added a couple of optional nit-picks, because overall it looks good 👍
The form is still not being filled out for me 🤔 |
Ah, no I haven't. I will be available tomorrow only from 2 pm, so feel free to merge if you want to deploy it earlier, I basically tested everything except that. I believe it should be good to go. |
Short description
As a user i want the forms in the self service portal to be prefilled with my personal information if i click "Karte verlängern" with an existing card
Note
I'm not super happy with this solution, but since we can not generate proper functions from the
frontend/build-configs/index
to thebuildConfig.dart
to provide a function for each project to generate the applicationUrl with (or without) queryParams i didn't find a better solution.I mean we could maybe adjust the build config generation to be able to generate functions with parameters but this means lots of effort.
At least this solution avoids multiple linting ignore that would be needed if we provide a query param key object instead of single string values that can be null. Feel free to suggest a better solution but beware that you should run the buildConfig for all the projects to ensure that nothing breaks.
Proposed changes
Side effects
Testing
Resolved issues
partially fixes: #1430