feat: L'Ami Fiduciaire V1.0.0 — full codebase with Story 0.1 complete

Initial commit of the L'Ami Fiduciaire SaaS platform built on Laravel 12,
Vue 3, Inertia.js 2, and Tailwind CSS 4.

Story 0.1 (rename folders to declarations in database) is implemented and
code-reviewed: migration, rollback, and 6 Pest tests all passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-11 23:33:10 +00:00
commit 35545c2a8f
1517 changed files with 246774 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<script setup lang="ts">
import type { HTMLAttributes } from "vue"
import type { TimelineItemData } from "."
import TimelineItem from "./TimelineItem.vue"
import { cn } from "@/lib/utils"
const props = defineProps<{
/** Array of timeline items. When provided, renders TimelineItem for each. */
items?: TimelineItemData[]
class?: HTMLAttributes["class"]
}>()
</script>
<template>
<div
data-slot="timeline"
role="list"
:class="
cn(
'relative flex flex-col [&>[data-slot=timeline-item]:last-child_.timeline-item-connector]:hidden',
props.class,
)
"
>
<template v-if="props.items?.length">
<TimelineItem
v-for="(item, index) in props.items"
:key="index"
:title="item.title"
:date="item.date"
:time="item.time"
:state="item.state ?? 'pending'"
/>
</template>
<slot v-else />
</div>
</template>

View File

@@ -0,0 +1,79 @@
<script setup lang="ts">
import type { HTMLAttributes } from "vue"
import type { TimelineItemVariants } from "."
import { Check, Circle } from "lucide-vue-next"
import { cn } from "@/lib/utils"
import { timelineItemVariants } from "."
const props = withDefaults(
defineProps<{
title: string
date?: string
time?: string
state?: TimelineItemVariants["state"]
class?: HTMLAttributes["class"]
}>(),
{ state: "pending" },
)
</script>
<template>
<div
role="listitem"
data-slot="timeline-item"
:data-state="props.state"
:class="
cn(
'relative flex gap-4 pb-6 last:pb-0',
timelineItemVariants({ state: props.state }),
props.class,
)
"
>
<!-- Connector line (hidden on last item) -->
<div
aria-hidden
class="timeline-item-connector absolute left-[11px] top-6 h-[calc(100%-0.5rem)] w-px bg-border"
/>
<!-- Status indicator -->
<div
:class="
cn(
'relative z-10 flex shrink-0 items-center justify-center rounded-full border-2 transition-colors',
props.state === 'completed' &&
'border-primary bg-primary text-primary-foreground',
props.state === 'pending' && 'border-border bg-background',
props.state === 'current' && 'border-primary bg-primary/10 text-primary',
)
"
:style="{ width: '24px', height: '24px' }"
>
<Check v-if="props.state === 'completed'" class="size-3.5" :stroke-width="3" />
<Circle
v-else
class="size-2.5 fill-current"
stroke="none"
/>
</div>
<!-- Content -->
<div class="flex min-w-0 flex-1 flex-col gap-0.5 pt-0.5">
<div class="flex items-start justify-between gap-4">
<span class="text-sm font-medium leading-tight">
{{ props.title }}
</span>
<span
v-if="props.time"
class="shrink-0 text-xs text-muted-foreground"
>
{{ props.time }}
</span>
</div>
<span v-if="props.date" class="text-xs text-muted-foreground">
{{ props.date }}
</span>
<slot />
</div>
</div>
</template>

View File

@@ -0,0 +1,29 @@
import type { VariantProps } from "class-variance-authority"
import { cva } from "class-variance-authority"
export { default as Timeline } from "./Timeline.vue"
export { default as TimelineItem } from "./TimelineItem.vue"
export const timelineItemVariants = cva("", {
variants: {
state: {
completed: "",
pending: "",
current: "",
},
},
defaultVariants: {
state: "pending",
},
})
export type TimelineItemVariants = VariantProps<typeof timelineItemVariants>
export type TimelineItemData = {
title: string
date?: string
time?: string
state?: TimelineItemVariants["state"]
/** Additional content slots - use with TimelineItemContent for custom content */
content?: string
}