-
Notifications
You must be signed in to change notification settings - Fork 323
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
Update Deep link validation UI #6544
Conversation
2 Update deep_links_controller.dart new mock
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.
Done with another pass of comments. Fine for this PR since we are already so deep into review, but in the future, please try to break code up into smaller PRs so that is easier to review and iterate upon :) thanks!
required this.tableView, | ||
required this.controller, | ||
}); | ||
final ColumnData<LinkData> domain = DomainColumn(controller); |
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.
This is probably because the type is not specified in the columns
parameter below:
columns: <ColumnData>[
==> columns: <ColumnData<LinkData>>[
and then you should be able to remove the types here
required this.tableView, | ||
required this.controller, | ||
}); | ||
final ColumnData<LinkData> domain = DomainColumn(controller); |
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.
That and FlatTable should have a type too: FlatTable<LinkData>
packages/devtools_app/lib/src/screens/deep_link_validation/deep_link_list_view.dart
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/deep_link_validation/deep_link_list_view.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/deep_link_validation/deep_link_list_view.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/deep_link_validation/deep_links_model.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/deep_link_validation/deep_links_model.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/deep_link_validation/deep_links_model.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/deep_link_validation/validation_details_view.dart
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/deep_link_validation/validation_details_view.dart
Show resolved
Hide resolved
|
||
import '../../shared/analytics/analytics.dart' as ga; | ||
import '../../shared/analytics/constants.dart' as gac; | ||
import '../../shared/config_specific/server/server.dart' as server; | ||
import 'deep_links_model.dart'; | ||
|
||
const String _apiKey = 'AIzaSyDVE6FP3GpwxgS4q8rbS7qaf6cAbxc_elc'; | ||
const String _assetLinksGenerationURL = |
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.
why not use store as URI directly?
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 would probably refactor out most of the http related thing into a file
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.
will do it in next pr as kenzie also mentioned this pr is getting too large
_packageNameKey: applicationId, | ||
_domainsKey: [selectedLink.value!.domain], | ||
// TODO(hangyujin): The fake fingerprints here is just for testing usage, should remove it later. | ||
'supplemental_sha256_cert_fingerprints': [ |
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.
do you know what would happen if not supplied and doesn't have play console project set up? I think most of our customer will use auto sign by play store. They won't be able to provide this finger prints.
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 not supplied and doesn't have play console project set up=> the http response will be error
Added a todo here to handle this error case
if (failedChecks != null) { | ||
for (final Map<String, dynamic> failedCheck in failedChecks) { | ||
switch (failedCheck[_checkNameKey]) { | ||
case 'EXISTENCE': |
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.
should we turn this into const string?
also should probably move these into a file.
} | ||
|
||
enum DomainError { | ||
existence('Domain doesn\'t exist'), |
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.
what about other connectivity errors?
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.
will update them later
packages/devtools_app/test/deep_link_vlidation/deep_links_screen_test.dart
Show resolved
Hide resolved
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.
LGTM, if my concerns are tracked will be addressed in later prs
auto label is removed for flutter/devtools/6544, due to - The status or check suite Dart Code Metrics has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Add notifacation cards, coloum filters, etc
Hooked up with rpc.
Figma: https://www.figma.com/file/5zGvx0fvINUUWsTGZsdAKh/Flutter-deeplinking-in-DevTool?node-id=386%3A57755&mode=dev
Pre-launch Checklist
///
).If you need help, consider asking for help on Discord.