Skip to content

StoreTeam: "manage team" switch to toggle list view mode

Chris Oelmueller requested to merge feature/manage-team-switch into master

What does this MR do?

  • client-side sorting of store team list
  • store managers have access to two different sorting functions, which helps them manage their team
    • the second mode displays exact last pickup dates and sorts by them
  • implements some (unused) placeholder UI for the planned store management action panel
  • fix a prop-mutation warning

How confident are you it won't break things if deployed?

Feeling good. There could hypothetically be (client-side) performance implications in huge teams if the sorting gets too complicated, but that should be checked on a real (read: not local) server such as Beta first.

Links to related issues

Follow-up MR for !1499 (merged)

How to test

Browse around the store team list as regular user, and as store manager (or higher).

To see the second mode in action, you might need to generate some actual pickups.
Use the statistics script for this after signing up into slots and waiting for them to pass.

Screenshots

image
image
image

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • joined #foodsharing-beta channel at https://slackin.yunity.org
  • added an entry to CHANGELOG.md (description, merge request link, username(s))
  • Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings
Edited by Chris Oelmueller

Merge request reports