ADD - build in-game admin command center

This commit is contained in:
Leon.Schmidt
2026-08-20 19:51:26 +02:00
parent 36b859cabb
commit 22165d64df
32 changed files with 2676 additions and 26 deletions
+4 -1
View File
@@ -1,6 +1,9 @@
import type { BuiltinPhoneAppId } from '@/types/apps'
type PreviewableBuiltinAppId = Exclude<BuiltinPhoneAppId, 'app-store'>
type PreviewableBuiltinAppId = Exclude<
BuiltinPhoneAppId,
'admin' | 'app-store'
>
const previewModules = import.meta.glob<string>(
'../assets/img/app-previews/*.jpg',
+4 -2
View File
@@ -17,7 +17,8 @@ function escapeRegExp(value: string): string {
describe('App Store preview catalog', () => {
it('contains a real captured screenshot for every built-in store app', () => {
const storeAppIds = PHONE_APPS.filter(
(app) => app.kind !== 'external' && app.id !== 'app-store',
(app) =>
app.kind !== 'external' && app.id !== 'app-store' && !app.adminOnly,
).map((app) => app.id)
expect([...APP_STORE_PREVIEW_IMAGE_IDS].sort()).toEqual(storeAppIds.sort())
@@ -25,7 +26,8 @@ describe('App Store preview catalog', () => {
it('provides specialized preview data for every built-in store app', () => {
const storeAppIds = PHONE_APPS.filter(
(app) => app.kind !== 'external' && app.id !== 'app-store',
(app) =>
app.kind !== 'external' && app.id !== 'app-store' && !app.adminOnly,
).map((app) => app.id)
expect([...PREVIEWABLE_BUILTIN_APP_IDS].sort()).toEqual(
+1 -1
View File
@@ -5,7 +5,7 @@ export type AppStorePreviewVisual = {
surface: string
}
type PreviewableBuiltinAppId = Exclude<BuiltinPhoneAppId, 'app-store'>
type PreviewableBuiltinAppId = Exclude<BuiltinPhoneAppId, 'admin' | 'app-store'>
const APP_STORE_PREVIEW_STYLES = {
citywarn: { accent: '#ff4f5e', surface: '#250e17' },
+1
View File
@@ -98,6 +98,7 @@ const DEFAULT_APP_NOTIFICATIONS: Record<
LaunchablePhoneAppId,
AppNotificationPreferences
> = {
admin: { enabled: true, sounds: true },
phone: { enabled: true, sounds: true },
messages: { enabled: true, sounds: true },
darkchat: { enabled: true, sounds: true },