mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 18:36:15 -08:00
feat: enhance global recent route handling with translation and import phase management
This commit is contained in:
1 parent
f58a5c1290
commit
122a69047c
6 files changed
+83
-1
No files matched your search
@@ -35,6 +35,13 @@ describe('workspace-shell-route.utils', () => {
|
||||
kind: 'global-favorites',
|
||||
})
|
||||
);
|
||||
expect(parseWorkspaceShellRoute('/workspace/global-recent')).toEqual(
|
||||
expect.objectContaining({
|
||||
kind: 'global-recent',
|
||||
searchMode: 'local-filter',
|
||||
usesQuerySearch: true,
|
||||
})
|
||||
);
|
||||
expect(parseWorkspaceShellRoute('/workspace/downloads')).toEqual(
|
||||
expect.objectContaining({
|
||||
kind: 'downloads',
|
||||
|
||||
@@ -7,6 +7,7 @@ export type WorkspaceShellPageKind =
|
||||
| 'dashboard'
|
||||
| 'downloads'
|
||||
| 'global-favorites'
|
||||
| 'global-recent'
|
||||
| 'portal'
|
||||
| 'settings'
|
||||
| 'sources'
|
||||
@@ -184,7 +185,8 @@ function resolveRouteSearchMode(
|
||||
if (
|
||||
kind === 'sources' ||
|
||||
kind === 'downloads' ||
|
||||
kind === 'global-favorites'
|
||||
kind === 'global-favorites' ||
|
||||
kind === 'global-recent'
|
||||
) {
|
||||
return 'local-filter';
|
||||
}
|
||||
@@ -281,6 +283,8 @@ export function parseWorkspaceShellRoute(url: string): WorkspaceShellRoute {
|
||||
? 'settings'
|
||||
: page === 'global-favorites'
|
||||
? 'global-favorites'
|
||||
: page === 'global-recent'
|
||||
? 'global-recent'
|
||||
: page === 'downloads'
|
||||
? 'downloads'
|
||||
: 'unknown';
|
||||
|
||||
Reference in new issue
Block a user