Skip to content
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

1487: Allow switching of sorting mode for store list #1560

Merged
merged 5 commits into from
Aug 27, 2024

Conversation

steffenkleinle
Copy link
Member

Short description

Improve sorting for store list by allowing to switch the sorting mod and giving additional information.

Proposed changes

  • Add information about sorting mode to search results
  • Always show FAB to allow switching between sorting mode
  • Display snackbar if permission is rejected

Side effects

None.

Resolved issues

Fixes: #1487.

Copy link
Member Author

@steffenkleinle steffenkleinle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please be critical with this PR, wasn't really sure about some decisions.

)
// Returning a Container() instead of null avoids animations
: Container(),
floatingActionButton: FloatingActionMapBar(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving this check inside of FloatingActionMapBar was necessary to have enough space for the snackbar. Let me know if there are better ways to achieve this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i couldn't reproduce an issue here with old implementation. If the snackbar is overlapping for a short moment i don't see a problem. Maybe you can add a screenshot or video what the problem is here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this, I just get the following error and no snackbar is shown:
image

frontend/lib/search/location_button.dart Outdated Show resolved Hide resolved
Copy link
Contributor

@f1sh1918 f1sh1918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice pr. Works fine 👍
Just added some comments which are minor

frontend/lib/search/location_button.dart Outdated Show resolved Hide resolved
frontend/lib/search/location_button.dart Outdated Show resolved Hide resolved
frontend/lib/search/search_page.dart Outdated Show resolved Hide resolved
frontend/lib/search/search_page.dart Outdated Show resolved Hide resolved
frontend/lib/search/search_page.dart Outdated Show resolved Hide resolved
Copy link
Contributor

@f1sh1918 f1sh1918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done 👍
Just run formatter and its good to go

Copy link
Member

@ztefanie ztefanie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. Works as expected.

@steffenkleinle steffenkleinle merged commit 98389a4 into main Aug 27, 2024
1 check passed
@steffenkleinle steffenkleinle deleted the 1487-store-list-sorting branch August 27, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve sorting store list
3 participants