feat: add home page and refactor workspace entry UI

This commit is contained in:
saturn
2026-03-23 17:45:17 +08:00
parent a6ad11b9c4
commit 4e469074e0
48 changed files with 2970 additions and 453 deletions

View File

@@ -0,0 +1,14 @@
import { describe, expect, it } from 'vitest'
import {
AUTHENTICATED_HOME_PATHNAME,
buildAuthenticatedHomeTarget,
} from '@/lib/home/default-route'
describe('authenticated home default route', () => {
it('uses /home as the only authenticated default pathname', () => {
expect(AUTHENTICATED_HOME_PATHNAME).toBe('/home')
expect(buildAuthenticatedHomeTarget()).toEqual({
pathname: '/home',
})
})
})