0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/frontend
Paul D'Ambra a2308ebc2a
Allows users to choose whether the events page automatically loads new events (#6033)
* barebones implementation for #3899

Wires up an unlabelled switch with existing functionality. Doesn't provide any persistence of the setting or user feedback for when data is loading. Doesn't highlight new rows

* align content in table config to baseline

* make auto-loading text clickable without resolving page structure

* lift exporting and auto-loading out of table content and a pass through organising the page with grid layout

* note that the fixed filters won't change per logic instance

* never display the column configurator button. to be resolved by #1534

* simplify the labelled switch component

* highlight new rows when they're added to the table

* use styling from variables for labelled switch

* load new events into the table when the toggle is clicked so the human doesn't have to wait

* saves auto-load toggle to URL and loads it from there

* clearer name for temporary, fixed featured toggle

* use clsx for row classes in the EventsTable

* remove use of window in actionToUrl of events table logic

* add a test for unusual input to toParams while looking for the source of a bug

* don't allow input that stops events loading in the table

this is a workaround not a fix

* don't allow input that stops events loading in the table

this is a workaround not a fix

Co-authored-by: Paul D'Ambra <paul@posthog.com>
2021-09-22 10:39:18 +00:00
..
public
src Allows users to choose whether the events page automatically loads new events (#6033) 2021-09-22 10:39:18 +00:00