Rename Forte to LunarFront, generalize for any small business

Rebrand from Forte (music-store-specific) to LunarFront (any small business):
- Package namespace @forte/* → @lunarfront/*
- Database forte/forte_test → lunarfront/lunarfront_test
- Docker containers, volumes, connection strings
- UI branding, localStorage keys, test emails
- All documentation and planning docs

Generalize music-specific terminology:
- instrumentDescription → itemDescription
- instrumentCount → itemCount
- instrumentType → itemCategory (on service templates)
- New migration 0027_generalize_terminology for column renames
- Seed data updated with generic examples
- RBAC descriptions updated
This commit is contained in:
Ryan Moon
2026-03-30 08:51:54 -05:00
parent 535446696c
commit 9400828f62
84 changed files with 390 additions and 820 deletions

View File

@@ -50,7 +50,7 @@ function expandPermissions(slugs: string[]): Set<string> {
function loadSession(): { token: string; user: User; permissions?: string[] } | null {
try {
const raw = sessionStorage.getItem('forte-auth')
const raw = sessionStorage.getItem('lunarfront-auth')
if (!raw) return null
return JSON.parse(raw)
} catch {
@@ -59,11 +59,11 @@ function loadSession(): { token: string; user: User; permissions?: string[] } |
}
function saveSession(token: string, user: User, permissions?: string[]) {
sessionStorage.setItem('forte-auth', JSON.stringify({ token, user, permissions }))
sessionStorage.setItem('lunarfront-auth', JSON.stringify({ token, user, permissions }))
}
function clearSession() {
sessionStorage.removeItem('forte-auth')
sessionStorage.removeItem('lunarfront-auth')
}
export const useAuthStore = create<AuthState>((set, get) => {

View File

@@ -22,8 +22,8 @@ function apply(mode: Mode, colorTheme: string) {
}
export const useThemeStore = create<ThemeState>((set) => {
const initialMode = (typeof window !== 'undefined' ? localStorage.getItem('forte-mode') as Mode : null) ?? 'system'
const initialColor = (typeof window !== 'undefined' ? localStorage.getItem('forte-color-theme') : null) ?? 'slate'
const initialMode = (typeof window !== 'undefined' ? localStorage.getItem('lunarfront-mode') as Mode : null) ?? 'system'
const initialColor = (typeof window !== 'undefined' ? localStorage.getItem('lunarfront-color-theme') : null) ?? 'slate'
if (typeof window !== 'undefined') {
apply(initialMode, initialColor)
@@ -34,14 +34,14 @@ export const useThemeStore = create<ThemeState>((set) => {
colorTheme: initialColor,
setMode: (mode) => {
localStorage.setItem('forte-mode', mode)
localStorage.setItem('lunarfront-mode', mode)
const colorTheme = useThemeStore.getState().colorTheme
apply(mode, colorTheme)
set({ mode })
},
setColorTheme: (name) => {
localStorage.setItem('forte-color-theme', name)
localStorage.setItem('lunarfront-color-theme', name)
const mode = useThemeStore.getState().mode
apply(mode, name)
set({ colorTheme: name })