MM-57881 Add metric for the amount of time it takes for the RHS to load a thread (#26970)

* 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
Этот коммит содержится в:
Harrison Healey
2024-05-09 13:30:36 -04:00
коммит произвёл GitHub
родитель de3c7ad544
Коммит 099f704d4f
11 изменённых файлов: 72 добавлений и 53 удалений

Просмотреть файл

@@ -19,6 +19,9 @@ const config = {
'utils/src/**/*.{js,jsx,ts,tsx}',
],
coverageReporters: ['lcov', 'text-summary'],
fakeTimers: {
doNotFake: ['performance'],
},
moduleNameMapper: {
'^@mattermost/(components)$': '<rootDir>/../platform/$1/src',
'^@mattermost/(client)$': '<rootDir>/../platform/$1/src',