feat(admin-ui): Phase B frontend — notifications preferences route + UI

This commit is contained in:
Александр Зимин
2026-05-15 14:56:48 +00:00
parent 300fd12d6c
commit e2fc3bcbe0
7 changed files with 332 additions and 4 deletions
+22
View File
@@ -22,6 +22,7 @@ import { Route as WebhooksIndexRouteImport } from './routes/webhooks.index'
import { Route as DictionariesIndexRouteImport } from './routes/dictionaries.index'
import { Route as WebhooksIdRouteImport } from './routes/webhooks.$id'
import { Route as DictionariesNameRouteImport } from './routes/dictionaries.$name'
import { Route as MeNotificationsPreferencesRouteImport } from './routes/me.notifications.preferences'
const WebhooksRoute = WebhooksRouteImport.update({
id: '/webhooks',
@@ -88,6 +89,12 @@ const DictionariesNameRoute = DictionariesNameRouteImport.update({
path: '/$name',
getParentRoute: () => DictionariesRoute,
} as any)
const MeNotificationsPreferencesRoute =
MeNotificationsPreferencesRouteImport.update({
id: '/me/notifications/preferences',
path: '/me/notifications/preferences',
getParentRoute: () => rootRouteImport,
} as any)
export interface FileRoutesByFullPath {
'/': typeof IndexRoute
@@ -103,6 +110,7 @@ export interface FileRoutesByFullPath {
'/webhooks/$id': typeof WebhooksIdRoute
'/dictionaries/': typeof DictionariesIndexRoute
'/webhooks/': typeof WebhooksIndexRoute
'/me/notifications/preferences': typeof MeNotificationsPreferencesRoute
}
export interface FileRoutesByTo {
'/': typeof IndexRoute
@@ -116,6 +124,7 @@ export interface FileRoutesByTo {
'/webhooks/$id': typeof WebhooksIdRoute
'/dictionaries': typeof DictionariesIndexRoute
'/webhooks': typeof WebhooksIndexRoute
'/me/notifications/preferences': typeof MeNotificationsPreferencesRoute
}
export interface FileRoutesById {
__root__: typeof rootRouteImport
@@ -132,6 +141,7 @@ export interface FileRoutesById {
'/webhooks/$id': typeof WebhooksIdRoute
'/dictionaries/': typeof DictionariesIndexRoute
'/webhooks/': typeof WebhooksIndexRoute
'/me/notifications/preferences': typeof MeNotificationsPreferencesRoute
}
export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
@@ -149,6 +159,7 @@ export interface FileRouteTypes {
| '/webhooks/$id'
| '/dictionaries/'
| '/webhooks/'
| '/me/notifications/preferences'
fileRoutesByTo: FileRoutesByTo
to:
| '/'
@@ -162,6 +173,7 @@ export interface FileRouteTypes {
| '/webhooks/$id'
| '/dictionaries'
| '/webhooks'
| '/me/notifications/preferences'
id:
| '__root__'
| '/'
@@ -177,6 +189,7 @@ export interface FileRouteTypes {
| '/webhooks/$id'
| '/dictionaries/'
| '/webhooks/'
| '/me/notifications/preferences'
fileRoutesById: FileRoutesById
}
export interface RootRouteChildren {
@@ -189,6 +202,7 @@ export interface RootRouteChildren {
ReviewsRoute: typeof ReviewsRoute
SearchRoute: typeof SearchRoute
WebhooksRoute: typeof WebhooksRouteWithChildren
MeNotificationsPreferencesRoute: typeof MeNotificationsPreferencesRoute
}
declare module '@tanstack/react-router' {
@@ -284,6 +298,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof DictionariesNameRouteImport
parentRoute: typeof DictionariesRoute
}
'/me/notifications/preferences': {
id: '/me/notifications/preferences'
path: '/me/notifications/preferences'
fullPath: '/me/notifications/preferences'
preLoaderRoute: typeof MeNotificationsPreferencesRouteImport
parentRoute: typeof rootRouteImport
}
}
}
@@ -325,6 +346,7 @@ const rootRouteChildren: RootRouteChildren = {
ReviewsRoute: ReviewsRoute,
SearchRoute: SearchRoute,
WebhooksRoute: WebhooksRouteWithChildren,
MeNotificationsPreferencesRoute: MeNotificationsPreferencesRoute,
}
export const routeTree = rootRouteImport
._addFileChildren(rootRouteChildren)