You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Remove Sites.list() in favour of Sites.Index
* Implement basic sort options widget
@sanne-san pls review 🙏
* Attempt to indicate pinned sites
cc @sanne-san
* Remove Scrivener
* Format
* Update mix.lock
* Tweak sorting and pinning UI
- Moved sorting dropdown to the right of the top bar
- Changed pin icon behaviour to be a quick action button to unpin, and leaving the ellipsis menu always visible
* Add sorting loading state
* Fix pinning tests
* Make CI pass
* Move pin icon to `Icons` module
* Indicate pinned status in CRM
* Store user sort preference; migration to be extracted
* Move @sort_options if we intend to keep it as a module attribute
* Implement feedback
- Change "Most visitors" to "Visitors, high to low" and "Fewest visitors" to "Visitors, low to high" in the sort dropdown.
- Add dedicated styles to Prima dropdown, rather than using button styles directly, as they diverge from button styles in a few ways.
- Add data-sort-trigger attribute to sort dropdown so that loading state only applies to sorting, not to pinning/unpinning.
- Add padding to search form to ensure consistent height with other form elements.
- Ensure dropdown menu is always at least as wide as the trigger button.
- Changed site card hover effect to shadow-md instead of shadow-lg.
* Revert removal of unused css
- These changes weren't supposed to go into this PR
* Fixup tests
* Test no sort order persistence for guests (there's nowhere to store it)
* Update changelog
* Migration: store one map per membership wrt sort preferences
* Use unified sorting preferences object
* Cosmetics
* Lose track of `filter_by_domain` in `Sites.Index`
It's irrelevant to carry over
* Rework index build/pagination options
* Fix typespecs
* Remove unused uri argument
* Avoid passing URI around, maintain uri params instead
* Remove unused assigns
* Use prima's match_trigger_width instead of custom JS override
- Upgrade prima to 0.2.6 and replace the custom Dropdown hook that manually set min-width with the built-in match_trigger_width={true}.
* Skip an iteration
* Update lib/plausible_web/live/sites.ex
Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
* Keep `filter_text` socket assign after all
* Turn sort_options into a list again to avoid undefined ordering
* Use path helpers for :stats
* Fix compilation error
* Use PlausibleWeb.Endpoint to enable path helpers
* Use an embed to store sort preferences
* Restructure index user preference
* Remove unused component attrs
* Remove validate_inclusions covered by Ecto.Enum type
---------
Co-authored-by: Sanne de Vries <sannedv@protonmail.com>
Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
0 commit comments