You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/test/plausible
Adrian Gruntkowski f464ceae88
Implement pinned sites (#3469)
* Revert "Remove site pins for now"

This reverts commit 5eccf4eaf6.

* Implement basic site pin schema level logic within user specific preferences

* Add vertical ellipsis menu markup

* Implement basic changesets for user preferences

* Implement pin toggling

* Try to fix pin sorting

* Implement pin toggling in LV

* Adjust moduledocs for new schema(s)

* Remove unnecessary `distinct` from query

* Use `button` for pin/unpin action

* Generalize preference setting

* Rename schema and fields for clarity

* Rename `list_type` -> `entry_type`

* Safeguard setting options

* Test `set_option/4` and `toggle_pin/2`

* Add test for listing pinned sites via `Sites.list`

* Disallow pinning sites outside page explicitly

* Test pinning in LV

* Test conditional rendering of site settings in /sites

* Remove unnecessary TODO comment

* Safeguard `Sites.set_option/4` against invalid user/site combo

* Handle pinned sites in dashboard site picker

* Clear flashes upon (un)pinning sites

* Update CHANGELOG

* Prevent blinking of hamburger menu items on first paint

* Highlight hamburger handle on hover in /sites

* Start showing hotkeys in site picker again

* Sort pinned sites in the order they were pinned

* Update sites list order immediately after pin/unpin toggle

* Refactor and split `Sites.list/3`, extracting `Sites.list_with_invitations/3`

* Cap number of pinned sites at 9 per user

* First pass on visual indication of site cards (dis)appearing

* Apply ellipsis gradient+shadow on card hover

* Fix responsive padding of site cards

* Sort by invitations first, pinned sites second and then the rest

* Revert "Apply ellipsis gradient+shadow on card hover"

This reverts commit 0608796612639030ccbb12df639709f78edc1434.

* Apply more subtle hover effect on the ellipsis menu

* Make error and success flash LV boxes use separate component containers

* Promote `pinned_at` in table migration to a column

* Switch logic to using `pinned_at` as a standard schema field

* Refactor `Sites.list*` getting rid of subquery (h/t @ukutaht)

* Remove migration which is already merged upstream

---------

Co-authored-by: Adam Rutkowski <hq@mtod.org>
3 years ago
..
auth Update plans_v4.json with new plans IDs (#3436) 3 years ago
billing Business tier bug smash (#3493) 3 years ago
data_migration Enforce goals unique (#3343) 3 years ago
google Upgrade Erlang/Elixir stack (#3454) 3 years ago
imported Filter out empty entries when listing stats for UTM props (#3339) 3 years ago
ingestion Upgrade Erlang/Elixir stack (#3454) 3 years ago
plugins/api Implement new sites view (#3463) 3 years ago
session Clean up after V2 migration (#2868) 4 years ago
site Implement pinned sites (#3469) 3 years ago
stats Implement new sites view (#3463) 3 years ago
config_test.exs add LOG_FAILED_LOGIN_ATTEMPTS (#2936) 4 years ago
debug_replay_info_test.exs Upgrade Erlang/Elixir stack (#3454) 3 years ago
funnels_test.exs Increase sampling test delta to reduce flakyness 3 years ago
goals_test.exs Update plans_v4.json with new plans IDs (#3436) 3 years ago
http_client_test.exs Upgrade Erlang/Elixir stack (#3454) 3 years ago
mailer_test.exs add MAILER_NAME (#2937) 4 years ago
pagination_test.exs Implement new sites view (#3463) 3 years ago
props_test.exs Update plans_v4.json with new plans IDs (#3436) 3 years ago
purge_test.exs Keep track of native stats start timestamp when retrieving data (#2715) 4 years ago
release_test.exs improve first launch experience for self-hosters (#2357) 4 years ago
sentry_filter_test.exs derive jason encoder for request (#3182) 3 years ago
timezones_test.exs Fix timezone list when time changes (#2268) 4 years ago