* MM-58281 Allow client metrics to be floats and round timestamps
* MM-58281 Fix report version
* Ensure reports can contain a single timestamp
* Round timestamps in unit tests
* configure Loki for local development
Extend our docker compose setup to include Loki (along with promtail), scraping `logs/*.log` to ingest development logs as well as all logs from running containers.
While we're in here, teach Prometheus to scrape metrics from Docker containers too.
* tweak promtail labels
* document extra services in config.mk
* update home.json
We use navigator.sendBeacon to send the new metrics since it's recommended for that, but it doesn't let us set custom headers which means that we can't set the CSRF token header that we'd need to pass that check
* Remove t from components/activity_log_modal
* Remove localizeMessage from components/activity_log_modal
I wanted to do more to simplify the various values we pass around for
icon, title, and text so that we'd just pass around a single "type"
value, but since this logic is weird, I gave up on that to focus on
localizeMessage and t.
* Assure most code dispatches selectPost to open RHS to a thread
* Add measurement of the time it takes to open the RHS
* Reduce unnecessary re-rendering of RhsThread
* Never use Jest's fake timers for the performance API
* Make constants for performance marks and measures
* Add missed constants
* Define rough code for PerformanceReporter
* Create a component to manage the PerformanceReporter
* Start adding tests for PerformanceReporter
* Add test for web vitals reporting
* Update schema to more closely match the API spec
* Collect marks as counters and further update structure of API payload
* Add some outstanding TODOs about the API structure
* Add counter for long tasks
* Add EnableClientMetrics without any System Console UI
* Have PerformanceReporter use EnableClientMetrics
* Have the PerformanceReporter only report results when logged in
* Add test for having PerformanceReporter fall back to fetch
* Stop logging errors for measurements failing
* Remove buffered from observer
* Remove the Mystery Ampersand
* Still record marks with telemetry actions even if telemetry is disabled
* Add timestamps to performance reports
* Reuse the new telemetry code for the old telemetry
* The second half of the last commit
* Use Node performance libraries in all tests
* Set version of PerformanceReport
* Switch to the proper version of EnableClientMetrics
* Remove TODO for unneeded field
* Add user agent and platform detection
* Updated metrics API route
* updated styles to include rounded corners and updated backgrounds/containers
* updated snapshots
* removed background from app bar top
* removed top padding from lhs
* updated name of container to better match the grid name in css
* fixed lint issue with css
* update snapshot
* adjusted padding/margin
* use radius variables
* remove margin and border radius from plabooks for now
* fixed tasklist
* minor tweaks to menus
* add global border variables and use in key places
* fixed grid issues with login page and backstage
* use border variable
* adjust padding in global header
* fixed type issues
* tweaks to spacing
* fixed margin issue on backstage
* fixed padding on global header
* minor tweaks to header and apps bar
* removed background from apps bar
* updates to header and app bar and team icon
* updated more borders and radii to use variables
* fixed style lint issue
* adjust letter spacing on category labels
* fix lint issue
* fixed position of popover
* address UX feedback
* Expose experimental audit log settings to sys console
* Add the rest of the config
* Add check for enterprise sku
* Update string to include a note about being required given another setting
* gofmt
---------
Co-authored-by: Mattermost Build <build@mattermost.com>
* Initial version of make more evident the mattermost edition used
* Updating tests
* Adding i18n strings
* Fixing css property order
* tweaks to badge and use proper MM logo svg
* update snapshot
* update language, tweaks to menu trial block
* fix style lint issue
* tweak letter-spacing
* fix lint
* update language
* Removing trial related info from the main menu, and simplifying showing the license
* Applying proposed changes
* Fixing linter errors
* Fixing tests
* Updating i18n strings
* fixing some styles and a bug
* Fix linter error
* updated login css and fixed lint issue
* Moving to styled components the Free edition badge
* Fixing linter error
* Addressing PR review comments
* Removing old snapshot
* Addressing PR review comments
* Fixing linter errors
---------
Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>