From 0b200bfe5dd3aadbdc7c6b45f8cb4072b73febbd Mon Sep 17 00:00:00 2001 From: wass08 Date: Mon, 16 Feb 2026 14:11:40 +0900 Subject: [PATCH] hub --- apps/editor/components/editor/index.tsx | 4 --- apps/editor/components/pascal-radio.tsx | 4 +-- .../components/ui/sidebar/icon-rail.tsx | 24 +++++++++++++ .../community/components/community-hub.tsx | 35 +++++++++++-------- apps/editor/public/pascal-logo-full.svg | 11 ++++++ apps/editor/public/pascal-logo-shape.svg | 5 +++ apps/editor/public/pascal.svg | 8 +++++ 7 files changed, 71 insertions(+), 20 deletions(-) create mode 100644 apps/editor/public/pascal-logo-full.svg create mode 100644 apps/editor/public/pascal-logo-shape.svg create mode 100644 apps/editor/public/pascal.svg diff --git a/apps/editor/components/editor/index.tsx b/apps/editor/components/editor/index.tsx index a4905ea0..680722c3 100644 --- a/apps/editor/components/editor/index.tsx +++ b/apps/editor/components/editor/index.tsx @@ -10,7 +10,6 @@ import { useAuth } from '@/features/community/lib/auth/hooks' import { ZoneSystem } from '../systems/zone/zone-system' import { ToolManager } from '../tools/tool-manager' import { ActionMenu } from '../ui/action-menu' -import { CloudSaveButton } from '@/features/community/components/cloud-save-button' import { PascalRadio } from '../pascal-radio' import { PanelManager } from '../ui/panels/panel-manager' import { HelperManager } from '../ui/helpers/helper-manager' @@ -60,9 +59,6 @@ export default function Editor({ propertyId }: EditorProps) {
-
- -
diff --git a/apps/editor/components/pascal-radio.tsx b/apps/editor/components/pascal-radio.tsx index 25bfaeac..f02dbf9b 100644 --- a/apps/editor/components/pascal-radio.tsx +++ b/apps/editor/components/pascal-radio.tsx @@ -108,7 +108,7 @@ export function PascalRadio() { soundRef.current?.unload() } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [handleNext, currentTrack.file]) + }, [handleNext, currentTrack.file, muted, isPlaying, effectiveVolume]) // Update volume when settings change useEffect(() => { @@ -163,7 +163,7 @@ export function PascalRadio() { return (
- Pascal Radio + Radio Pascal
+ {/* Pascal Logo - Link to Hub */} + + + + Pascal + + + Back to Hub + + + {/* Divider */} +
+ {panels.map((panel) => { const Icon = panel.icon; const isActive = activePanel === panel.id; diff --git a/apps/editor/features/community/components/community-hub.tsx b/apps/editor/features/community/components/community-hub.tsx index 00954bc4..2841f3f8 100644 --- a/apps/editor/features/community/components/community-hub.tsx +++ b/apps/editor/features/community/components/community-hub.tsx @@ -1,17 +1,18 @@ 'use client' +import Image from 'next/image' +import { useRouter } from 'next/navigation' import { useEffect, useState } from 'react' import { useAuth } from '../lib/auth/hooks' -import { useRouter } from 'next/navigation' -import { SignInDialog } from './sign-in-dialog' -import { PropertyGrid } from './property-grid' -import { CreatePropertyButton } from './create-property-button' -import { ProfileDropdown } from './profile-dropdown' -import { NewPropertyDialog } from './new-property-dialog' -import { getPublicProperties, getUserProperties } from '../lib/properties/actions' -import { getLocalProperties, createLocalProperty } from '../lib/local-storage/property-store' -import type { Property } from '../lib/properties/types' import type { LocalProperty } from '../lib/local-storage/property-store' +import { createLocalProperty, getLocalProperties } from '../lib/local-storage/property-store' +import { getPublicProperties, getUserProperties } from '../lib/properties/actions' +import type { Property } from '../lib/properties/types' +import { CreatePropertyButton } from './create-property-button' +import { NewPropertyDialog } from './new-property-dialog' +import { ProfileDropdown } from './profile-dropdown' +import { PropertyGrid } from './property-grid' +import { SignInDialog } from './sign-in-dialog' export default function CommunityHub() { const { isAuthenticated, isLoading: authLoading, user } = useAuth() @@ -94,7 +95,6 @@ export default function CommunityHub() { router.push(`/viewer/${propertyId}`) } - if (authLoading || loading) { return (
@@ -109,7 +109,16 @@ export default function CommunityHub() {
-

Hub

+
+ Pascal +

Hub

+
{!isAuthenticated ? (