0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/apps/comments-ui/src
Kevin Ansfield 92a8a53a95
Added lazy-loading of admin auth in Comments UI (#19799)
closes ENG-711

When an Admin is authenticated in Comments-UI we only add moderation options to the displayed comments so we don't need to pre-emptively load the `admin-auth` iframe and make the `/ghost/api/admin/users/me/` request until some comments are actually visible.

- used `state.comments.length` property to defer rendering of the admin auth frame until comments have been fetched (after box is scrolled into view) and the count is > 0
2024-03-05 15:57:20 +00:00
..
components Added lazy-loading to comments (#19769) 2024-02-28 12:52:24 +00:00
images/icons Added in a hover state for editng bio 2022-08-08 16:22:46 +01:00
styles Migrated from Webpack to Vite and updated dependencies 2023-06-21 15:28:01 +02:00
utils Switched to default ordering for comments API requests (#19774) 2024-02-28 18:42:02 +00:00
actions.ts Converted Comments-UI App to TypeScript and React hooks (#17760) 2023-08-18 13:30:59 +00:00
App.tsx Added lazy-loading of admin auth in Comments UI (#19799) 2024-03-05 15:57:20 +00:00
AppContext.ts Extended translations beta to comments (#17801) 2023-08-24 10:33:03 +02:00
AuthFrame.tsx Re-enabled general eslint rules in TS config 2023-09-08 13:47:42 +02:00
index.tsx Converted Comments-UI App to TypeScript and React hooks (#17760) 2023-08-18 13:30:59 +00:00
pages.ts Migrated Comments-UI to TypeScript (#17129) 2023-06-27 14:51:37 +02:00
setupTests.ts Migrated Comments-UI to TypeScript (#17129) 2023-06-27 14:51:37 +02:00
typings.d.ts Migrated Comments-UI to TypeScript (#17129) 2023-06-27 14:51:37 +02:00
vite-env.d.ts Migrated Comments-UI to TypeScript (#17129) 2023-06-27 14:51:37 +02:00