style(13-03): apply Prettier formatting across repo
Mechanical reformat — no logic changes. 398 files changed, 19125 insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc (singleQuote:true, semi:true, tabWidth:2, trailingComma:all, printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
@@ -11,20 +11,25 @@
|
||||
* - Grid is primary focal point; AppNav is secondary chrome
|
||||
*/
|
||||
|
||||
import { NavLink } from 'react-router'
|
||||
import { CalendarDays, List } from 'lucide-react'
|
||||
import { ColorLegend, type LegendMember } from './ColorLegend.js'
|
||||
import { NavLink } from 'react-router';
|
||||
import { CalendarDays, List } from 'lucide-react';
|
||||
import { ColorLegend, type LegendMember } from './ColorLegend.js';
|
||||
|
||||
interface AppNavProps {
|
||||
members?: LegendMember[]
|
||||
currentUserColor?: string
|
||||
currentUserName?: string
|
||||
members?: LegendMember[];
|
||||
currentUserColor?: string;
|
||||
currentUserName?: string;
|
||||
/** Called when the user avatar is tapped — opens the Settings sheet. */
|
||||
onOpenSettings?: () => void
|
||||
onOpenSettings?: () => void;
|
||||
}
|
||||
|
||||
export function AppNav({ members = [], currentUserColor, currentUserName, onOpenSettings }: AppNavProps) {
|
||||
const isMobile = typeof window !== 'undefined' && window.matchMedia('(max-width: 767px)').matches
|
||||
export function AppNav({
|
||||
members = [],
|
||||
currentUserColor,
|
||||
currentUserName,
|
||||
onOpenSettings,
|
||||
}: AppNavProps) {
|
||||
const isMobile = typeof window !== 'undefined' && window.matchMedia('(max-width: 767px)').matches;
|
||||
|
||||
if (isMobile) {
|
||||
return (
|
||||
@@ -33,7 +38,7 @@ export function AppNav({ members = [], currentUserColor, currentUserName, onOpen
|
||||
currentUserName={currentUserName}
|
||||
onOpenSettings={onOpenSettings}
|
||||
/>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -43,7 +48,7 @@ export function AppNav({ members = [], currentUserColor, currentUserName, onOpen
|
||||
currentUserName={currentUserName}
|
||||
onOpenSettings={onOpenSettings}
|
||||
/>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/** Phone: 48px top bar — app name left, user avatar right */
|
||||
@@ -52,12 +57,12 @@ function PhoneNav({
|
||||
currentUserName,
|
||||
onOpenSettings,
|
||||
}: {
|
||||
currentUserColor?: string
|
||||
currentUserName?: string
|
||||
onOpenSettings?: () => void
|
||||
currentUserColor?: string;
|
||||
currentUserName?: string;
|
||||
onOpenSettings?: () => void;
|
||||
}) {
|
||||
const displayName = currentUserName ?? 'User'
|
||||
const color = currentUserColor ?? 'var(--color-member-0)'
|
||||
const displayName = currentUserName ?? 'User';
|
||||
const color = currentUserColor ?? 'var(--color-member-0)';
|
||||
|
||||
return (
|
||||
<header
|
||||
@@ -115,7 +120,7 @@ function PhoneNav({
|
||||
/>
|
||||
</button>
|
||||
</header>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/** Tablet/Desktop: 240px left sidebar — app name + nav links + color legend + avatar */
|
||||
@@ -125,10 +130,10 @@ function DesktopNav({
|
||||
currentUserName,
|
||||
onOpenSettings,
|
||||
}: {
|
||||
members: LegendMember[]
|
||||
currentUserColor?: string
|
||||
currentUserName?: string
|
||||
onOpenSettings?: () => void
|
||||
members: LegendMember[];
|
||||
currentUserColor?: string;
|
||||
currentUserName?: string;
|
||||
onOpenSettings?: () => void;
|
||||
}) {
|
||||
const navLinkStyle = ({ isActive }: { isActive: boolean }): React.CSSProperties => ({
|
||||
display: 'flex',
|
||||
@@ -140,10 +145,12 @@ function DesktopNav({
|
||||
fontSize: 'var(--text-body-size, 15px)',
|
||||
fontWeight: isActive ? 600 : 400,
|
||||
color: isActive ? 'var(--color-member-0)' : 'var(--color-text-primary)',
|
||||
background: isActive ? 'color-mix(in srgb, var(--color-member-0) 10%, transparent)' : 'transparent',
|
||||
background: isActive
|
||||
? 'color-mix(in srgb, var(--color-member-0) 10%, transparent)'
|
||||
: 'transparent',
|
||||
minHeight: '44px',
|
||||
transition: 'color 0.1s ease, background 0.1s ease',
|
||||
})
|
||||
});
|
||||
|
||||
return (
|
||||
<nav
|
||||
@@ -252,5 +259,5 @@ function DesktopNav({
|
||||
</button>
|
||||
</div>
|
||||
</nav>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user