-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
feat: Product page redesign #6262
base: develop
Are you sure you want to change the base?
Conversation
tiny merge conflict @PrimaelQuemerais |
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 will do a second pass on your code, but here's a few suggestions
packages/smooth_app/lib/pages/product/product_page/header/product_tabs.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/product/product_page/header/product_tabs.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/product/product_page/header/product_tabs.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/product/product_page/header/product_tabs.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/product/product_page/header/reorder_bottom_sheet.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/product/product_page/header/reorder_bottom_sheet.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/product/product_page/header/reorder_bottom_sheet.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/product/product_page/header/reorder_bottom_sheet.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/product/product_page/header/reorder_bottom_sheet.dart
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #6262 +/- ##
==========================================
- Coverage 9.54% 6.02% -3.52%
==========================================
Files 325 468 +143
Lines 16411 27482 +11071
==========================================
+ Hits 1567 1657 +90
- Misses 14844 25825 +10981 ☔ View full report in Codecov by Sentry. |
@PrimaelQuemerais @g123k good to merge ? |
Not yet |
label: tab.labelBuilder(context), | ||
value: tab, | ||
); | ||
}).toList(), |
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.
.toList(growable:false)
value: tab, | ||
); | ||
}).toList(), | ||
onTabChanged: (ProductPageTab tab) {}, |
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.
Nothing here?
tabs.insert( | ||
0, | ||
ProductPageTab( | ||
labelBuilder: (BuildContext c) => |
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.
To be consistent with the codebase, please name your variable "context"
|
||
tabs.add( | ||
ProductPageTab( | ||
labelBuilder: (BuildContext c) => knowledgePanelTitle.title, |
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 you don't use the content, you can hide it with _
context, | ||
items: tabs.map((ProductPageTab tab) { | ||
return tab; | ||
}).toList(), |
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.
.toList(growable:false)
Icon( | ||
Icons.drag_handle, | ||
color: SmoothColorsThemeExtension | ||
.defaultValues() |
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.
no
provider.reorder(oldIndex, newIndex); | ||
onReorder(provider.items | ||
.map((_ReorderableItem<T> item) => item.data) | ||
.toList()); |
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.
growable:false
_ReorderableItem({required this.data, this.visible = true}); | ||
|
||
final T data; | ||
bool visible; |
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 you've missed a final
here
SliverAppBar( | ||
floating: false, | ||
pinned: true, | ||
leading: const SizedBox(), |
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.
EMPTY_WIDGET
controller: _tabController, | ||
children: _tabs | ||
.map((ProductPageTab tab) => tab.builder(upToDateProduct)) | ||
.toList(), |
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.
growable:false
@teolemon I would hide tabs behind a dev mode. |
I count at least 3 to 4 tabs, health, environnement, report, possibly for me. Is it not enough ? |
If we want to publish a new release before the upcoming French TV show, the current page is OK (+ new icons). My goal for the past few weeks has been to have a better product for end users, and please don't revert to that state. |
We can put it in dev mode or open beta feature for a while. |
What
This PR introduces a new the layout for the product page (WIP)
Knowledge panels are now grouped in tabs which can be toggled and reordered.
Remaining tasks
Screenshot
Part of