Add product source job resolver
Build, Push and Deploy / build (push) Successful in 7s
Build, Push and Deploy / deploy (push) Successful in 18s

This commit is contained in:
2026-09-13 18:00:35 +08:00
parent 807b1252ad
commit 293e346f0a
19 changed files with 269 additions and 64 deletions
+5 -5
View File
@@ -14,11 +14,11 @@ import type { FocusEvent } from '../types/channel';
import styles from './PublicDisplayPage.module.css';
interface PublicDisplayPageProps {
cloudId: string;
productId: string;
}
export function PublicDisplayPage({ cloudId }: PublicDisplayPageProps) {
const cloudState = useCloud(cloudId);
export function PublicDisplayPage({ productId }: PublicDisplayPageProps) {
const cloudState = useCloud(productId);
const cloud = cloudState.cloud;
const queue = useFocusQueue();
const focus = useWordCloudFocus({
@@ -33,7 +33,7 @@ export function PublicDisplayPage({ cloudId }: PublicDisplayPageProps) {
},
[queue],
);
useWordCloudChannel(cloudId, receiveMessage);
useWordCloudChannel(productId, receiveMessage);
useEffect(() => {
if (!queue.current || focus.phase !== 'idle' || !cloud) {
@@ -81,7 +81,7 @@ export function PublicDisplayPage({ cloudId }: PublicDisplayPageProps) {
layered
/>
<p className={styles.caption}>{cloud.caption}</p>
<QRPanel cloudId={cloudId} />
<QRPanel productId={productId} />
<FullscreenButton />
</main>
);