refactor(frontend): decouple app shell from PrimeNG layout system (#307)
* refactor(layout): decouple shell from PrimeNG * fix(frontend): review fixes for layout decoupling - Rewrite layout service spec to match new API surface - Remove dead ToastModule import from AppLayoutComponent - Add missing type="button" to profile and logout buttons - Add missing i18n keys to all non-English locales * chore(frontend): Layout shell consistency * chore(frontend): shell and routing improvements * chore(frontend): remove stray shimmer effect * chore(frontend): code cleanup * chore(ui): Fix navitem types consistency * chore(frontend): simplify layout structure + imports * chore(frontend): remove empty files * chore(frontend): Menu component cleanup * chore(frontend): remove nav translation layer * chore(frontend): revert stray artwork change * chore(frontend): revert author animation tweak * chore(frontend): review fixes * fix(frontend): restore topbar template after rebase conflict
This commit is contained in:
@@ -32,6 +32,11 @@ describe('app routes', () => {
|
||||
expect(children.find(route => route.path === 'all-books')?.canActivate).toEqual([AuthGuard]);
|
||||
expect(children.find(route => route.path === 'magic-shelf/:magicShelfId/books')?.canActivate).toEqual([AuthGuard]);
|
||||
expect(children.find(route => route.path === 'notebook')?.canActivate).toEqual([AuthGuard]);
|
||||
expect(typeof children.find(route => route.path === 'all-books')?.loadComponent).toBe('function');
|
||||
expect(typeof children.find(route => route.path === 'library/:libraryId/books')?.loadComponent).toBe('function');
|
||||
expect(typeof children.find(route => route.path === 'shelf/:shelfId/books')?.loadComponent).toBe('function');
|
||||
expect(typeof children.find(route => route.path === 'unshelved-books')?.loadComponent).toBe('function');
|
||||
expect(typeof children.find(route => route.path === 'magic-shelf/:magicShelfId/books')?.loadComponent).toBe('function');
|
||||
});
|
||||
|
||||
it('defines guarded lazy routes for metadata, stats, and bookdrop', () => {
|
||||
|
||||
Reference in New Issue
Block a user