mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 17:39:40 +02:00
## New Features ### Network Graph Visualization (Contacts, Calendar, Todo) - D3.js force simulation for physics-based layout - Zoom & pan with mouse/touchpad - Keyboard shortcuts: +/- zoom, 0 reset, Esc deselect, / search, F focus - Filtering by tags, company/location/project, connection strength - Shared components in @manacore/shared-ui ### Central Tags API (mana-core-auth) - CRUD endpoints for tags - Schema: tags table with userId, name, color, app - Shared tag components in @manacore/shared-ui ### Custom Themes System - Theme editor with live preview and color picker - Community theme gallery - Theme sharing (public, unlisted, private) - Backend API in mana-core-auth ### Todo App Extensions - Glass-pill design for task input and items - Settings page with 20+ preferences - Task edit modal with inline editing - Statistics page with visualizations - PWA support with offline capabilities - Multiple kanban boards ### Contacts App Features - Duplicate detection - Photo upload - Batch operations - Enhanced favorites page with multiple view modes - Alphabet view improvements - Search modal ### Help System - @manacore/shared-help-content - @manacore/shared-help-ui - @manacore/shared-help-types ### Other Features - Themes page for all apps - Referral system frontend - CommandBar (global search) - Skeleton loaders - Settings page improvements ## Bug Fixes - Network graph simulation initialization - Database schema TEXT for user_id columns (Better Auth compatibility) - Various styling fixes ## Documentation - Daily report for 2025-12-10 - CI/CD deployment guide 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
118 lines
2.3 KiB
Svelte
118 lines
2.3 KiB
Svelte
<script lang="ts">
|
|
import type { Snippet } from 'svelte';
|
|
|
|
interface Props {
|
|
/** Section title */
|
|
title?: string;
|
|
/** Optional icon (Snippet for flexibility) */
|
|
icon?: Snippet;
|
|
/** Additional CSS classes */
|
|
class?: string;
|
|
/** Content (SettingsCard components) */
|
|
children: Snippet;
|
|
}
|
|
|
|
let { title, icon, class: className = '', children }: Props = $props();
|
|
|
|
// Generate a slug from title for TOC navigation
|
|
const sectionId =
|
|
title
|
|
?.toLowerCase()
|
|
.replace(/[^a-z0-9]+/g, '-')
|
|
.replace(/(^-|-$)/g, '') || '';
|
|
</script>
|
|
|
|
<section class="settings-section {className}" data-settings-section={sectionId}>
|
|
{#if title}
|
|
<header class="section-header-wrapper">
|
|
<div class="section-header-pill">
|
|
{#if icon}
|
|
<span class="section-icon">
|
|
{@render icon()}
|
|
</span>
|
|
{/if}
|
|
<h2 class="section-title">
|
|
{title}
|
|
</h2>
|
|
</div>
|
|
</header>
|
|
{/if}
|
|
|
|
<div class="section-content">
|
|
{@render children()}
|
|
</div>
|
|
</section>
|
|
|
|
<style>
|
|
.settings-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.section-header-wrapper {
|
|
position: sticky;
|
|
top: 70px;
|
|
z-index: 20;
|
|
padding: 0.5rem 0;
|
|
}
|
|
|
|
.section-header-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 9999px;
|
|
font-size: 0.9375rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
background: rgba(255, 255, 255, 0.85);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
box-shadow:
|
|
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
color: #374151;
|
|
}
|
|
|
|
:global(.dark) .section-header-pill {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
color: #f3f4f6;
|
|
}
|
|
|
|
.section-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
color: hsl(var(--primary));
|
|
}
|
|
|
|
.section-icon :global(svg) {
|
|
width: 1.125rem;
|
|
height: 1.125rem;
|
|
}
|
|
|
|
.section-title {
|
|
margin: 0;
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
color: inherit;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.section-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.section-header-wrapper {
|
|
top: 80px;
|
|
}
|
|
}
|
|
</style>
|