mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
[web] analytics for flaky connections (#35916)
* emit connection-restored events * emit post-offline sync success/failure events GitOrigin-RevId: 3fce5f328d726aeb5edf39f14239ef6e5bda2f99
This commit is contained in:
@@ -9,6 +9,7 @@ import { useDsNavStyle } from '@/features/project-list/components/use-is-ds-nav'
|
||||
import { SignOut } from '@phosphor-icons/react'
|
||||
import ThemeToggle from '@/features/project-list/components/sidebar/theme-toggle'
|
||||
import { OfflineDocBackup } from '@/features/ide-react/editor/offline-doc-backup'
|
||||
import { ConnectionOutageTracker } from '@/features/ide-react/editor/connection-outage-tracker'
|
||||
|
||||
export function AccountMenuItems({
|
||||
sessionUser,
|
||||
@@ -66,7 +67,10 @@ export function AccountMenuItems({
|
||||
id={logOutFormId}
|
||||
method="POST"
|
||||
action="/logout"
|
||||
onSubmit={() => OfflineDocBackup.clearAll()}
|
||||
onSubmit={() => {
|
||||
OfflineDocBackup.clearAll()
|
||||
ConnectionOutageTracker.clearAll()
|
||||
}}
|
||||
>
|
||||
<input type="hidden" name="_csrf" value={getMeta('ol-csrfToken')} />
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user