Compare commits
3 Commits
main
...
681809a2a0
| Author | SHA1 | Date | |
|---|---|---|---|
| 681809a2a0 | |||
| 4d4962f330 | |||
| 1c8a94408d |
@@ -8,36 +8,6 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
name: Quality and Bundle Budgets
|
||||
runs-on: gitea-label
|
||||
container:
|
||||
image: cozsweet-act-runner-node24-docker:latest
|
||||
env:
|
||||
NEXT_TELEMETRY_DISABLED: "1"
|
||||
SENTRY_UPLOAD_SOURCEMAPS: "0"
|
||||
|
||||
steps:
|
||||
- name: Skip quality gate for test branch
|
||||
if: ${{ github.ref == 'refs/heads/test' }}
|
||||
run: echo "Quality gate is disabled for the test branch."
|
||||
|
||||
- name: Checkout
|
||||
if: ${{ github.ref != 'refs/heads/test' }}
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
if: ${{ github.ref != 'refs/heads/test' }}
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Run quality checks
|
||||
if: ${{ github.ref != 'refs/heads/test' }}
|
||||
run: pnpm quality
|
||||
|
||||
- name: Enforce bundle budgets
|
||||
if: ${{ github.ref != 'refs/heads/test' }}
|
||||
run: pnpm perf:bundle:check
|
||||
|
||||
publish:
|
||||
name: Build and Push Docker Image
|
||||
needs: quality
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 6.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 19 KiB |
@@ -31,10 +31,7 @@
|
||||
padding:
|
||||
calc(var(--page-padding-y, 20px) + var(--app-safe-top, 0px))
|
||||
calc(var(--page-padding-x, 26px) + var(--app-safe-right, 0px))
|
||||
calc(
|
||||
var(--spacing-md, 12px) + var(--app-safe-bottom, 0px) +
|
||||
var(--app-bottom-nav-height, 64px)
|
||||
)
|
||||
calc(var(--page-padding-y, 20px) + var(--app-safe-bottom, 0px))
|
||||
calc(var(--page-padding-x, 26px) + var(--app-safe-left, 0px));
|
||||
}
|
||||
|
||||
|
||||
@@ -2,29 +2,31 @@
|
||||
|
||||
import { useEffect } from "react";
|
||||
|
||||
import { AppBottomNav, MobileShell } from "@/app/_components/core";
|
||||
import { MobileShell } from "@/app/_components/core";
|
||||
// import { AppBottomNav } from "@/app/_components/core";
|
||||
import { useAppNavigator } from "@/router/use-app-navigator";
|
||||
import {
|
||||
useActiveCharacter,
|
||||
useActiveCharacterRoutes,
|
||||
} from "@/providers/character-provider";
|
||||
import { useAuthState } from "@/stores/auth/auth-context";
|
||||
// import { useAuthState } from "@/stores/auth/auth-context";
|
||||
import { pwaUtil } from "@/utils/pwa";
|
||||
|
||||
import {
|
||||
SplashBackground,
|
||||
SplashButton,
|
||||
SplashContent,
|
||||
SplashLatestMessage,
|
||||
// SplashLatestMessage,
|
||||
SplashLogo,
|
||||
} from "./components";
|
||||
import { useSplashLatestMessage } from "./hooks/use-splash-latest-message";
|
||||
// import { useSplashLatestMessage } from "./hooks/use-splash-latest-message";
|
||||
import styles from "./components/splash-screen.module.css";
|
||||
|
||||
export function SplashScreen() {
|
||||
const navigator = useAppNavigator();
|
||||
const character = useActiveCharacter();
|
||||
const characterRoutes = useActiveCharacterRoutes();
|
||||
/*
|
||||
const authState = useAuthState();
|
||||
const latestMessage = useSplashLatestMessage({
|
||||
characterId: character.id,
|
||||
@@ -32,14 +34,17 @@ export function SplashScreen() {
|
||||
isAuthLoading: authState.isLoading,
|
||||
loginStatus: authState.loginStatus,
|
||||
});
|
||||
*/
|
||||
|
||||
const handleStartChat = () => {
|
||||
navigator.openChat({ replace: true });
|
||||
};
|
||||
|
||||
/*
|
||||
const handleOpenPrivateRoom = () => {
|
||||
navigator.push(characterRoutes.privateRoom, { scroll: false });
|
||||
};
|
||||
*/
|
||||
|
||||
const handleOpenSplash = () => {
|
||||
navigator.push(characterRoutes.splash, { scroll: false });
|
||||
@@ -58,6 +63,7 @@ export function SplashScreen() {
|
||||
<div className={styles.content}>
|
||||
<SplashLogo />
|
||||
<div className={styles.spacer} />
|
||||
{/*
|
||||
<SplashLatestMessage
|
||||
message={latestMessage.message}
|
||||
characterName={character.shortName}
|
||||
@@ -65,6 +71,7 @@ export function SplashScreen() {
|
||||
isLoading={latestMessage.isLoading}
|
||||
onOpenChat={handleStartChat}
|
||||
/>
|
||||
*/}
|
||||
<SplashContent characterName={character.shortName} />
|
||||
<div className={styles.buttonArea}>
|
||||
<SplashButton onStartChat={handleStartChat} />
|
||||
@@ -75,12 +82,14 @@ export function SplashScreen() {
|
||||
24/7 online | Chat | Companion | Heal | Sweet moments
|
||||
</p>
|
||||
</div>
|
||||
{/*
|
||||
<AppBottomNav
|
||||
activeItem="chat"
|
||||
privateRoomLabel={character.copy.privateRoomTitle}
|
||||
onChatClick={handleOpenSplash}
|
||||
onPrivateRoomClick={handleOpenPrivateRoom}
|
||||
/>
|
||||
*/}
|
||||
</div>
|
||||
</MobileShell>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user