g-but and Claude Sonnet 4.6
d914779af8
feat(portal): fix megamenu hover + add engagement copy throughout
...
Megamenu fix: move gap inside panel as padding-top so hover zone is
continuous — mouse no longer exits .megaItem when crossing to the panel.
Wrap panel contents in .megaPanelInner for visual styling separation.
Portal engagement improvements:
- Check-in: streak computation + motivating post-save success panel
- Dashboard: "today done" state, richer empty-state copy, better goal
progress labels, improved consultation CTA framing
- Assessments: richer saved banner with next-step framing, retake hint
- Profile bar: context-sensitive copy based on completion %
- Bookings: better empty state, confirmation message, contextual form
- Messages: better empty state and form framing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-21 11:29:31 +02:00
g-but and Claude Sonnet 4.6
5da535f02a
feat(nav): megamenu with hover panels for Programmes, Approach, Diagnostics
...
Replace flat anchor links with CSS-hover driven megamenu:
- PROGRAMMES: card panel with 3 programmes (label + description)
- APPROACH: list dropdown with 4 methodology items
- DIAGNOSTICS: list dropdown with 3 diagnostic options
- LONGEVITY / PRICING / TEAM: simple anchor links unchanged
- Smooth opacity+translate animation, decorative arrow, keyboard accessible
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-20 20:27:34 +02:00
g-but and Claude Sonnet 4.6
785b923e25
feat(ui): portal nav overhaul, clinical goals UI, check-in, accessibility + readability fixes
...
Navigation & layout:
- PortalNav: icon sidebar with 4 groups, active state with teal left border
- BottomNav: fixed mobile bottom tab bar (5 items, safe-area-inset-bottom)
- NavBreadcrumb: route-aware header breadcrumb
- UserDropdown: escape key close, aria-expanded ring, quick check-in link
Portal features:
- Check-in page: 1-10 scale for mood/energy/sleep/stress
- PatientGoalsCard: admin goal CRUD with progress bars
- Dashboard: active clinical goals section
- ProfileCompletenessBar uses profileCompletenessColor()
- Admin patient detail decomposed into card components
Accessibility & readability:
- html font-size 112% - raises all rem values ~12% site-wide
- --muted darkened to #71727c (WCAG AA 4.5:1 on white)
- Hero eyebrow 0.6rem to 0.72rem, pill 0.58 to 0.68rem, sub contrast fixed
- Nav links 0.68 to 0.75rem
- LanguageSwitcher: pill container, mobile visible (was hidden), 0.62 to 0.72rem
- scaleBtn min-height 2.75rem (44px touch target)
Hero fix: .heroR justify-content flex-end (was center) aligns both columns
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-15 11:00:05 +02:00
g-but and Claude Sonnet 4.6
e55651b4b2
feat(i18n): full Swiss multilingual support (de/fr/it/en)
...
Infrastructure
- next-intl v4: routing config, request config, createNextIntlPlugin
- proxy.ts: merged next-intl middleware with existing auth guard — portal/admin
paths bypass locale routing; marketing+auth go through intlMiddleware
- lib/i18n/navigation.ts: locale-aware Link, useRouter, usePathname
Routing
- app/[locale]/(auth)/: login, register, forgot-password, reset-password
fully translated, locale-prefixed (e.g. /de/login, /fr/login)
- app/[locale]/page.tsx: marketing landing under each locale
- app/layout.tsx: lang attribute from NEXT_LOCALE cookie
- app/page.tsx: safety-net redirect to /de
Translation files
- messages/{de,fr,it,en}.json: 254 keys across 15 sections — nav, hero,
impactStats, pillars, approach, pathway, diagnostics, sylClock,
psychedelicReadiness, addiction, programs, team, cta, footer, auth
- de: formal Sie, Swiss Hochdeutsch (no ß → ss)
- fr: formal vous, Swiss French register
- it: formal Lei, standard Italian for Ticino audience
- Protected from translation: brand names, prices, citations, medical acronyms
Components
- All 14 section components → async server components using getTranslations()
- Config arrays reduced to structural/non-translatable data (icons, prices,
featured flags, step numbers, initials)
- Text content via t.raw() for arrays, t() for scalars
- Nav: useTranslations + LanguageSwitcher + locale-aware Link
- Auth pages: useTranslations replacing all hardcoded strings
- LanguageSwitcher: DE/FR/IT/EN pill buttons, hides on mobile
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-14 16:31:40 +02:00
g-but and Claude Sonnet 4.6
2a89ecfadb
feat(ux): auth-aware nav, user dropdown, unified header pattern
...
- Nav: shows "Sign in" + CTA when logged out, "Dashboard →" when logged in
(useSession, collapses both on mobile)
- UserDropdown: initials avatar in portal/admin header; opens on click with
name, email, Profile link, Admin Panel link (admin only), Sign out
- Portal & admin layouts: sidebar holds only nav; header bar (56px, sticky)
holds UserDropdown — same pattern in both route groups
- Auth layout: replaced split-panel with centered card (max-width 420px),
cleaner logo-first flow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-14 15:57:37 +02:00
g-but and Claude Sonnet 4.6
cf80f2b756
feat: OG image, logo link, scroll lock, final polish
...
- app/opengraph-image.tsx: dynamic branded OG image (edge ImageResponse)
dark ink bg, teal accent, logo, tagline, specialty pills
- metadata: metadataBase set to SITE_URL (resolves OG image URL warning)
- Nav: logo wrapped in Next.js Link (home link + aria-label)
- Assessment: body scroll lock on mount/unmount (overflow hidden)
- Diagnostics: sec-title div → h2 (last remaining semantic heading fix)
- globals.css: #fff → var(--white) in sec-title-light utility class
- CLAUDE.md: architecture section updated (CSS modules, Assessment/
directory, accurate SSOT table)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-13 16:02:01 +02:00
g-but and Claude Sonnet 4.6
da5b239a9e
fix(assessment): state reset bug, a11y, keyboard nav + seo + code quality
...
Batch 1 — Bug fixes:
- Assessment conditionally mounted (eliminates stale state on reopen)
- Next button uses `disabled` attribute instead of removing onClick
Batch 2 — Accessibility:
- role="dialog", aria-modal, aria-labelledby on overlay
- aria-label="Close assessment" on close button
- aria-live/aria-atomic on progress region
- aria-label + aria-pressed on answer buttons
- Arrow key + Enter keyboard navigation for answers
- :focus-visible on all interactive elements (teal outline)
- :disabled style on back button
- .ovDims grid: repeat(3,1fr) → repeat(auto-fit, minmax(80px,1fr))
Batch 3 — SEO:
- OG + Twitter Card metadata in layout.tsx
- JSON-LD MedicalBusiness schema (uses lib/config/company.ts SSOT)
- canonical URL, robots meta
- app/sitemap.ts (Next.js route)
- public/robots.txt
Batch 4 — Code quality:
- Removed unused deps: clsx, lucide-react, tailwind-merge
- All inline style={{}} props moved to CSS modules or global utilities
- semantic h1 (Hero title) + h2 (all section titles) replacing divs
- type="button" on all non-submit buttons
- Footer mobile responsive CSS
Batch 5 — Design tokens:
- --white and --footer-bg tokens added to globals.css
- All #fff → var(--white) in CSS module files
- .sec-title-light, .eyebrow-gold, .section-header, .sec-title-center,
.sec-sub-mt utility classes added to globals.css
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-13 15:04:40 +02:00
g-but and Claude Sonnet 4.6
97d838e69e
refactor: migrate all component styles to CSS modules
...
globals.css reduced from 1625 → 101 lines — now contains only design
tokens, base resets, and shared utilities (section-inner, eyebrow,
sec-title, hr-rule, tags). All component-specific CSS extracted to
co-located .module.css files. Assessment.tsx split into Assessment/
directory (index.tsx, ResultsScreen.tsx, Assessment.module.css).
New Logo component added.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-13 13:46:47 +02:00