Compare commits

...

130 Commits

Author SHA1 Message Date
Renovate Bot
6dd213709e Update dependency autoprefixer to v10.4.21 2025-03-09 16:44:26 +00:00
9d90f4b073 Merge pull request 'Update dependency @playwright/test to v1.51.0' () from renovate/playwright-test-1.x-lockfile into main
Reviewed-on: 
2025-03-09 00:24:50 +00:00
Renovate Bot
7eb5ff8392 Update dependency @playwright/test to v1.51.0 2025-03-08 03:04:29 +00:00
Renovate Bot
73b42d4850 Update pnpm to v9.15.7 2025-03-07 03:06:20 +00:00
Renovate Bot
aae8e2191d Update dependency node to v23.9.0 2025-03-06 03:10:40 +00:00
Renovate Bot
54b7e118f8 Update dependency next to v15.2.1 2025-03-05 03:08:39 +00:00
Renovate Bot
17e1869c9f Update dependency @types/node to v22.13.9 2025-03-04 03:07:14 +00:00
Renovate Bot
31f480c74e Update pnpm to v9.15.6 2025-03-03 03:08:58 +00:00
Renovate Bot
4c03b428b4 Update dependency postcss to v8.5.3 2025-03-02 03:08:04 +00:00
Renovate Bot
cda483d6f7 Update dependency typescript to v5.8.2 2025-03-01 03:08:48 +00:00
Renovate Bot
cffb4e1c4a Update dependency uuid to v11.1.0 2025-02-20 03:12:42 +00:00
Renovate Bot
fa904b5de2 Update dependency node to v23.8.0 2025-02-19 03:11:38 +00:00
Renovate Bot
cff2c5ddc2 Update pnpm to v9.15.5 2025-02-18 03:11:39 +00:00
Renovate Bot
6ed957c4e5 Update dependency zod to v3.24.2 2025-02-17 03:12:57 +00:00
Renovate Bot
38d75ce80d Update dependency @types/node to v22.13.4 2025-02-16 03:13:18 +00:00
Renovate Bot
61077bb11e Update dependency next to v15.1.7 2025-02-12 03:08:42 +00:00
Renovate Bot
95e4949e1d Update dependency postcss to v8.5.2 2025-02-11 03:05:44 +00:00
Renovate Bot
c77a1cfbba Update dependency @types/node to v22.13.1 2025-02-04 03:06:50 +00:00
Renovate Bot
dc499893b3 Update dependency @types/node to v22.13.0 2025-02-02 03:08:54 +00:00
Renovate Bot
c835744663 Update dependency @playwright/test to v1.50.1 2025-02-01 03:06:39 +00:00
Renovate Bot
3892e5c885 Update dependency node to v23.7.0 2025-01-31 03:03:44 +00:00
Renovate Bot
d8bc79e755 Update dependency @types/node to v22.12.0 2025-01-28 03:07:42 +00:00
Renovate Bot
4b219e922d Update dependency primereact to v10.9.2 2025-01-27 03:05:52 +00:00
9a2ce5b654 Merge pull request 'Simulations life cycle improvements' () from mark-expired-simulations into main
Reviewed-on: 
2025-01-26 13:07:58 +00:00
0d1c46a349 Fix redundant class definitions 2025-01-26 13:47:17 +01:00
157401bae5 Display a toast message after successfully creating a simulation 2025-01-26 13:33:35 +01:00
bf7e871a1b Display a button to create new simulations 2025-01-26 13:21:23 +01:00
e597b4fc00 Mark expired rows with red background 2025-01-26 13:09:31 +01:00
53a2752964 Remove references to unsupported dark theme 2025-01-26 13:06:29 +01:00
1184a529cf Display an icon indicating whether a simulation is still valid 2025-01-26 13:05:32 +01:00
Renovate Bot
58962e2f48 Update dependency next to v15.1.6 2025-01-25 03:10:32 +00:00
Renovate Bot
b8f878a77a Update dependency @playwright/test to v1.50.0 2025-01-24 03:58:22 +00:00
Renovate Bot
2c28b80e23 Update dependency @types/node to v22.10.10 2025-01-24 03:07:25 +00:00
Renovate Bot
2b550aa60c Update dependency node to v23.6.1 2025-01-22 03:04:42 +00:00
Renovate Bot
c691359356 Update dependency postcss to v8.5.1 2025-01-16 04:07:16 +00:00
Renovate Bot
4e5202bdba Update dependency @types/node to v22.10.7 2025-01-16 03:07:47 +00:00
Renovate Bot
cdf688e8af Update pnpm to v9.15.4 2025-01-14 03:21:43 +00:00
Renovate Bot
46a686f578 Update dependency @types/node to v22.10.6 2025-01-14 03:05:07 +00:00
5c2249621d Merge pull request 'Update copyright assignment to cover 2025 and include all contributors' () from copyright-2025 into main
Reviewed-on: 
2025-01-13 20:43:00 +00:00
501bb3a81a Update copyright assignment to cover 2025 and include all contributors 2025-01-13 21:36:52 +01:00
69f6fcbebe Merge pull request 'Define a button to reset the affinities of all groups' () from reset-all-affinities into main
Reviewed-on: 
2025-01-13 20:31:56 +00:00
5d7c71b9ab Define a button to reset the affinities of all groups 2025-01-13 21:29:24 +01:00
0c05cf7661 Merge pull request 'Prevent duplicate groups in the tree list' () from fix-dup-groups into main
Reviewed-on: 
2025-01-12 22:17:27 +00:00
f0e6ff9425 Prevent duplicate groups in the tree list 2025-01-12 23:14:50 +01:00
20bd7f5983 Merge pull request 'Update dependency @tailwindcss/forms to v0.5.10' () from renovate/tailwindcss-forms-0.x-lockfile into main
Reviewed-on: 
2025-01-12 21:47:37 +00:00
52902ff2ba Merge pull request 'Define a button to load the default affinities of a group' () from affinity-reset into main
Reviewed-on: 
2025-01-12 21:27:56 +00:00
c233cb60de Define a button to load the default affinities of a group 2025-01-12 20:54:41 +01:00
Renovate Bot
44ba54db95 Update dependency @tailwindcss/forms to v0.5.10 2025-01-11 03:11:24 +00:00
Renovate Bot
be4f9caec7 Update dependency uuid to v11.0.5 2025-01-10 03:05:58 +00:00
Renovate Bot
190118a0d1 Update dependency node to v23.6.0 2025-01-09 04:13:52 +00:00
Renovate Bot
862d1f85af Update dependency typescript to v5.7.3 2025-01-09 03:05:58 +00:00
Renovate Bot
42d2b7091b Update dependency next to v15.1.4 2025-01-08 03:04:40 +00:00
Renovate Bot
7024a9ca11 Update pnpm to v9.15.3 2025-01-06 03:52:48 +00:00
Renovate Bot
5951440efb Update dependency uuid to v11.0.4 2025-01-06 03:05:06 +00:00
Renovate Bot
2cdf8aca58 Update dependency @types/node to v22.10.5 2025-01-04 03:05:49 +00:00
Renovate Bot
82ebaea275 Update dependency primereact to v10.9.1 2025-01-03 03:28:21 +00:00
Renovate Bot
ff406c35ec Update dependency @types/node to v22.10.4 2025-01-03 03:05:07 +00:00
Renovate Bot
23901834bc Update dependency @types/node to v22.10.3 2025-01-01 03:04:48 +00:00
f8a6f4d245 Merge pull request 'Push to the remote registry only on the main branch' () from push-only-main into main
Reviewed-on: 
2024-12-29 12:22:27 +00:00
5dabecc9ed Update job name to be consistent with other jobs 2024-12-29 13:16:46 +01:00
b3dc01bbb5 Build nginx image on all branches 2024-12-29 13:14:32 +01:00
2ded8676f4 Push to the remote registry only on the main branch 2024-12-29 13:13:44 +01:00
1db83a6004 Merge pull request 'Optimize image builds by caching intermediate layers' () from fix-docker-build into main
Reviewed-on: 
2024-12-29 12:11:51 +00:00
1269a1a56f Run docker images only on the main branch 2024-12-29 13:10:58 +01:00
3e0fb208e2 Fix stage name and add additional stage 2024-12-29 11:37:11 +01:00
0594bf9456 Build and cache the intermediate stages 2024-12-29 11:34:12 +01:00
36c9acee51 Fix location of cache-from in Docker build 2024-12-29 11:28:36 +01:00
Renovate Bot
b799a052a8 Update pnpm to v9.15.2 2024-12-29 01:15:16 +00:00
Renovate Bot
7a402d81b9 Update dependency next to v15.1.3 2024-12-29 01:10:17 +00:00
c540828463 Merge pull request 'Fix build issue with types returned by the Slider component' () from fix-build into main
Reviewed-on: 
2024-12-28 19:28:06 +00:00
a6b678c6ae Fix build issue with types returned by the Slider component 2024-12-28 20:23:35 +01:00
6d35009593 Merge pull request 'Allow configuring affinity between groups' () from group-affinities into main
Reviewed-on: 
2024-12-28 18:56:17 +00:00
dc735f1a2c Add copyright notice 2024-12-28 18:53:59 +00:00
c49acf8ab6 Merge remote-tracking branch 'origin/main' into group-affinities 2024-12-28 16:49:46 +01:00
52fb808d45 Define a dialog to configure the affinities between groups 2024-12-28 14:18:14 +01:00
d307ff6927 Update status of the parent component 2024-12-28 13:04:01 +01:00
b7e2bbb46f Initial approach to configure affinities between groups 2024-12-28 13:00:24 +01:00
3f38a9191f Merge pull request 'Define a health endpoint for docker compose' () from health-check-endpoint into main
Reviewed-on: 
2024-12-28 10:51:18 +00:00
07476221c3 Add copyright notice 2024-12-28 10:46:08 +00:00
b1339e2ce9 Define a health endpoint for docker compose 2024-12-28 11:45:22 +01:00
ff73133e05 Define a health endpoint for docker compose 2024-12-28 11:42:22 +01:00
70b023acac Merge pull request 'Update dependency next to v15.1.2' () from renovate/next-15.x into main
Reviewed-on: 
2024-12-21 10:08:30 +00:00
Renovate Bot
42d02306eb Update dependency next to v15.1.2 2024-12-21 01:07:14 +00:00
Renovate Bot
632a2f9815 Update dependency @types/react to v18.3.18 2024-12-21 01:07:01 +00:00
Renovate Bot
e536fd1cd1 Update dependency node to v23.5.0 2024-12-20 01:15:00 +00:00
Renovate Bot
6dcc87a2c2 Update pnpm to v9.15.1 2024-12-20 01:06:51 +00:00
Renovate Bot
96c45ee175 Update dependency tailwindcss to v3.4.17 2024-12-18 01:06:06 +00:00
Renovate Bot
fac573c69d Update dependency @types/react to v18.3.17 2024-12-17 01:06:27 +00:00
231be64e45 Merge pull request 'Display the discomfort breakdown in the tables diagram' () from discomfort-breakdown into main
Reviewed-on: 
2024-12-16 22:18:39 +00:00
658b94a2dc Add copyright notice 2024-12-16 22:17:28 +00:00
96655bf62b Display the discomfort breakdown in the tables diagram 2024-12-16 23:14:42 +01:00
Renovate Bot
5f9512991e Update dependency @types/react-dom to v18.3.5 2024-12-15 01:21:02 +00:00
ed7d51dee4 Merge pull request 'Update dependency @types/node to v22.10.2' () from renovate/node-22.x into main
Reviewed-on: 
2024-12-12 08:03:43 +00:00
Renovate Bot
82dc0a3e35 Update dependency zod to v3.24.1 2024-12-12 01:09:42 +00:00
Renovate Bot
35b42e2bb8 Update dependency @types/node to v22.10.2 2024-12-12 01:08:57 +00:00
09a37675a9 Merge pull request 'Fix compilation issue' () from dashboard into main
Reviewed-on: 
2024-12-11 23:20:55 +00:00
9029d756e7 Fix compilation issue 2024-12-12 00:19:46 +01:00
93662f5903 Merge pull request 'Load dashboard information from the backend' () from dashboard into main
Reviewed-on: 
2024-12-11 07:45:08 +00:00
7dbfbb76b7 Load dashboard information from the backend 2024-12-11 08:38:50 +01:00
Renovate Bot
53811299c8 Update dependency node to v23.4.0 2024-12-11 02:20:15 +00:00
Renovate Bot
6731dcc874 Update dependency @playwright/test to v1.49.1 2024-12-11 01:09:29 +00:00
c57bdec9fc Fix navigation link to the dashboard 2024-12-11 00:35:56 +01:00
6d5e57724c Merge pull request 'Fix group parsing in the guest model' () from fix-guest-group-parsing into main
Reviewed-on: 
2024-12-10 23:17:34 +00:00
be73e7018a Fix group parsing in the guest model 2024-12-11 00:16:35 +01:00
37360264ea Merge pull request 'Render groups using a tree table' () from groups-tree-table into main
Reviewed-on: 
2024-12-10 20:00:47 +00:00
c3e191982d Display groups in a treetable 2024-12-10 20:59:17 +01:00
2b0fab797e WIP groups tree table 2024-12-10 09:23:07 +01:00
770f1854d1 Merge pull request 'Fix build' () from fix-build into main
Reviewed-on: 
2024-12-10 07:44:24 +00:00
537498cb85 Fix build 2024-12-09 20:57:30 +01:00
17b324d338 Merge pull request 'Fix compilation error' () from fix-build into main
Reviewed-on: 
2024-12-09 19:12:57 +00:00
05392bc747 Fix compilation error 2024-12-09 20:12:18 +01:00
fb1b7e7d0f Merge pull request 'Define UI to perform CRUD operations on expenses' () from expenses-crud into main
Reviewed-on: 
2024-12-09 18:28:48 +00:00
7de37759ca Add copyright notice 2024-12-09 18:22:44 +00:00
79039572e7 Refactor multiple APIs into a single API and expose UI to modify
expenses
2024-12-09 19:22:02 +01:00
283d90c707 Merge pull request 'Include slug namespace in the tables arrangements fetch endpoint' () from fix-arrangements-api into main
Reviewed-on: 
2024-12-08 13:04:55 +00:00
066cab9da8 Include slug namespace in the tables arrangements fetch endpoint 2024-12-08 14:02:29 +01:00
eddb1cab37 Merge pull request 'Define create and update forms and actions for groups' () from groups-crud into main
Reviewed-on: 
2024-12-08 11:51:33 +00:00
fba1b81b4c Include edit and delete buttons in the groups table 2024-12-08 12:50:33 +01:00
ad0b09c3df Add form to create a new group 2024-12-08 12:45:15 +01:00
98d3afcd8e Merge pull request 'Preload a CSRF token on the registration page' () from preload-csrf-token into main
Reviewed-on: 
2024-12-08 08:32:43 +00:00
b4cfd91ff4 Preload a CSRF token on the registration page 2024-12-08 09:31:31 +01:00
Renovate Bot
f68587419d Update pnpm to v9.15.0 2024-12-08 01:08:50 +00:00
db9a6a1b83 Merge pull request 'Update the way to get params from the URL' () from fix-localstorage-issue into main
Reviewed-on: 
2024-12-07 22:02:30 +00:00
b6db72a5b7 Update the way to get params from the URL 2024-12-07 22:59:48 +01:00
f0bfa90140 Merge pull request 'Create a registration form' () from registration-form into main
Reviewed-on: 
2024-12-07 18:13:03 +00:00
809da23b91 Add copyright notice 2024-12-07 18:11:21 +00:00
054e1c6da0 Display a message after successful submission of registration form 2024-12-07 19:06:24 +01:00
4d576b07da Basic error validation in the form 2024-12-07 18:33:22 +01:00
d085a2ab19 Display a captcha in the registration form 2024-12-07 13:06:14 +01:00
Renovate Bot
12fe9b5b80 Update dependency tailwindcss to v3.4.16 2024-12-04 01:07:30 +00:00
54 changed files with 1577 additions and 679 deletions

@ -1,8 +1,6 @@
name: Build Nginx-based docker image
on:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
@ -25,12 +23,31 @@ jobs:
username: ${{ secrets.PRIVATE_REGISTRY_USERNAME }}
password: ${{ secrets.PRIVATE_REGISTRY_TOKEN }}
- name: Build and push
- name: Build and push intermediate stages (deps)
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-from: type=registry,ref=user/app:latest
target: deps
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:deps
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:deps
cache-to: type=inline
- name: Build and push intermediate stages (builder)
uses: docker/build-push-action@v6
with:
context: .
target: builder
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:builder
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:builder
cache-to: type=inline
- name: Build and push (final)
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-from: type=registry,ref=${{ secrets.PRIVATE_REGISTRY_HOST }}/${{ env.GITHUB_REPOSITORY }}:latest
cache-to: type=inline

@ -16,7 +16,7 @@ jobs:
ref: ${{ github.head_ref }}
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
with:
CopyrightString: '/* Copyright (C) 2024 Manuel Bustillo*/\n\n'
CopyrightString: '/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/\n\n'
FileType: '.tsx, .jsx, .ts'
Path: 'app/, config/, db/'
IgnorePath: 'testfolder1/a/, testfolder3'

2
.nvmrc

@ -1 +1 @@
23.3.0
23.9.0

@ -1,15 +1,44 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { lusitana } from '@/app/ui/fonts';
'use client'
import { AbstractApi } from '@/app/api/abstract-api';
import { Expense, ExpenseSerializer } from '@/app/lib/expense';
import { classNames } from '@/app/ui/components/button';
import ExpenseFormDialog from '@/app/ui/components/expense-form-dialog';
import ExpensesTable from '@/app/ui/expenses/table';
import SkeletonTable from '@/app/ui/guests/skeleton-row';
import { Suspense, useEffect, useState } from 'react';
export default function Page() {
const refreshExpenses = () => {
new AbstractApi<Expense>().getAll(new ExpenseSerializer(), (expenses: Expense[]) => {
setExpenses(expenses);
});
}
const [expenses, setExpenses] = useState<Expense[]>([]);
const [expenseBeingEdited, setExpenseBeingEdited] = useState<Expense | undefined>(undefined);
useEffect(() => { refreshExpenses() }, []);
return (
<div className="w-full">
<div className="w-full items-center justify-between">
<h1 className={`${lusitana.className} text-2xl`}>Expenses</h1>
<h2 className={`${lusitana.className} text-xl`}>Summary</h2>
<ExpensesTable />
<div className="flex flex-col w-full items-center justify-between">
<button onClick={() => setExpenseBeingEdited({})} className={classNames('primary')}>Add new</button>
<ExpenseFormDialog
key={expenseBeingEdited?.id}
onCreate={() => { refreshExpenses(); setExpenseBeingEdited(undefined) }}
expense={expenseBeingEdited}
visible={expenseBeingEdited !== undefined}
onHide={() => { setExpenseBeingEdited(undefined) }}
/>
<Suspense fallback={<SkeletonTable />}>
<ExpensesTable
expenses={expenses}
onUpdate={refreshExpenses}
onEdit={(expense) => setExpenseBeingEdited(expense)}
/>
</Suspense>
</div>
</div>
);

@ -1,11 +1,14 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import { loadGroups } from '@/app/api/groups';
import { loadGuests } from '@/app/api/guests';
import { Group, Guest } from '@/app/lib/definitions';
import { AbstractApi, } from '@/app/api/abstract-api';
import { Group, GroupSerializer } from '@/app/lib/group';
import { Guest, GuestSerializer } from '@/app/lib/guest';
import { getCsrfToken, getSlug } from '@/app/lib/utils';
import AffinitiesFormDialog from '@/app/ui/components/affinities-form-dialog';
import { classNames } from '@/app/ui/components/button';
import GroupFormDialog from '@/app/ui/components/group-form-dialog';
import GuestFormDialog from '@/app/ui/components/guest-form-dialog';
import GroupsTable from '@/app/ui/groups/table';
import SkeletonTable from '@/app/ui/guests/skeleton-row';
@ -16,21 +19,34 @@ import { Suspense, useState } from 'react';
export default function Page() {
function refreshGuests() {
loadGuests((guests) => {
setGuests(guests);
new AbstractApi<Guest>().getAll(new GuestSerializer(), (objects: Guest[]) => {
setGuests(objects);
setGuestsLoaded(true);
});
}
function refreshGroups() {
loadGroups((groups) => {
setGroups(groups);
new AbstractApi<Group>().getAll(new GroupSerializer(), (objects: Group[]) => {
setGroups(objects);
setGroupsLoaded(true);
});
}
function resetAffinities() {
fetch(`/api/${getSlug()}/groups/affinities/reset`, {
method: 'POST',
headers: {
'Accept': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
}
})
}
const [groupsLoaded, setGroupsLoaded] = useState(false);
const [groups, setGroups] = useState<Array<Group>>([]);
const [groupBeingEdited, setGroupBeingEdited] = useState<Group | undefined>(undefined);
const [groupAffinitiesBeingEditted, setGroupAffinitiesBeingEditted] = useState<Group | undefined>(undefined);
const [guestsLoaded, setGuestsLoaded] = useState(false);
const [guests, setGuests] = useState<Array<Guest>>([]);
@ -54,14 +70,45 @@ export default function Page() {
onHide={() => { setGuestBeingEdited(undefined) }}
/>
<Suspense fallback={<SkeletonTable />}>
<GuestsTable guests={guests} onUpdate={refreshGuests} onEdit={(guest) => setGuestBeingEdited(guest)} />
<GuestsTable
guests={guests}
onUpdate={refreshGuests}
onEdit={(guest) => setGuestBeingEdited(guest)}
/>
</Suspense>
</div>
</ TabPanel>
<TabPanel header="Groups" leftIcon="pi pi-sitemap mx-2">
<div className="flex w-full items-center justify-between">
<div className="flex flex-col w-full items-center justify-between">
<div>
<button onClick={() => setGroupBeingEdited({})} className={classNames('primary')}>Add new</button>
<button onClick={resetAffinities} className={classNames('yellow')}>Reset affinities</button>
</div>
<GroupFormDialog
key={groupBeingEdited?.id}
groups={groups}
onCreate={() => { refreshGroups(); setGroupBeingEdited(undefined) }}
group={groupBeingEdited}
visible={groupBeingEdited !== undefined}
onHide={() => { setGroupBeingEdited(undefined) }}
/>
<AffinitiesFormDialog
groups={groups}
group={groupAffinitiesBeingEditted}
visible={groupAffinitiesBeingEditted !== undefined}
onHide={() => { setGroupAffinitiesBeingEditted(undefined) }}
/>
<Suspense fallback={<SkeletonTable />}>
<GroupsTable groups={groups} />
<GroupsTable
groups={groups}
onUpdate={refreshGroups}
onEdit={(group) => setGroupBeingEdited(group)}
onEditAffinities={(group) => setGroupAffinitiesBeingEditted(group)}
/>
</Suspense>
</div>
</ TabPanel>

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import SideNav from '@/app/ui/dashboard/sidenav';

@ -1,9 +1,26 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client'
import { GlobalSummary as Summary } from '@/app/lib/definitions';
import { getSlug } from '@/app/lib/utils';
import GlobalSummary from '@/app/ui/dashboard/global-summary';
import { useEffect, useState } from 'react';
export default function Page() {
const [globalSummary, setGlobalSummary] = useState<Summary | undefined>(undefined);
function refreshSummary() {
fetch(`/api/${getSlug()}/summary`)
.then((response) => response.json())
.then((data) => {
setGlobalSummary(data);
})
}
useEffect(refreshSummary, []);
return (
<GlobalSummary />
globalSummary && <GlobalSummary summary={globalSummary} />
);
}

@ -1,16 +1,42 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import { AbstractApi } from '@/app/api/abstract-api';
import { TableSimulation, TableSimulationSerializer } from '@/app/lib/tableSimulation';
import Arrangement from '@/app/ui/arrangements/arrangement';
import React, { useState } from 'react';
import ArrangementsTable from '@/app/ui/arrangements/arrangements-table';
import { classNames } from '@/app/ui/components/button';
import { Toast } from 'primereact/toast';
import React, { useRef, useState } from 'react';
export default function Page() {
const toast = useRef<Toast>(null);
const show = () => {
toast.current?.show({
severity: 'success',
summary: 'Simulation created',
detail: 'Table distributions will be calculated shortly, please come back in some minutes'
});
};
const [currentArrangement, setCurrentArrangement] = useState<string | null>(null);
function createSimulation() {
const api = new AbstractApi<TableSimulation>();
const serializer = new TableSimulationSerializer();
api.create(serializer, new TableSimulation(), show);
}
return (
<>
<div className="flex flex-col w-full items-center justify-between">
<Toast ref={toast} />
<button onClick={createSimulation} className={classNames('primary')}>Add new</button>
</div>
<ArrangementsTable onArrangementSelected={setCurrentArrangement} />
{currentArrangement && <Arrangement key={currentArrangement} id={currentArrangement} />}
</>

@ -1,30 +1,40 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import Link from 'next/link';
import styles from '@/app/ui/home.module.css';
import LoginForm from '@/app/ui/components/login-form';
import RegistrationForm from '@/app/ui/components/registration-form';
import { useParams } from 'next/navigation'
import { useEffect } from 'react';
import { retrieveCSRFToken } from '../api/authentication';
import { getCsrfToken } from '../lib/utils';
export default async function Page() {
const params = useParams<{ slug: string }>()
useEffect(() => {
if (getCsrfToken() == 'unknown') {
retrieveCSRFToken();
}
}, []);
export default async function Page({ params }: { params: Promise<{ slug: string }> }) {
if (typeof window !== 'undefined') {
localStorage.setItem('slug', await params.slug);
}
localStorage.setItem('slug', (await params).slug)
return (
<main className="flex min-h-screen flex-col p-6">
<div className="flex flex-row">
<div className="w-1/2">
Already have an account? Sign in
<LoginForm />
</div>
<div className="w-1/2">
Don't have an account? Register now!
<RegistrationForm />
</div>
</div>
</main>
);
}

76
app/api/abstract-api.tsx Normal file

@ -0,0 +1,76 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Entity } from '@/app/lib/definitions';
import { getCsrfToken, getSlug } from '@/app/lib/utils';
export interface Api<T extends Entity> {
getAll(serializable: Serializable<T> ,callback: (objets: T[]) => void): void;
get(serializable: Serializable<T>, id: string, callback: (object: T) => void): void;
create(serializable: Serializable<T>, object: T, callback: () => void): void;
update(serializable: Serializable<T>, object: T, callback: () => void): void;
destroy(serializable: Serializable<T>, object: T, callback: () => void): void;
}
export interface Serializable<T> {
fromJson(json: any): T;
toJson(object: T): string;
apiPath(): string;
}
export class AbstractApi<T extends Entity> implements Api<T> {
getAll(serializable: Serializable<T>, callback: (objets: T[]) => void): void {
fetch(`/api/${getSlug()}/${serializable.apiPath()}`)
.then((response) => response.json())
.then((data) => {
callback(data.map((record: any) => {
return serializable.fromJson(record);
}));
}, (error) => {
return [];
});
}
get(serializable: Serializable<T>, id: string, callback: (object: T) => void): void {
fetch(`/api/${getSlug()}/${serializable.apiPath()}/${id}`)
.then((response) => response.json())
.then((data) => {
callback(serializable.fromJson(data));
}, (error) => {
return [];
});
}
update(serializable: Serializable<T>, object: T, callback: () => void): void {
fetch(`/api/${getSlug()}/${serializable.apiPath()}/${object.id}`, {
method: 'PUT',
body: serializable.toJson(object),
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
}
}).then(callback)
.catch((error) => console.error(error));
}
create(serializable: Serializable<T>, object: T, callback: () => void): void {
fetch(`/api/${getSlug()}/${serializable.apiPath()}`, {
method: 'POST',
body: serializable.toJson(object),
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
}
}).then(callback)
.catch((error) => console.error(error));
}
destroy(serializable: Serializable<T>, object: T, callback: () => void): void {
fetch(`/api/${getSlug()}/${serializable.apiPath()}/${object.id}`, {
method: 'DELETE',
headers: {
'X-CSRF-TOKEN': getCsrfToken(),
}
}).then(callback)
.catch((error) => console.error(error));
}
}

@ -1,10 +1,9 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { getCsrfToken, getSlug } from '@/app/lib/utils';
import { User } from '@/app/lib/definitions';
import { asArray, getCsrfToken, getSlug } from '@/app/lib/utils';
import { Captcha, StructuredErrors, User } from '@/app/lib/definitions';
export function login({ email, password, onLogin }: { email: string, password: string, onLogin: (user: User) => void }) {
console.log(email, password);
return fetch(`/api/${getSlug()}/users/sign_in`, {
method: 'POST',
body: JSON.stringify({ user: { email, password } }),
@ -34,3 +33,54 @@ export function logout({ onLogout }: { onLogout: () => void }) {
}).then(onLogout)
.catch((error) => console.error(error));
}
function flattenErrors(errors: StructuredErrors): string[] {
if (errors instanceof Array) {
return errors;
}
return Object.keys(errors).map((key) => {
return `${key}: ${asArray(errors[key]).join(', ')}`;
});
}
// At this moment we're making an initial request to get a valid CSRF token
export function retrieveCSRFToken() {
return fetch(`/api/token`, {
headers: {
'Accept': 'application/json',
}
}).then((response) => { return null });
}
export function register({ slug, email, password, passwordConfirmation, captcha, onRegister, onError }: {
slug: string,
email: string,
password: string,
passwordConfirmation: string,
captcha: Captcha,
onRegister: () => void,
onError: (errors: string[]) => void
}) {
fetch(`/api/${slug}/users`, {
method: 'POST',
body: JSON.stringify(
{
user: { email, password, password_confirmation: passwordConfirmation },
captcha: { id: captcha.id, answer: captcha.answer }
}
),
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
}
}).then((response) => {
if (response.ok) {
response.json().then(onRegister);
} else {
response.json().then((data: any) => {
onError(data.errors && flattenErrors(data.errors) || [data.error]);
});
}
})
}

19
app/api/captcha.tsx Normal file

@ -0,0 +1,19 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { data } from "autoprefixer";
import { getCsrfToken } from "../lib/utils";
export function getCaptchaChallenge({onRetrieve}: {onRetrieve: (id: string, url: string) => void}){
return fetch('/api/captcha', {
method: 'POST',
headers: {
'Accept': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
}
})
.then((response) => response.json())
.then((data: any) => {
onRetrieve(data.id, data.media_url)
})
.catch((error) => console.error(error));
}

@ -1,40 +0,0 @@
/* Copyright (C) 2024 Manuel Bustillo*/
import { Expense } from '@/app/lib/definitions';
import { getCsrfToken, getSlug } from '@/app/lib/utils';
export function loadExpenses(onLoad?: (expenses: Expense[]) => void) {
fetch(`/api/${getSlug()}/expenses`)
.then((response) => response.json())
.then((data) => {
onLoad && onLoad(data.map((record: any) => {
return ({
id: record.id,
name: record.name,
amount: record.amount,
pricingType: record.pricing_type
});
}));
}, (error) => {
return [];
});
}
export function updateExpense(expense: Expense) {
fetch(`/api/${getSlug()}/expenses/${expense.id}`,
{
method: 'PUT',
body: JSON.stringify({
expense: {
name: expense.name,
amount: expense.amount,
pricing_type: expense.pricingType,
}
}),
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
}
})
.catch((error) => console.error(error));
}

@ -1,28 +0,0 @@
/* Copyright (C) 2024 Manuel Bustillo*/
import { Group } from '@/app/lib/definitions';
import { getSlug } from '../lib/utils';
export function loadGroups(onLoad?: (groups: Group[]) => void) {
fetch(`/api/${getSlug()}/groups`)
.then((response) => response.json())
.then((data) => {
onLoad && onLoad(data.map((record: any) => {
return ({
id: record.id,
name: record.name,
color: record.color,
attendance: {
considered: record.considered,
invited: record.invited,
confirmed: record.confirmed,
tentative: record.tentative,
declined: record.declined,
total: record.total,
}
});
}));
}, (error) => {
return [];
});
}

@ -1,65 +0,0 @@
/* Copyright (C) 2024 Manuel Bustillo*/
import { Guest } from '@/app/lib/definitions';
import { getCsrfToken, getSlug } from '@/app/lib/utils';
export function loadGuests(onLoad?: (guests: Guest[]) => void) {
fetch(`/api/${getSlug()}/guests`)
.then((response) => response.json())
.then((data) => {
onLoad && onLoad(data.map((record: any) => {
return ({
id: record.id,
name: record.name,
status: record.status,
group_name: record.group.name,
groupId: record.group.id,
});
}));
}, (error) => {
return [];
});
};
export function updateGuest(guest: Guest) {
return fetch(`/api/${getSlug()}/guests/${guest.id}`,
{
method: 'PUT',
body: JSON.stringify({ guest: { name: guest.name, status: guest.status, group_id: guest.groupId } }),
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
}
})
.catch((error) => console.error(error));
}
export function createGuest(guest: Guest, onCreate?: () => void) {
fetch(`/api/${getSlug()}/guests`, {
method: 'POST',
body: JSON.stringify({ name: guest.name, group_id: guest.groupId, status: guest.status }),
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
}
})
.then((response) => response.json())
.then((data) => {
onCreate && onCreate();
})
.catch((error) => console.error(error));
}
export function destroyGuest(guest: Guest, onDestroy?: () => void) {
fetch(`/api/${getSlug()}/guests/${guest.id}`, {
method: 'DELETE',
headers: {
'X-CSRF-TOKEN': getCsrfToken(),
}
})
.then((response) => response.json())
.then((data) => {
onDestroy && onDestroy();
})
.catch((error) => console.error(error));
}

7
app/api/health/route.ts Normal file

@ -0,0 +1,7 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { NextResponse } from "next/server";
export function GET() {
return NextResponse.json({});
}

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { TableArrangement } from '@/app/lib/definitions';
import { getSlug } from '../lib/utils';
@ -12,6 +12,7 @@ export function loadTableSimulations(onLoad?: (tableSimulations: TableArrangemen
id: record.id,
name: record.name,
discomfort: record.discomfort,
valid: record.valid,
});
}));
}, (error) => {

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import '@/app/ui/global.css'

5
app/lib/affinities.tsx Normal file

@ -0,0 +1,5 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
export class Affinities {
[key:string]: number;
}

@ -1,67 +1,50 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
// This file contains type definitions for your data.
// It describes the shape of the data, and what data type each property should accept.
// For simplicity of teaching, we're manually defining these types.
// However, these types are generated automatically if you're using an ORM such as Prisma.
import { AttendanceSummary } from "./group";
import { Guest } from "./guest";
export const guestStatuses = ['considered', 'invited', 'confirmed', 'declined', 'tentative'] as const;
export type GuestStatus = typeof guestStatuses[number];
export type Guest = {
export interface Entity {
id?: string;
name?: string;
group_name?: string;
groupId?: string;
color?: string;
status?: GuestStatus
}
export type Expense = {
id: string;
name: string;
amount: number;
pricingType: 'fixed' | 'per person';
};
export type TableArrangement = {
id: string;
number: number;
name: string;
guests?: Guest[];
discomfort?: number
discomfort?: number;
valid?: boolean;
}
export type Group = {
id: string;
name: string;
guest_count: number;
icon: string;
children: Group[];
color?: string;
attendance?: AttendanceSummary
};
export type AttendanceSummary = {
considered: number;
invited: number;
confirmed: number;
declined: number;
tentative: number;
total: number;
}
export type guestsTable = {
id: string;
customer_id: string;
name: string;
email: string;
image_url: string;
date: string;
amount: number;
status: 'pending' | 'paid';
};
export type User = {
id: string;
email: string;
}
export type Captcha = {
id: string;
answer: string;
}
export type StructuredErrors = {
[key: string]: string[] | string;
};
export type GlobalSummary = {
expenses: ExpenseSummary;
guests: AttendanceSummary
}
export type ExpenseSummary = {
projected: ExpensePossibleSummary;
confirmed: ExpensePossibleSummary;
status: StatusSummary;
}
export type ExpensePossibleSummary = {
total: number;
guests: number;
}
export type StatusSummary = {
paid: number;
}

41
app/lib/expense.tsx Normal file

@ -0,0 +1,41 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Serializable } from "../api/abstract-api";
import { Entity } from "./definitions";
export const pricingTypes = ['fixed', 'per_person'] as const;
export type PricingType = typeof pricingTypes[number];
export class Expense implements Entity {
id?: string;
name?: string;
amount?: number;
pricingType?: PricingType;
constructor(id?: string, name?: string, amount?: number, pricingType?: PricingType) {
this.id = id;
this.name = name || '';
this.amount = amount || 0;
this.pricingType = pricingType || 'fixed';
}
}
export class ExpenseSerializer implements Serializable<Expense>{
fromJson(data: any): Expense {
return new Expense(data.id, data.name, data.amount, data.pricing_type);
}
toJson(expense: Expense): string {
return JSON.stringify({
expense: {
name: expense.name,
amount: expense.amount,
pricing_type: expense.pricingType
}
});
}
apiPath(): string {
return 'expenses';
}
}

64
app/lib/group.tsx Normal file

@ -0,0 +1,64 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Entity } from "./definitions";
export type AttendanceSummary = {
considered: number;
invited: number;
confirmed: number;
declined: number;
tentative: number;
total: number;
}
export class Group implements Entity {
id?: string;
name?: string;
guest_count?: number;
icon?: string;
children?: Group[];
parentId?: string;
color?: string;
attendance?: AttendanceSummary
constructor(id?: string, name?: string, guest_count?: number, icon?: string, children?: Group[], parentId?: string, color?: string, attendance?: AttendanceSummary) {
this.id = id;
this.name = name;
this.guest_count = guest_count;
this.icon = icon;
this.children = children;
this.parentId = parentId;
this.color = color;
this.attendance = attendance;
}
}
export class GroupSerializer {
fromJson(data: any): Group {
return new Group(
data.id,
data.name,
data.guest_count,
data.icon,
data.children,
data.parent_id,
data.color,
data.attendance
);
}
toJson(group: Group): string {
return JSON.stringify({
group: {
name: group.name,
color: group.color,
icon: group.icon,
parent_id: group.parentId
}
});
}
apiPath(): string {
return 'groups';
}
}

42
app/lib/guest.tsx Normal file

@ -0,0 +1,42 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Serializable } from "../api/abstract-api";
import { Entity } from "./definitions";
export const guestStatuses = ['considered', 'invited', 'confirmed', 'declined', 'tentative'] as const;
export type GuestStatus = typeof guestStatuses[number];
export class Guest implements Entity {
id?: string;
name?: string;
group_name?: string;
groupId?: string;
color?: string;
status?: GuestStatus;
children?: Guest[];
constructor(id?: string, name?: string, group_name?: string, groupId?: string, color?: string, status?: GuestStatus, children?: Guest[]) {
this.id = id;
this.name = name;
this.group_name = group_name;
this.groupId = groupId;
this.color = color;
this.status = status;
this.children = children;
}
}
export class GuestSerializer implements Serializable<Guest> {
fromJson(data: any): Guest {
return new Guest(data.id, data.name, data.group?.name, data.group?.id, data.color, data.status, data.children);
}
toJson(guest: Guest): string {
return JSON.stringify({ guest: { name: guest.name, status: guest.status, group_id: guest.groupId } });
}
apiPath(): string {
return 'guests';
}
}

@ -0,0 +1,71 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Serializable } from "../api/abstract-api";
import { Entity } from "./definitions";
import { Guest } from "./guest";
export type Discomfort = {
discomfort: number;
breakdown: {
tableSizePenalty: number;
cohesionPenalty: number;
}
}
export type Table = {
number: number;
guests: Guest[];
discomfort: Discomfort;
}
export class TableSimulation implements Entity {
id?: string;
tables: Table[];
constructor(id?: string, tables?: Table[]) {
this.id = id;
this.tables = tables || [];
}
}
export class TableSimulationSerializer implements Serializable<TableSimulation> {
fromJson(data: any): TableSimulation {
return new TableSimulation(data.id, data.tables.map((table: any) => {
return {
number: table.number,
guests: table.guests.map((guest: any) => new Guest(guest.id, guest.name, guest.group?.name, guest.group?.id, guest.color)),
discomfort: {
discomfort: table.discomfort.discomfort,
breakdown: {
tableSizePenalty: table.discomfort.breakdown.table_size_penalty,
cohesionPenalty: table.discomfort.breakdown.cohesion_penalty,
}
},
}
}));
}
toJson(simulation: TableSimulation): string {
return JSON.stringify({ simulation: { tables: simulation.tables.map((table) => {
return {
number: table.number,
guests: table.guests.map((guest) => {
return {
id: guest.id,
name: guest.name,
group_id: guest.groupId,
color: guest.color,
status: guest.status,
children: guest.children,
}
}),
discomfort: table.discomfort,
}
}) } });
}
apiPath(): string {
return 'tables_arrangements';
}
}

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
export const getCsrfToken = () => {
return document.cookie
@ -13,3 +13,8 @@ export const getSlug = () => localStorage.getItem('slug') || 'default';
export const capitalize = (val:string) => {
return String(val).charAt(0).toUpperCase() + String(val).slice(1);
}
// From https://stackoverflow.com/a/62118163/3607039
export function asArray<T>(value: T | T[]): T[] {
return ([] as T[]).concat(value)
}

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import * as HeroIcon from '@heroicons/react/24/outline'
import { ComponentProps } from 'react'

@ -1,40 +1,34 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import React, { useState } from 'react';
import { TableArrangement, Guest } from '@/app/lib/definitions';
import { lusitana } from '@/app/ui/fonts';
import { AbstractApi } from '@/app/api/abstract-api';
import { TableArrangement } from '@/app/lib/definitions';
import { TableSimulation, TableSimulationSerializer } from '@/app/lib/tableSimulation';
import { getSlug } from '@/app/lib/utils';
import { Table } from '@/app/ui/components/table';
import { lusitana } from '@/app/ui/fonts';
import { useState, useEffect } from 'react';
export default function Arrangement({ id }: { id: string }) {
const [tables, setTables] = useState<Array<TableArrangement>>([]);
const [simulation, setSimulation] = useState<TableSimulation | undefined>(undefined);
function loadTables() {
fetch(`/api/tables_arrangements/${id}`)
.then((response) => response.json())
.then((data) => {
setTables(data.map((record: any) => {
return ({
id: record.number,
guests: record.guests
});
}));
}, (error) => {
return [];
function loadSimulation() {
new AbstractApi<TableSimulation>().get(new TableSimulationSerializer(), id, (object: TableSimulation) => {
setSimulation(object);
});
}
tables.length === 0 && loadTables();
useEffect(loadSimulation, []);
return (
<div className="w-full">
<div className="w-full items-center justify-between">
<h1 className={`${lusitana.className} text-2xl my-5`}>Table distributions</h1>
<div className="flex flex-row flex-wrap justify-around">
{tables.map((table) => (
<Table key={table.number} guests={table.guests || []} style="rounded" />
{simulation && simulation.tables.map((table) => (
<Table key={table.number} table={table} style="rounded" />
))}
</div>
</div>

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client'
@ -7,6 +7,9 @@ import { TableArrangement } from '@/app/lib/definitions';
import { classNames } from "../components/button";
import TableOfContents from "../components/table-of-contents";
import { loadTableSimulations } from "@/app/api/tableSimulations";
import { ArchiveBoxXMarkIcon, CheckBadgeIcon } from "@heroicons/react/24/outline";
import { Tooltip } from "primereact/tooltip";
import clsx from "clsx";
export default function ArrangementsTable({ onArrangementSelected }: { onArrangementSelected: (arrangementId: string) => void }) {
const [arrangements, setArrangements] = useState<Array<TableArrangement>>([]);
@ -27,12 +30,15 @@ export default function ArrangementsTable ({onArrangementSelected}: {onArrangeme
return (
<TableOfContents
headers={['Name', 'Discomfort', 'Actions']}
headers={['Name', 'Discomfort', 'Actions', 'Status']}
caption='Simulations'
elements={arrangements}
rowRender={(arrangement) => (
<tr key={arrangement.id} className="bg-white border-b odd:bg-white odd:dark:bg-gray-900 even:bg-gray-50 even:dark:bg-gray-800">
<th scope="row" className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
<tr key={arrangement.id} className={clsx("border-b", {
"bg-white odd:bg-white even:bg-gray-50": arrangement.valid,
"bg-red-50 odd:bg-red-50 even:bg-red-100": !arrangement.valid
})}>
<th scope="row" className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap">
{arrangement.name}
</th>
<td className="px-6 py-4">
@ -41,6 +47,15 @@ export default function ArrangementsTable ({onArrangementSelected}: {onArrangeme
<td>
<button data-arrangement-id={arrangement.id} onClick={arrangementClicked} className={classNames('primary')}>Load</button>
</td>
<td>
<Tooltip target=".tooltip-status" />
{
arrangement.valid ?
<CheckBadgeIcon className='size-6 tooltip-status' data-pr-position="right" data-pr-tooltip="Simulation is valid" /> :
<ArchiveBoxXMarkIcon className='size-6 tooltip-status' data-pr-position="right" data-pr-tooltip="Simulation is expired due to attendance or affinity changes" />
}
</td>
</tr>
)}
/>

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import clsx from 'clsx';

@ -0,0 +1,82 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import { Affinities } from '@/app/lib/affinities';
import { Group } from '@/app/lib/group';
import { getCsrfToken, getSlug } from '@/app/lib/utils';
import { classNames } from '@/app/ui/components/button';
import { Dialog } from 'primereact/dialog';
import { useEffect, useState } from 'react';
import AffinitySlider from './form/affinitySlider';
export default function AffinitiesFormDialog({ groups, group, visible, onHide }: {
groups: Group[],
group?: Group,
visible: boolean,
onHide: () => void,
}) {
const [affinities, setAffinities] = useState<Affinities>({});
const [isLoadingAffinities, setIsLoadingAffinities] = useState(true);
useEffect(() => {
setIsLoadingAffinities(true);
if (group?.id === undefined) {
setAffinities({});
setIsLoadingAffinities(false)
} else {
fetch(`/api/${getSlug()}/groups/${group?.id}/affinities`)
.then((response) => response.json())
.then((data) => {
setAffinities(data);
setIsLoadingAffinities(false)
});
}
}, [group]);
function submitAffinities() {
const formattedAffinities = Object.entries(affinities).map(([groupId, affinity]) => ({ group_id: groupId, affinity: affinity }));
fetch(`/api/${getSlug()}/groups/${group?.id}/affinities/bulk_update`, {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
'X-CSRF-TOKEN': getCsrfToken(),
},
body: JSON.stringify({ affinities: formattedAffinities })
}).then(() => {
onHide();
});
}
function resetAffinities() {
fetch(`/api/${getSlug()}/groups/${group?.id}/affinities/default`, {
method: 'GET',
headers: {
'Accept': 'application/json',
}
}).then((response) => response.json())
.then(setAffinities);
}
return (
<Dialog header="Update affinities" visible={visible} style={{ width: '60vw' }} onHide={onHide}>
{!isLoadingAffinities && <div className="card justify-evenly py-5 bg-gray-200 flex flex-col">
<span className="text-center p-4">Describe the affinity with the rest of the groups</span>
{
groups.filter((currentGroup) => currentGroup.id !== group?.id).map((group) =>
<div key={group.id} className="flex flex-row hover:bg-gray-300 px-3 py-2 items-center">
<span className="w-1/3 text-right px-4">{group.name}</span>
<AffinitySlider value={group.id && affinities[group.id] || 1} onChange={(value) => setAffinities({ ...affinities, [group.id || "default"]: value })} />
</div>)
}
<div className="flex justify-center">
<button className={classNames('gray')} onClick={resetAffinities} >Reset</button>
<button className={classNames('primary')} onClick={submitAffinities} >Update</button>
</div>
</div>
}
</Dialog>
);
}

@ -1,14 +1,15 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import clsx from "clsx";
type ButtonColor = 'primary' | 'blue' | 'green' | 'red' | 'yellow';
type ButtonColor = 'primary' | 'blue' | 'green' | 'red' | 'yellow' | 'gray';
export function classNames(type: ButtonColor) {
return (clsx("text-white py-1 px-2 mx-1 rounded disabled:opacity-50 disabled:cursor-not-allowed", {
'bg-blue-400 hover:bg-blue-600': type === 'primary' || type === 'blue',
'bg-green-500 hover:bg-green-600': type === 'green',
'bg-red-500 hover:bg-red-600': type === 'red',
'bg-yellow-500 hover:bg-yellow-700': type === 'yellow'
'bg-yellow-500 hover:bg-yellow-700': type === 'yellow',
'bg-gray-500 hover:bg-gray-700': type === 'gray'
}))
}

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import clsx from "clsx"
import { Icon } from "../../types";
@ -21,7 +21,7 @@ const colorClasses = (style: Style) => {
}
}
export async function MainCard({ amount, title, subtitle, style, iconName }:
export function MainCard({ amount, title, subtitle, style, iconName }:
{
amount: string,
title: string,
@ -42,7 +42,7 @@ export async function MainCard({ amount, title, subtitle, style, iconName }:
);
}
export async function SecondaryCard({ amount, title, iconName, style }: { amount: string, title: string, iconName: keyof typeof HeroIcon, style: Style }) {
export function SecondaryCard({ amount, title, iconName, style }: { amount: string, title: string, iconName: keyof typeof HeroIcon, style: Style }) {
return (
<div className={`h-12 w-80 m-1 p-2 text-white flex flex-row items-center ${colorClasses(style)}`}>
<Icon className="m-3 h-7 w-7" name={iconName} />

@ -0,0 +1,83 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import { AbstractApi } from '@/app/api/abstract-api';
import { Expense, ExpenseSerializer, PricingType, pricingTypes } from '@/app/lib/expense';
import { capitalize } from '@/app/lib/utils';
import { classNames } from '@/app/ui/components/button';
import { Dialog } from 'primereact/dialog';
import { Dropdown } from 'primereact/dropdown';
import { FloatLabel } from 'primereact/floatlabel';
import { InputText } from 'primereact/inputtext';
import { useState } from 'react';
export default function ExpenseFormDialog({ onCreate, onHide, expense, visible }: {
onCreate?: () => void,
onHide: () => void,
expense?: Expense,
visible: boolean,
}) {
const [name, setName] = useState<string>(expense?.name || '');
const [amount, setAmount] = useState<number>(expense?.amount || 0);
const [pricingType, setPricingType] = useState<PricingType>(expense?.pricingType || 'fixed');
const api = new AbstractApi<Expense>();
const serializer = new ExpenseSerializer();
function resetForm() {
setName('');
setAmount(0);
setPricingType('fixed');
}
function submitGroup() {
if (expense?.id !== undefined) {
expense.name = name;
expense.amount = amount;
expense.pricingType = pricingType;
api.update(serializer, expense, () => {
resetForm();
onCreate && onCreate();
});
} else {
api.create(serializer, new Expense(undefined, name, amount, pricingType), () => {
resetForm();
onCreate && onCreate();
});
}
}
return (
<>
<Dialog header="Add/edit expense" visible={visible} style={{ width: '60vw' }} onHide={onHide}>
<div className="card flex justify-evenly py-5">
<FloatLabel>
<InputText id="name" className='rounded-sm' value={name} onChange={(e) => setName(e.target.value)} />
<label htmlFor="name">Name</label>
</FloatLabel>
<FloatLabel>
<InputText id="amount" className='rounded-sm' value={amount.toString()} onChange={(e) => setAmount(parseFloat(e.target.value))} />
<label htmlFor="amount">Amount</label>
</FloatLabel>
<FloatLabel>
<Dropdown id="pricingType" className='rounded-sm min-w-32' value={pricingType} onChange={(e) => setPricingType(e.target.value)} options={
pricingTypes.map((type) => {
return { label: capitalize(type), value: type };
})
} />
<label htmlFor="pricingType">Pricing type</label>
</FloatLabel>
<button className={classNames('primary')} onClick={submitGroup} disabled={!(name.length > 0)}>
{expense?.id !== undefined ? 'Update' : 'Create'}
</button>
</div>
</Dialog>
</>
);
}

@ -0,0 +1,40 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Slider } from 'primereact/slider';
export default function AffinitySlider({ value, onChange }: { value: number, onChange: (value: number) => void }) {
const toNumber = (value : number | [number, number]) => {
if(value instanceof Array) {
return value[0];
}
return value;
}
const label = (value: number) => {
if (value < 0.2) {
return 'Nemesis';
} else if (value < 0.5) {
return 'Enemies';
} else if (value < 0.9) {
return 'Bad vibes';
} else if (value < 1.1) {
return 'Neutral';
} else if (value < 1.5) {
return 'Good vibes';
} else if (value < 1.8) {
return 'Good friends';
} else {
return 'Besties';
}
}
return (
<>
<Slider value={value} min={0} max={2} step={.1} onChange={(e) => onChange(toNumber(e.value))} className='w-80 bg-gray-400' />
<span className="px-4 w-1/5">
{label(value)}
</span>
</>
)
}

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import React, { useState } from 'react';

@ -0,0 +1,95 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import { AbstractApi } from '@/app/api/abstract-api';
import { Group, GroupSerializer } from '@/app/lib/group';
import { classNames } from '@/app/ui/components/button';
import { ColorPicker } from 'primereact/colorpicker';
import { Dialog } from 'primereact/dialog';
import { Dropdown } from 'primereact/dropdown';
import { FloatLabel } from 'primereact/floatlabel';
import { InputText } from 'primereact/inputtext';
import { useState } from 'react';
export default function GroupFormDialog({ groups, onCreate, onHide, group, visible }: {
groups: Group[],
onCreate?: () => void,
onHide: () => void,
group?: Group,
visible: boolean,
}) {
const [name, setName] = useState(group?.name || '');
const [icon, setIcon] = useState(group?.icon || '');
const [color, setColor] = useState<string>(group?.color || '');
const [parentId, setParentId] = useState(group?.parentId || '');
const api = new AbstractApi<Group>();
const serializer = new GroupSerializer();
function resetForm() {
setName('');
setIcon('');
setColor('');
setParentId('');
}
function submitGroup() {
if (!(name)) {
return
}
if (group?.id !== undefined) {
group.name = name;
group.icon = icon;
group.color = color;
group.parentId = parentId;
api.update(serializer, group, () => {
resetForm();
onCreate && onCreate();
});
} else {
api.create(serializer, new Group(undefined, name, undefined, icon, undefined, parentId, color), () => {
resetForm();
onCreate && onCreate();
});
}
}
return (
<>
<Dialog header="Add group" visible={visible} style={{ width: '60vw' }} onHide={onHide}>
<div className="card flex justify-evenly py-5">
<FloatLabel>
<InputText id="name" className='rounded-sm' value={name} onChange={(e) => setName(e.target.value)} />
<label htmlFor="name">Name</label>
</FloatLabel>
<FloatLabel>
<InputText id="icon" className='rounded-sm' value={icon} onChange={(e) => setIcon(e.target.value)} />
<label htmlFor="icon">Icon</label>
</FloatLabel>
<FloatLabel>
<ColorPicker value={color} format='hex' onChange={(e) => setColor(`#${e.value}`)} />
<label htmlFor="color" />
</FloatLabel>
<FloatLabel>
<Dropdown id="parentId" className='rounded-sm min-w-32' value={parentId} onChange={(e) => setParentId(e.target.value)} options={
groups.map((group) => {
return { label: group.name, value: group.id };
})
} />
<label htmlFor="parentId">Parent</label>
</FloatLabel>
<button className={classNames('primary')} onClick={submitGroup} disabled={!(name.length > 0)}>
{group?.id !== undefined ? 'Update' : 'Create'}
</button>
</div>
</Dialog>
</>
);
}

@ -1,9 +1,10 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import { createGuest, updateGuest } from '@/app/api/guests';
import { Group, Guest, GuestStatus, guestStatuses } from '@/app/lib/definitions';
import { AbstractApi } from '@/app/api/abstract-api';
import { Group } from '@/app/lib/group';
import { Guest, GuestSerializer, GuestStatus, guestStatuses } from '@/app/lib/guest';
import { capitalize } from '@/app/lib/utils';
import { classNames } from '@/app/ui/components/button';
import { Dialog } from 'primereact/dialog';
@ -24,6 +25,9 @@ export default function GuestFormDialog({ groups, onCreate, onHide, guest, visib
const [group, setGroup] = useState(guest?.groupId || null);
const [status, setStatus] = useState<GuestStatus | null>(guest?.status || null);
const api = new AbstractApi<Guest>();
const serializer = new GuestSerializer();
function resetForm() {
setName('');
setGroup(null);
@ -39,12 +43,13 @@ export default function GuestFormDialog({ groups, onCreate, onHide, guest, visib
guest.name = name;
guest.groupId = group;
guest.status = status;
updateGuest(guest).then(() => {
api.update(serializer, guest, () => {
resetForm();
onCreate && onCreate();
});
} else {
guest && createGuest({name: name, groupId: group, status: status}, () => {
api.create(serializer, new Guest(undefined, name, undefined, group, undefined, status), ()=> {
resetForm();
onCreate && onCreate();
});
@ -54,7 +59,7 @@ export default function GuestFormDialog({ groups, onCreate, onHide, guest, visib
return (
<>
<Dialog header="Add guest" visible={visible} style={{ width: '50vw' }} onHide={onHide}>
<Dialog header="Add guest" visible={visible} style={{ width: '60vw' }} onHide={onHide}>
<div className="card flex justify-evenly py-5">
<FloatLabel>
<InputText id="username" className='rounded-sm' value={name} onChange={(e) => setName(e.target.value)} />

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';

@ -0,0 +1,98 @@
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import { FloatLabel } from 'primereact/floatlabel';
import { InputText } from 'primereact/inputtext';
import { useState, useEffect } from 'react';
import { classNames } from './button';
import { getSlug } from '@/app/lib/utils';
import { register } from '@/app/api/authentication';
import { getCaptchaChallenge } from '@/app/api/captcha';
export default function RegistrationForm() {
const [submitted, setSubmitted] = useState<boolean>(false);
const [errors, setErrors] = useState<string[]>([]);
const [email, setEmail] = useState<string>("");
const [password, setPassword] = useState<string>("");
const [passwordConfirmation, setPasswordConfirmation] = useState<string>("");
const [slug, setSlug] = useState<string>(getSlug());
const [captchaId, setCaptchaId] = useState<string>("");
const [captchaUrl, setCaptchaUrl] = useState<string>("");
const [captchaAnswer, setCaptchaAnswer] = useState<string>("");
const refreshCaptcha = () => {
getCaptchaChallenge({
onRetrieve: (id, url) => {
console.log(id, url);
setCaptchaId(id);
setCaptchaUrl(url);
setCaptchaAnswer("");
}
});
}
useEffect(refreshCaptcha, [])
return (
submitted ? (
<div className="card flex justify-evenly py-5 flex-col">
<div className="text-green-500">Registration successful. Check your email for a confirmation link.</div>
</div>
) : (
<div className="card flex justify-evenly py-5 flex-col">
<FloatLabel className="my-4">
<InputText id="email" type="email" className='rounded-sm' onChange={(e) => setEmail(e.target.value)} />
<label htmlFor="email">Email</label>
</FloatLabel>
<FloatLabel className="my-4">
<InputText id="password" type="password" className='rounded-sm' onChange={(e) => setPassword(e.target.value)} />
<label htmlFor="password">Password</label>
</FloatLabel>
<FloatLabel className="my-4">
<InputText id="passwordConfirmation" type="password" className='rounded-sm' onChange={(e) => setPasswordConfirmation(e.target.value)} />
<label htmlFor="passwordConfirmation">Confirm Password</label>
</FloatLabel>
<FloatLabel className="my-4">
<InputText id="slug" type="text" className='rounded-sm' onChange={(e) => setSlug(e.target.value)} />
<label htmlFor="slug">Slug</label>
</FloatLabel>
<img className="w-96" src={captchaUrl} alt="captcha" />
<FloatLabel className="my-4">
<InputText id="captcha" type="text" className='rounded-sm' value={captchaAnswer} onChange={(e) => setCaptchaAnswer(e.target.value)} />
<label htmlFor="captcha">Captcha</label>
</FloatLabel>
{errors.map((error, index) => (
<div key={index} className="text-red-500">{error}</div>
))}
<button
className={classNames('primary')}
disabled={!(email && password && passwordConfirmation && slug && captchaAnswer)}
onClick={() => register(
{
slug: slug,
email: email,
password: password,
passwordConfirmation: passwordConfirmation,
captcha: {
id: captchaId,
answer: captchaAnswer
},
onRegister: () => { setErrors([]); setSubmitted(true) },
onError: (errors) => { refreshCaptcha(); setErrors(errors) }
}
)}
>
Register
</button>
</div>
)
);
}

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
export default function TableOfContents<Type>({ headers, caption, elements, rowRender }: { headers: string[], caption: string, elements: Type[], rowRender: (element: Type) => JSX.Element }) {
return (

@ -1,6 +1,12 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Guest } from "@/app/lib/guest";
import { Table as TableType } from "@/app/lib/tableSimulation";
import { RectangleGroupIcon, UserGroupIcon } from "@heroicons/react/24/outline";
import { v4 as uuidv4 } from 'uuid';
import { Tooltip } from "primereact/tooltip";
import clsx from "clsx";
import { Guest } from "@/app/lib/definitions";
function Dish({ guest, rotation }: { guest: Guest, rotation?: number }) {
rotation = rotation || 0
@ -14,7 +20,6 @@ function Dish({ guest, rotation }: { guest: Guest, rotation?: number }) {
)
}
function GuestRow({ guests }: { guests: Guest[] }) {
return (
<div className="justify-around flex flex-row">
@ -23,7 +28,8 @@ function GuestRow({ guests }: { guests: Guest[] }) {
)
}
function RectangularTable({ guests }: { guests: Guest[] }) {
function RectangularTable({ table }: { table: TableType }) {
const guests = table.guests;
const halfwayThrough = Math.floor(guests.length / 2)
const arrayFirstHalf = guests.slice(0, halfwayThrough);
const arraySecondHalf = guests.slice(halfwayThrough, guests.length);
@ -36,11 +42,24 @@ function RectangularTable({ guests }: { guests: Guest[] }) {
)
}
function RoundedTable({ guests }: { guests: Guest[] }) {
function RoundedTable({ table }: { table: TableType }) {
const guests = table.guests;
const size = 500
const rotation = 360 / guests.length
const className = (penalty: number) => {
return clsx("px-2 tooltip-cohesion", {
"hidden": penalty === 0,
"text-orange-300": penalty <= 5,
"text-orange-500": penalty > 5 && penalty <= 10,
"text-orange-700": penalty > 10,
})
}
return (
<div className={`m-12 rounded-full bg-cyan-800 relative z-0`} style={{ width: `${size}px`, height: `${size}px` }}>
<div className={`m-12 rounded-full bg-cyan-800 relative z-0 grid flex items-center justify-items-center`} style={{ width: `${size}px`, height: `${size}px` }}>
{
guests.map((guest, index) => {
return (
@ -54,15 +73,35 @@ function RoundedTable({ guests }: { guests: Guest[] }) {
)
})
}
<div className="bg-zinc-200 w-48 h-12 p-3 flex flex-row rounded z-10">
<div className="px-2 text-slate-800">{`Table #${table.number}`}</div>
<Tooltip target=".tooltip-cohesion" />
<Tooltip target=".tooltip-size" />
<RectangleGroupIcon
className={className(table.discomfort.breakdown.cohesionPenalty)}
data-pr-tooltip={`Cohesion penalty: ${Math.round(table.discomfort.breakdown.cohesionPenalty)}`}
data-pr-position="top"
/>
<UserGroupIcon
className={className(table.discomfort.breakdown.tableSizePenalty)}
data-pr-tooltip={`Table size penalty: ${Math.round(table.discomfort.breakdown.tableSizePenalty)}`}
data-pr-position="top"
/>
</div>
</div>
)
}
export function Table({ guests, style }: { guests: Guest[], style: "rectangular" | "rounded" }) {
export function Table({ table, style }: { table: TableType, style: "rectangular" | "rounded" }) {
return (
<>
{style === "rectangular" && <RectangularTable guests={guests} />}
{style === "rounded" && <RoundedTable guests={guests} />}
{style === "rectangular" && <RectangularTable table={table} />}
{style === "rounded" && <RoundedTable table={table} />}
</>
)
}

@ -1,45 +1,41 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { GlobalSummary as Summary} from '@/app/lib/definitions';
import { MainCard, SecondaryCard } from '../components/dashboard-cards';
export default async function GlobalSummary() {
export default function GlobalSummary({ summary }: { summary: Summary }) {
return (
<div className="my-4">
<div className="flex flex-row w-full my-2">
<MainCard style="green" amount="65000€" title="Projected" subtitle="150 guests" iconName="ArrowTrendingUpIcon" />
<div className="flex flex-col">
<MainCard amount="10000€" title="Paid already" iconName="Square3Stack3DIcon" style='blue' />
<MainCard amount="198€" title="/ guest" iconName="UserIcon" style='blue' />
<MainCard amount={`${summary.expenses.projected.total}`} title="Projected" subtitle={`${summary.expenses.projected.guests} guests`} style="blue" iconName="ArrowTrendingUpIcon" />
<MainCard amount={`${Math.round(summary.expenses.projected.total / summary.expenses.projected.guests)}`} title="/ guest" iconName="UserIcon" style='blue' />
</div>
<div className="flex flex-col">
<MainCard amount="78000€" title="Max." subtitle='200 guests' iconName="ChevronDoubleUpIcon" style="orange" />
<MainCard amount="45000€" title="Min." subtitle="125 guests" iconName="ChevronDoubleDownIcon" style="green" />
<MainCard amount={`${summary.expenses.confirmed.total}`} title="Min." subtitle={`${summary.expenses.confirmed.guests} guests`} iconName="ChevronDoubleDownIcon" style="green" />
<MainCard amount={`${Math.round(summary.expenses.confirmed.total / summary.expenses.confirmed.guests)}`} title="/ guest" iconName="UserIcon" style='green' />
</div>
<div className="flex flex-col">
<MainCard amount={`${summary.expenses.status.paid}`} title="Paid already" subtitle={`${Math.round(summary.expenses.status.paid / summary.expenses.projected.total * 100)}% of projected`} iconName="CheckIcon" style='blue' />
<MainCard amount={`${summary.expenses.projected.total - summary.expenses.status.paid}`} title="To pay" subtitle={`${100 - Math.round(summary.expenses.status.paid / summary.expenses.projected.total * 100)}% of projected`} iconName="BanknotesIcon" style="orange" />
</div>
</div>
<div className="flex flex-row w-full my-2">
<MainCard style="blue" amount="150" title="Invites sent" iconName="UsersIcon" />
<MainCard style="blue" amount={summary.guests.total.toString()} title="Invites sent" iconName="UsersIcon" />
<div className="flex flex-col">
<SecondaryCard amount="31%" title="confirmed (27 guests)" iconName="CheckIcon" style='green' />
<SecondaryCard amount="5%" title="declined (8 guests)" iconName="XMarkIcon" style='red' />
<SecondaryCard amount={`${Math.round(summary.guests.confirmed / summary.guests.total * 100)}%`} title={`confirmed (${summary.guests.confirmed} guests)`} iconName="CheckIcon" style='green' />
<SecondaryCard amount={`${Math.round(summary.guests.declined / summary.guests.total * 100)}%`} title={`declined (${summary.guests.declined} guests)`} iconName="XMarkIcon" style='red' />
</div>
<div className="flex flex-col">
<SecondaryCard amount="17%" title="tentative (14 guests)" iconName="QuestionMarkCircleIcon" style='orange' />
<SecondaryCard amount="65%" title="awaiting (72 guests)" iconName="EllipsisHorizontalIcon" style='gray' />
<SecondaryCard amount={`${Math.round(summary.guests.tentative / summary.guests.total * 100)}%`} title={`tentative (${summary.guests.tentative} guests)`} iconName="QuestionMarkCircleIcon" style='orange' />
<SecondaryCard amount={`${Math.round(summary.guests.invited / summary.guests.total * 100)}%`} title={`awaiting (${summary.guests.invited} guests)`} iconName="EllipsisHorizontalIcon" style='gray' />
</div>
</div>
<div className="flex flex-row w-full my-2">
<MainCard style="blue" amount="5" title="Table simulations" iconName="ServerStackIcon" />
<MainCard style="blue" amount="9" title="Bus simulations" iconName="TruckIcon" />
<MainCard style="blue" amount="98" title="QR codes" iconName="QrCodeIcon" />
</div>
</div>
);
}

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
export default function Loading() {
return <div>Loading...</div>;

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client'

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
@ -17,7 +17,7 @@ export default function SideNav() {
<div className="flex h-full flex-col px-3 py-4 md:px-2">
<Link
className="mb-2 flex h-20 items-center justify-start rounded-md bg-blue-600 p-4 md:h-20"
href="/dashboard/guests"
href={`/${getSlug()}/dashboard`}
>
<div className={`${gloriaHallelujah.className} "w-32 text-white md:w-40 antialiased`}>
<h1>Wedding Planner</h1>

@ -1,42 +1,44 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client'
import { loadExpenses, updateExpense } from '@/app/api/expenses';
import { Expense } from '@/app/lib/definitions';
import { useState } from "react";
import InlineTextField from "../components/form/inlineTextField";
import { AbstractApi } from '@/app/api/abstract-api';
import { Expense, ExpenseSerializer } from '@/app/lib/expense';
import { PencilIcon, TrashIcon } from '@heroicons/react/24/outline';
import TableOfContents from "../components/table-of-contents";
export default function ExpensesTable() {
const [expenses, setExpenses] = useState<Array<Expense>>([]);
const [expensesLoaded, setExpensesLoaded] = useState(false);
function refreshExpenses() {
loadExpenses((expenses) => {
setExpenses(expenses);
setExpensesLoaded(true);
});
}
export default function ExpensesTable({ expenses, onUpdate, onEdit }: {
expenses: Expense[],
onUpdate: () => void,
onEdit: (expense: Expense) => void,
}) {
!expensesLoaded && refreshExpenses();
const api = new AbstractApi<Expense>();
const serializer = new ExpenseSerializer();
return (
<TableOfContents
headers={['Name', 'Amount (€)', 'Pricing Type']}
headers={['Name', 'Amount (€)', 'Pricing Type', 'Actions']}
caption='Expenses'
elements={expenses}
rowRender={(expense) => (
<tr key={expense.id} className="bg-white border-b odd:bg-white odd:dark:bg-gray-900 even:bg-gray-50 even:dark:bg-gray-800">
<th scope="row" className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
<InlineTextField initialValue={expense.name} onChange={(value) => { expense.name = value; updateExpense(expense) }} />
{expense.name}
</th>
<td className="px-6 py-4">
<InlineTextField initialValue={expense.amount.toString()} onChange={(value) => { expense.amount = parseFloat(value); updateExpense(expense) }} />
{expense.amount}
</td>
<td>
{expense.pricingType}
</td>
<td>
<div className="flex flex-row items-center">
<TrashIcon className='size-6 cursor-pointer' onClick={() => { api.destroy(serializer, expense, onUpdate) }} />
<PencilIcon className='size-6 cursor-pointer' onClick={() => onEdit(expense)} />
</div>
</td>
</tr>
)}
/>

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Inter, Lusitana, Gloria_Hallelujah} from 'next/font/google';

@ -1,45 +1,105 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import { Group } from '@/app/lib/definitions';
import TableOfContents from '../components/table-of-contents';
import { AbstractApi } from '@/app/api/abstract-api';
import { Group, GroupSerializer } from '@/app/lib/group';
import { AdjustmentsHorizontalIcon, PencilIcon, TrashIcon } from '@heroicons/react/24/outline';
import { Column } from 'primereact/column';
import { TreeNode } from 'primereact/treenode';
import { TreeTable } from 'primereact/treetable';
export default function GroupsTable({ groups }: { groups: Group[] }) {
export default function GroupsTable({ groups, onUpdate, onEdit, onEditAffinities }: {
groups: Group[],
onUpdate: () => void,
onEdit: (group: Group) => void,
onEditAffinities: (group: Group) => void,
}) {
const api = new AbstractApi<Group>();
const serializer = new GroupSerializer();
const actions = (group: Group) => (
<div className="flex flex-row items-center">
<TrashIcon className='size-6 cursor-pointer' onClick={() => { api.destroy(serializer, group, onUpdate) }} />
<PencilIcon className='size-6 cursor-pointer' onClick={() => onEdit(group)} />
<AdjustmentsHorizontalIcon className='size-6 cursor-pointer' onClick={() => onEditAffinities(group)} />
</div>
);
const index = groups.reduce((acc, group) => {
if (group.id) {
acc.set(group.id, group)
}
return acc;
}, new Map());
groups.forEach(group => group.children = []);
groups.forEach(group => {
if (group.parentId) {
const parent = index.get(group.parentId);
if (parent) {
if (!parent.children) {
parent.children = [];
}
parent.children.push(group);
}
}
});
const renderTree = (group: Group): TreeNode => {
const childrenAttendance = (group.children || []).reduce((acc, child) => {
acc.confirmed += child.attendance?.confirmed || 0;
acc.tentative += child.attendance?.tentative || 0;
acc.invited += child.attendance?.invited || 0;
acc.declined += child.attendance?.declined || 0;
acc.considered += child.attendance?.considered || 0;
acc.total += child.attendance?.total || 0;
return acc;
}, { confirmed: 0, tentative: 0, invited: 0, declined: 0, considered: 0, total: 0 });
return {
id: group.id,
key: group.id,
label: group.name,
data: {
name: group.name,
color: <div className="w-8 h-8 rounded-full" style={{ backgroundColor: group.color }} />,
confirmed: childrenAttendance.confirmed + (group.attendance?.confirmed || 0),
tentative: childrenAttendance.tentative + (group.attendance?.tentative || 0),
pending: childrenAttendance.invited + (group.attendance?.invited || 0),
declined: childrenAttendance.declined + (group.attendance?.declined || 0),
considered: childrenAttendance.considered + (group.attendance?.considered || 0),
total: childrenAttendance.total + (group.attendance?.total || 0),
actions: actions(group),
},
children: group.children?.map(renderTree),
}
}
const nodes: TreeNode[] = groups
.filter(group => !group.parentId)
.map(renderTree)
const headers = ['Name', 'Color', 'Confirmed', 'Tentative', 'Pending', 'Declined', 'Considered', 'Total', 'Actions'];
const rowClassName = () => {
return { 'border-b odd:bg-white even:bg-gray-50 hover:bg-gray-100': true };
}
return (
<TableOfContents
headers={['Name', 'Color', 'Confirmed', 'Tentative', 'Pending', 'Declined', 'Considered', 'Total']}
caption='Groups'
elements={groups}
rowRender={(group) => (
<tr key={group.id} className="bg-white border-b odd:bg-white odd:dark:bg-gray-900 even:bg-gray-50 even:dark:bg-gray-800">
<td scope="row" className="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
{group.name}
</td>
<td className="px-6">
<div className="w-8 h-8 rounded-full" style={{ backgroundColor: group.color }}></div>
</td>
<td className="px-6 text-lg">
{group.attendance?.confirmed}
</td>
<td className="px-6 text-sm">
{group.attendance?.tentative}
</td>
<td className="px-6 text-sm">
{group.attendance?.invited}
</td>
<td className="px-6 text-sm">
{group.attendance?.declined}
</td>
<td className="px-6 text-sm">
{group.attendance?.considered}
</td>
<td className="px-6 text-sm">
{group.attendance?.total}
</td>
</tr>
)}
/>
<>
<TreeTable value={nodes} rowClassName={rowClassName} className='py-4'>
<Column expander field="name" header="Name" className='w-2/5' />
<Column field="color" header="Color" bodyClassName="text-sm" />
<Column field="confirmed" header="Confirmed" bodyClassName="text-sm" />
<Column field="tentative" header="Tentative" bodyClassName="text-sm" />
<Column field="pending" header="Pending" bodyClassName="text-sm" />
<Column field="declined" header="Declined" bodyClassName="text-sm" />
<Column field="considered" header="Considered" bodyClassName="text-sm" />
<Column field="total" header="Total" bodyClassName="text-sm" />
<Column field="actions" header="Actions" />
</TreeTable>
</>
)
}

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import Skeleton from '@/app/ui/skeleton';

@ -1,10 +1,9 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
import { destroyGuest, updateGuest } from '@/app/api/guests';
import { Guest, GuestStatus } from '@/app/lib/definitions';
import { classNames } from '@/app/ui/components/button';
import { AbstractApi } from '@/app/api/abstract-api';
import { Guest , GuestSerializer} from '@/app/lib/guest';
import { PencilIcon, TrashIcon } from '@heroicons/react/24/outline';
import clsx from 'clsx';
import TableOfContents from '../components/table-of-contents';
@ -14,6 +13,10 @@ export default function guestsTable({ guests, onUpdate, onEdit }: {
onUpdate: () => void,
onEdit: (guest: Guest) => void
}) {
const api = new AbstractApi<Guest>();
const serializer = new GuestSerializer();
return (
<TableOfContents
headers={['Name', 'Group', 'Status', 'Actions']}
@ -45,7 +48,7 @@ export default function guestsTable({ guests, onUpdate, onEdit }: {
</td>
<td>
<div className="flex flex-row items-center">
<TrashIcon className='size-6 cursor-pointer' onClick={() => { destroyGuest(guest, () => onUpdate()) }} />
<TrashIcon className='size-6 cursor-pointer' onClick={() => { api.destroy(serializer, guest, onUpdate)}} />
<PencilIcon className='size-6 cursor-pointer' onClick={() => onEdit(guest)} />
</div>
</td>

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
export default function Skeleton({ className }: { className: string }) {
return <div className={`bg-slate-200 motion-safe:animate-pulse rounded ${className}`} />;

@ -8,30 +8,31 @@
"dependencies": {
"@heroicons/react": "^2.1.4",
"@tailwindcss/forms": "^0.5.7",
"autoprefixer": "10.4.20",
"autoprefixer": "10.4.21",
"bcrypt": "^5.1.1",
"clsx": "^2.1.1",
"next": "15.0.3",
"next": "15.2.1",
"next-auth": "5.0.0-beta.25",
"postcss": "8.4.49",
"postcss": "8.5.3",
"primeicons": "^7.0.0",
"primereact": "^10.8.2",
"react": "19.0.0-rc-f38c22b244-20240704",
"react-dom": "19.0.0-rc-f38c22b244-20240704",
"tailwindcss": "3.4.15",
"typescript": "5.7.2",
"tailwindcss": "3.4.17",
"typescript": "5.8.2",
"use-debounce": "^10.0.1",
"uuid": "11.1.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@playwright/test": "^1.46.0",
"@types/bcrypt": "^5.0.2",
"@types/node": "22.10.1",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1"
"@types/node": "22.13.9",
"@types/react": "18.3.18",
"@types/react-dom": "18.3.5"
},
"engines": {
"node": ">=23.0.0"
},
"packageManager": "pnpm@9.14.4+sha512.c8180b3fbe4e4bca02c94234717896b5529740a6cbadf19fa78254270403ea2f27d4e1d46a08a0f56c89b63dc8ebfd3ee53326da720273794e6200fcf0d184ab"
"packageManager": "pnpm@9.15.7+sha512.ed98f9c748442673c46964b70345bd2282c9b305e8eae539b34ab31d6ef24ef8dd59d8b55f27466f705500b009d9c113471cf87e544f3d5036b297330c26e996"
}

385
pnpm-lock.yaml generated

@ -13,10 +13,10 @@ importers:
version: 2.2.0(react@19.0.0-rc-f38c22b244-20240704)
'@tailwindcss/forms':
specifier: ^0.5.7
version: 0.5.9(tailwindcss@3.4.15)
version: 0.5.10(tailwindcss@3.4.17)
autoprefixer:
specifier: 10.4.20
version: 10.4.20(postcss@8.4.49)
specifier: 10.4.21
version: 10.4.21(postcss@8.5.3)
bcrypt:
specifier: ^5.1.1
version: 5.1.1
@ -24,20 +24,20 @@ importers:
specifier: ^2.1.1
version: 2.1.1
next:
specifier: 15.0.3
version: 15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
specifier: 15.2.1
version: 15.2.1(@playwright/test@1.51.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
next-auth:
specifier: 5.0.0-beta.25
version: 5.0.0-beta.25(next@15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
version: 5.0.0-beta.25(next@15.2.1(@playwright/test@1.51.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
postcss:
specifier: 8.4.49
version: 8.4.49
specifier: 8.5.3
version: 8.5.3
primeicons:
specifier: ^7.0.0
version: 7.0.0
primereact:
specifier: ^10.8.2
version: 10.8.5(@types/react@18.3.12)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
version: 10.9.2(@types/react@18.3.18)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
react:
specifier: 19.0.0-rc-f38c22b244-20240704
version: 19.0.0-rc-f38c22b244-20240704
@ -45,33 +45,36 @@ importers:
specifier: 19.0.0-rc-f38c22b244-20240704
version: 19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704)
tailwindcss:
specifier: 3.4.15
version: 3.4.15
specifier: 3.4.17
version: 3.4.17
typescript:
specifier: 5.7.2
version: 5.7.2
specifier: 5.8.2
version: 5.8.2
use-debounce:
specifier: ^10.0.1
version: 10.0.4(react@19.0.0-rc-f38c22b244-20240704)
uuid:
specifier: 11.1.0
version: 11.1.0
zod:
specifier: ^3.23.8
version: 3.23.8
version: 3.24.2
devDependencies:
'@playwright/test':
specifier: ^1.46.0
version: 1.49.0
version: 1.51.0
'@types/bcrypt':
specifier: ^5.0.2
version: 5.0.2
'@types/node':
specifier: 22.10.1
version: 22.10.1
specifier: 22.13.9
version: 22.13.9
'@types/react':
specifier: 18.3.12
version: 18.3.12
specifier: 18.3.18
version: 18.3.18
'@types/react-dom':
specifier: 18.3.1
version: 18.3.1
specifier: 18.3.5
version: 18.3.5(@types/react@18.3.18)
packages:
@ -93,8 +96,8 @@ packages:
nodemailer:
optional: true
'@babel/runtime@7.26.0':
resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==}
'@babel/runtime@7.26.7':
resolution: {integrity: sha512-AOPI3D+a8dXnja+iwsUqGRjr1BbZIe771sXdapOtYI531gSqpi92vXivKcq2asu/DFpdl1ceFAKZyRzK2PCVcQ==}
engines: {node: '>=6.9.0'}
'@emnapi/runtime@1.2.0':
@ -236,53 +239,53 @@ packages:
resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
hasBin: true
'@next/env@15.0.3':
resolution: {integrity: sha512-t9Xy32pjNOvVn2AS+Utt6VmyrshbpfUMhIjFO60gI58deSo/KgLOp31XZ4O+kY/Is8WAGYwA5gR7kOb1eORDBA==}
'@next/env@15.2.1':
resolution: {integrity: sha512-JmY0qvnPuS2NCWOz2bbby3Pe0VzdAQ7XpEB6uLIHmtXNfAsAO0KLQLkuAoc42Bxbo3/jMC3dcn9cdf+piCcG2Q==}
'@next/swc-darwin-arm64@15.0.3':
resolution: {integrity: sha512-s3Q/NOorCsLYdCKvQlWU+a+GeAd3C8Rb3L1YnetsgwXzhc3UTWrtQpB/3eCjFOdGUj5QmXfRak12uocd1ZiiQw==}
'@next/swc-darwin-arm64@15.2.1':
resolution: {integrity: sha512-aWXT+5KEREoy3K5AKtiKwioeblmOvFFjd+F3dVleLvvLiQ/mD//jOOuUcx5hzcO9ISSw4lrqtUPntTpK32uXXQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
'@next/swc-darwin-x64@15.0.3':
resolution: {integrity: sha512-Zxl/TwyXVZPCFSf0u2BNj5sE0F2uR6iSKxWpq4Wlk/Sv9Ob6YCKByQTkV2y6BCic+fkabp9190hyrDdPA/dNrw==}
'@next/swc-darwin-x64@15.2.1':
resolution: {integrity: sha512-E/w8ervu4fcG5SkLhvn1NE/2POuDCDEy5gFbfhmnYXkyONZR68qbUlJlZwuN82o7BrBVAw+tkR8nTIjGiMW1jQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
'@next/swc-linux-arm64-gnu@15.0.3':
resolution: {integrity: sha512-T5+gg2EwpsY3OoaLxUIofmMb7ohAUlcNZW0fPQ6YAutaWJaxt1Z1h+8zdl4FRIOr5ABAAhXtBcpkZNwUcKI2fw==}
'@next/swc-linux-arm64-gnu@15.2.1':
resolution: {integrity: sha512-gXDX5lIboebbjhiMT6kFgu4svQyjoSed6dHyjx5uZsjlvTwOAnZpn13w9XDaIMFFHw7K8CpBK7HfDKw0VZvUXQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
'@next/swc-linux-arm64-musl@15.0.3':
resolution: {integrity: sha512-WkAk6R60mwDjH4lG/JBpb2xHl2/0Vj0ZRu1TIzWuOYfQ9tt9NFsIinI1Epma77JVgy81F32X/AeD+B2cBu/YQA==}
'@next/swc-linux-arm64-musl@15.2.1':
resolution: {integrity: sha512-3v0pF/adKZkBWfUffmB/ROa+QcNTrnmYG4/SS+r52HPwAK479XcWoES2I+7F7lcbqc7mTeVXrIvb4h6rR/iDKg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
'@next/swc-linux-x64-gnu@15.0.3':
resolution: {integrity: sha512-gWL/Cta1aPVqIGgDb6nxkqy06DkwJ9gAnKORdHWX1QBbSZZB+biFYPFti8aKIQL7otCE1pjyPaXpFzGeG2OS2w==}
'@next/swc-linux-x64-gnu@15.2.1':
resolution: {integrity: sha512-RbsVq2iB6KFJRZ2cHrU67jLVLKeuOIhnQB05ygu5fCNgg8oTewxweJE8XlLV+Ii6Y6u4EHwETdUiRNXIAfpBww==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
'@next/swc-linux-x64-musl@15.0.3':
resolution: {integrity: sha512-QQEMwFd8r7C0GxQS62Zcdy6GKx999I/rTO2ubdXEe+MlZk9ZiinsrjwoiBL5/57tfyjikgh6GOU2WRQVUej3UA==}
'@next/swc-linux-x64-musl@15.2.1':
resolution: {integrity: sha512-QHsMLAyAIu6/fWjHmkN/F78EFPKmhQlyX5C8pRIS2RwVA7z+t9cTb0IaYWC3EHLOTjsU7MNQW+n2xGXr11QPpg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
'@next/swc-win32-arm64-msvc@15.0.3':
resolution: {integrity: sha512-9TEp47AAd/ms9fPNgtgnT7F3M1Hf7koIYYWCMQ9neOwjbVWJsHZxrFbI3iEDJ8rf1TDGpmHbKxXf2IFpAvheIQ==}
'@next/swc-win32-arm64-msvc@15.2.1':
resolution: {integrity: sha512-Gk42XZXo1cE89i3hPLa/9KZ8OuupTjkDmhLaMKFohjf9brOeZVEa3BQy1J9s9TWUqPhgAEbwv6B2+ciGfe54Vw==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
'@next/swc-win32-x64-msvc@15.0.3':
resolution: {integrity: sha512-VNAz+HN4OGgvZs6MOoVfnn41kBzT+M+tB+OK4cww6DNyWS6wKaDpaAm/qLeOUbnMh0oVx1+mg0uoYARF69dJyA==}
'@next/swc-win32-x64-msvc@15.2.1':
resolution: {integrity: sha512-YjqXCl8QGhVlMR8uBftWk0iTmvtntr41PhG1kvzGp0sUP/5ehTM+cwx25hKE54J0CRnHYjSGjSH3gkHEaHIN9g==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@ -306,21 +309,21 @@ packages:
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
'@playwright/test@1.49.0':
resolution: {integrity: sha512-DMulbwQURa8rNIQrf94+jPJQ4FmOVdpE5ZppRNvWVjvhC+6sOeo28r8MgIpQRYouXRtt/FCCXU7zn20jnHR4Qw==}
'@playwright/test@1.51.0':
resolution: {integrity: sha512-dJ0dMbZeHhI+wb77+ljx/FeC8VBP6j/rj9OAojO08JI80wTZy6vRk9KvHKiDCUh4iMpEiseMgqRBIeW+eKX6RA==}
engines: {node: '>=18'}
hasBin: true
'@swc/counter@0.1.3':
resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
'@swc/helpers@0.5.13':
resolution: {integrity: sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w==}
'@swc/helpers@0.5.15':
resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}
'@tailwindcss/forms@0.5.9':
resolution: {integrity: sha512-tM4XVr2+UVTxXJzey9Twx48c1gcxFStqn1pQz0tRsX8o3DvxhN5oY5pvyAbUx7VTaZxpej4Zzvc6h+1RJBzpIg==}
'@tailwindcss/forms@0.5.10':
resolution: {integrity: sha512-utI1ONF6uf/pPNO68kmN1b8rEwNXv3czukalo8VtJH8ksIkZXr3Q3VYudZLkCsDd4Wku120uF02hYK25XGPorw==}
peerDependencies:
tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20'
tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1 || >= 4.0.0-alpha.20 || >= 4.0.0-beta.1'
'@types/bcrypt@5.0.2':
resolution: {integrity: sha512-6atioO8Y75fNcbmj0G7UjI9lXN2pQ/IGJ2FWT4a/btd0Lk9lQalHLKhkgKVZ3r+spnmWUKfbMi1GEe9wyHQfNQ==}
@ -328,20 +331,24 @@ packages:
'@types/cookie@0.6.0':
resolution: {integrity: sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA==}
'@types/node@22.10.1':
resolution: {integrity: sha512-qKgsUwfHZV2WCWLAnVP1JqnpE6Im6h3Y0+fYgMTasNQ7V++CBX5OT1as0g0f+OyubbFqhf6XVNIsmN4IIhEgGQ==}
'@types/node@22.13.9':
resolution: {integrity: sha512-acBjXdRJ3A6Pb3tqnw9HZmyR3Fiol3aGxRCK1x3d+6CDAMjl7I649wpSd+yNURCjbOUGu9tqtLKnTGxmK6CyGw==}
'@types/prop-types@15.7.12':
resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==}
'@types/react-dom@18.3.1':
resolution: {integrity: sha512-qW1Mfv8taImTthu4KoXgDfLuk4bydU6Q/TkADnDWWHwi4NX4BR+LWfTp2sVmTqRrsHvyDDTelgelxJ+SsejKKQ==}
'@types/react-dom@18.3.5':
resolution: {integrity: sha512-P4t6saawp+b/dFrUr2cvkVsfvPguwsxtH6dNIYRllMsefqFzkZk5UIjzyDOv5g1dXIPdG4Sp1yCR4Z6RCUsG/Q==}
peerDependencies:
'@types/react': ^18.0.0
'@types/react-transition-group@4.4.11':
resolution: {integrity: sha512-RM05tAniPZ5DZPzzNFP+DmrcOdD0efDUxMy3145oljWSl3x9ZV5vhme98gTxFrj2lhXvmGNnUiuDyJgY9IKkNA==}
'@types/react-transition-group@4.4.12':
resolution: {integrity: sha512-8TV6R3h2j7a91c+1DXdJi3Syo69zzIZbz7Lg5tORM5LEJG7X/E6a1V3drRyBRZq7/utz7A+c4OgYLiLcYGHG6w==}
peerDependencies:
'@types/react': '*'
'@types/react@18.3.12':
resolution: {integrity: sha512-D2wOSq/d6Agt28q7rSI3jhU7G6aiuzljDGZ2hTZHIkrTLUI+AF3WMeKkEZ9nN2fkBAlcktT6vcZjDFiIhMYEQw==}
'@types/react@18.3.18':
resolution: {integrity: sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==}
abbrev@1.1.1:
resolution: {integrity: sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==}
@ -384,8 +391,8 @@ packages:
arg@5.0.2:
resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
autoprefixer@10.4.20:
resolution: {integrity: sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==}
autoprefixer@10.4.21:
resolution: {integrity: sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==}
engines: {node: ^10 || ^12 || >=14}
hasBin: true
peerDependencies:
@ -412,8 +419,8 @@ packages:
resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
engines: {node: '>=8'}
browserslist@4.23.3:
resolution: {integrity: sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA==}
browserslist@4.24.4:
resolution: {integrity: sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==}
engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
hasBin: true
@ -428,6 +435,9 @@ packages:
caniuse-lite@1.0.30001651:
resolution: {integrity: sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg==}
caniuse-lite@1.0.30001702:
resolution: {integrity: sha512-LoPe/D7zioC0REI5W73PeR1e1MLCipRGq/VkovJnd6Df+QVqT+vT33OXCp8QUd7kA7RZrHWxb1B36OQKI/0gOA==}
chokidar@3.6.0:
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
engines: {node: '>= 8.10.0'}
@ -515,8 +525,8 @@ packages:
eastasianwidth@0.2.0:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
electron-to-chromium@1.5.6:
resolution: {integrity: sha512-jwXWsM5RPf6j9dPYzaorcBSUg6AiqocPEyMpkchkvntaH9HGfOOMZwxMJjDY/XEs3T5dM7uyH1VhRMkqUU9qVw==}
electron-to-chromium@1.5.113:
resolution: {integrity: sha512-wjT2O4hX+wdWPJ76gWSkMhcHAV2PTMX+QetUCPYEdCIe+cxmgzzSSiGRCKW8nuh4mwKZlpv0xvoW7OF2X+wmHg==}
emoji-regex@8.0.0:
resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
@ -524,8 +534,8 @@ packages:
emoji-regex@9.2.2:
resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}
escalade@3.1.2:
resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==}
escalade@3.2.0:
resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
engines: {node: '>=6'}
fast-glob@3.3.2:
@ -649,12 +659,8 @@ packages:
js-tokens@4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
lilconfig@2.1.0:
resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==}
engines: {node: '>=10'}
lilconfig@3.1.1:
resolution: {integrity: sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ==}
lilconfig@3.1.3:
resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}
engines: {node: '>=14'}
lines-and-columns@1.2.4:
@ -718,8 +724,8 @@ packages:
mz@2.7.0:
resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==}
nanoid@3.3.7:
resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}
nanoid@3.3.8:
resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==}
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
hasBin: true
@ -739,16 +745,16 @@ packages:
nodemailer:
optional: true
next@15.0.3:
resolution: {integrity: sha512-ontCbCRKJUIoivAdGB34yCaOcPgYXr9AAkV/IwqFfWWTXEPUgLYkSkqBhIk9KK7gGmgjc64B+RdoeIDM13Irnw==}
next@15.2.1:
resolution: {integrity: sha512-zxbsdQv3OqWXybK5tMkPCBKyhIz63RstJ+NvlfkaLMc/m5MwXgz2e92k+hSKcyBpyADhMk2C31RIiaDjUZae7g==}
engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
hasBin: true
peerDependencies:
'@opentelemetry/api': ^1.1.0
'@playwright/test': ^1.41.2
babel-plugin-react-compiler: '*'
react: ^18.2.0 || 19.0.0-rc-66855b96-20241106
react-dom: ^18.2.0 || 19.0.0-rc-66855b96-20241106
react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
sass: ^1.3.0
peerDependenciesMeta:
'@opentelemetry/api':
@ -772,8 +778,8 @@ packages:
encoding:
optional: true
node-releases@2.0.18:
resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==}
node-releases@2.0.19:
resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==}
nopt@5.0.0:
resolution: {integrity: sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==}
@ -821,9 +827,6 @@ packages:
resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==}
engines: {node: '>=16 || 14 >=14.18'}
picocolors@1.0.1:
resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==}
picocolors@1.1.1:
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
@ -839,13 +842,13 @@ packages:
resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==}
engines: {node: '>= 6'}
playwright-core@1.49.0:
resolution: {integrity: sha512-R+3KKTQF3npy5GTiKH/T+kdhoJfJojjHESR1YEWhYuEKRVfVaxH3+4+GvXE5xyCngCxhxnykk0Vlah9v8fs3jA==}
playwright-core@1.51.0:
resolution: {integrity: sha512-x47yPE3Zwhlil7wlNU/iktF7t2r/URR3VLbH6EknJd/04Qc/PSJ0EY3CMXipmglLG+zyRxW6HNo2EGbKLHPWMg==}
engines: {node: '>=18'}
hasBin: true
playwright@1.49.0:
resolution: {integrity: sha512-eKpmys0UFDnfNb3vfsf8Vx2LEOtflgRebl0Im2eQQnYMA4Aqd+Zw8bEOB+7ZKvN76901mRnqdsiOGKxzVTbi7A==}
playwright@1.51.0:
resolution: {integrity: sha512-442pTfGM0xxfCYxuBa/Pu6B2OqxqqaYq39JS8QDMGThUvIOCd6s0ANDog3uwA0cHavVlnTQzGCN7Id2YekDSXA==}
engines: {node: '>=18'}
hasBin: true
@ -890,8 +893,8 @@ packages:
resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
engines: {node: ^10 || ^12 || >=14}
postcss@8.4.49:
resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==}
postcss@8.5.3:
resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==}
engines: {node: ^10 || ^12 || >=14}
preact-render-to-string@5.2.3:
@ -908,8 +911,8 @@ packages:
primeicons@7.0.0:
resolution: {integrity: sha512-jK3Et9UzwzTsd6tzl2RmwrVY/b8raJ3QZLzoDACj+oTJ0oX7L9Hy+XnVwgo4QVKlKpnP/Ur13SXV/pVh4LzaDw==}
primereact@10.8.5:
resolution: {integrity: sha512-B1LeJdNGGAB8P1VRJE0TDYz6rZSDwxE7Ft8PLFjRYLO44+mIJNDsLYSB56LRJOoqUNRhQrRIe/5ctS5eyQAzwQ==}
primereact@10.9.2:
resolution: {integrity: sha512-uJTghCPlnPWJc0mvkqYJDj6bl4udROPGrMEfV4CPh7UurMS+E8b+82ABZ+OPWibQOWxnEQl5NXcfG4F/7YRXwA==}
engines: {node: '>=14.0.0'}
peerDependencies:
'@types/react': ^17.0.0 || ^18.0.0 || ^19.0.0
@ -1067,8 +1070,8 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
tailwindcss@3.4.15:
resolution: {integrity: sha512-r4MeXnfBmSOuKUWmXe6h2CcyfzJCEk4F0pptO5jlnYSIViUkVmsawj80N5h2lO3gwcmSb4n3PuN+e+GC1Guylw==}
tailwindcss@3.4.17:
resolution: {integrity: sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==}
engines: {node: '>=14.0.0'}
hasBin: true
@ -1093,19 +1096,19 @@ packages:
ts-interface-checker@0.1.13:
resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==}
tslib@2.6.3:
resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==}
tslib@2.8.1:
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
typescript@5.7.2:
resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==}
typescript@5.8.2:
resolution: {integrity: sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==}
engines: {node: '>=14.17'}
hasBin: true
undici-types@6.20.0:
resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==}
update-browserslist-db@1.1.0:
resolution: {integrity: sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==}
update-browserslist-db@1.1.3:
resolution: {integrity: sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==}
hasBin: true
peerDependencies:
browserslist: '>= 4.21.0'
@ -1119,6 +1122,10 @@ packages:
util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
uuid@11.1.0:
resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}
hasBin: true
webidl-conversions@3.0.1:
resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==}
@ -1152,8 +1159,8 @@ packages:
engines: {node: '>= 14'}
hasBin: true
zod@3.23.8:
resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}
zod@3.24.2:
resolution: {integrity: sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==}
snapshots:
@ -1169,13 +1176,13 @@ snapshots:
preact: 10.11.3
preact-render-to-string: 5.2.3(preact@10.11.3)
'@babel/runtime@7.26.0':
'@babel/runtime@7.26.7':
dependencies:
regenerator-runtime: 0.14.1
'@emnapi/runtime@1.2.0':
dependencies:
tslib: 2.6.3
tslib: 2.8.1
optional: true
'@heroicons/react@2.2.0(react@19.0.0-rc-f38c22b244-20240704)':
@ -1298,30 +1305,30 @@ snapshots:
- encoding
- supports-color
'@next/env@15.0.3': {}
'@next/env@15.2.1': {}
'@next/swc-darwin-arm64@15.0.3':
'@next/swc-darwin-arm64@15.2.1':
optional: true
'@next/swc-darwin-x64@15.0.3':
'@next/swc-darwin-x64@15.2.1':
optional: true
'@next/swc-linux-arm64-gnu@15.0.3':
'@next/swc-linux-arm64-gnu@15.2.1':
optional: true
'@next/swc-linux-arm64-musl@15.0.3':
'@next/swc-linux-arm64-musl@15.2.1':
optional: true
'@next/swc-linux-x64-gnu@15.0.3':
'@next/swc-linux-x64-gnu@15.2.1':
optional: true
'@next/swc-linux-x64-musl@15.0.3':
'@next/swc-linux-x64-musl@15.2.1':
optional: true
'@next/swc-win32-arm64-msvc@15.0.3':
'@next/swc-win32-arm64-msvc@15.2.1':
optional: true
'@next/swc-win32-x64-msvc@15.0.3':
'@next/swc-win32-x64-msvc@15.2.1':
optional: true
'@nodelib/fs.scandir@2.1.5':
@ -1341,42 +1348,42 @@ snapshots:
'@pkgjs/parseargs@0.11.0':
optional: true
'@playwright/test@1.49.0':
'@playwright/test@1.51.0':
dependencies:
playwright: 1.49.0
playwright: 1.51.0
'@swc/counter@0.1.3': {}
'@swc/helpers@0.5.13':
'@swc/helpers@0.5.15':
dependencies:
tslib: 2.6.3
tslib: 2.8.1
'@tailwindcss/forms@0.5.9(tailwindcss@3.4.15)':
'@tailwindcss/forms@0.5.10(tailwindcss@3.4.17)':
dependencies:
mini-svg-data-uri: 1.4.4
tailwindcss: 3.4.15
tailwindcss: 3.4.17
'@types/bcrypt@5.0.2':
dependencies:
'@types/node': 22.10.1
'@types/node': 22.13.9
'@types/cookie@0.6.0': {}
'@types/node@22.10.1':
'@types/node@22.13.9':
dependencies:
undici-types: 6.20.0
'@types/prop-types@15.7.12': {}
'@types/react-dom@18.3.1':
'@types/react-dom@18.3.5(@types/react@18.3.18)':
dependencies:
'@types/react': 18.3.12
'@types/react': 18.3.18
'@types/react-transition-group@4.4.11':
'@types/react-transition-group@4.4.12(@types/react@18.3.18)':
dependencies:
'@types/react': 18.3.12
'@types/react': 18.3.18
'@types/react@18.3.12':
'@types/react@18.3.18':
dependencies:
'@types/prop-types': 15.7.12
csstype: 3.1.3
@ -1415,14 +1422,14 @@ snapshots:
arg@5.0.2: {}
autoprefixer@10.4.20(postcss@8.4.49):
autoprefixer@10.4.21(postcss@8.5.3):
dependencies:
browserslist: 4.23.3
caniuse-lite: 1.0.30001651
browserslist: 4.24.4
caniuse-lite: 1.0.30001702
fraction.js: 4.3.7
normalize-range: 0.1.2
picocolors: 1.0.1
postcss: 8.4.49
picocolors: 1.1.1
postcss: 8.5.3
postcss-value-parser: 4.2.0
balanced-match@1.0.2: {}
@ -1450,12 +1457,12 @@ snapshots:
dependencies:
fill-range: 7.1.1
browserslist@4.23.3:
browserslist@4.24.4:
dependencies:
caniuse-lite: 1.0.30001651
electron-to-chromium: 1.5.6
node-releases: 2.0.18
update-browserslist-db: 1.1.0(browserslist@4.23.3)
caniuse-lite: 1.0.30001702
electron-to-chromium: 1.5.113
node-releases: 2.0.19
update-browserslist-db: 1.1.3(browserslist@4.24.4)
busboy@1.6.0:
dependencies:
@ -1465,6 +1472,8 @@ snapshots:
caniuse-lite@1.0.30001651: {}
caniuse-lite@1.0.30001702: {}
chokidar@3.6.0:
dependencies:
anymatch: 3.1.3
@ -1535,18 +1544,18 @@ snapshots:
dom-helpers@5.2.1:
dependencies:
'@babel/runtime': 7.26.0
'@babel/runtime': 7.26.7
csstype: 3.1.3
eastasianwidth@0.2.0: {}
electron-to-chromium@1.5.6: {}
electron-to-chromium@1.5.113: {}
emoji-regex@8.0.0: {}
emoji-regex@9.2.2: {}
escalade@3.1.2: {}
escalade@3.2.0: {}
fast-glob@3.3.2:
dependencies:
@ -1677,9 +1686,7 @@ snapshots:
js-tokens@4.0.0: {}
lilconfig@2.1.0: {}
lilconfig@3.1.1: {}
lilconfig@3.1.3: {}
lines-and-columns@1.2.4: {}
@ -1733,19 +1740,19 @@ snapshots:
object-assign: 4.1.1
thenify-all: 1.6.0
nanoid@3.3.7: {}
nanoid@3.3.8: {}
next-auth@5.0.0-beta.25(next@15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
next-auth@5.0.0-beta.25(next@15.2.1(@playwright/test@1.51.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
dependencies:
'@auth/core': 0.37.2
next: 15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
next: 15.2.1(@playwright/test@1.51.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
react: 19.0.0-rc-f38c22b244-20240704
next@15.0.3(@playwright/test@1.49.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
next@15.2.1(@playwright/test@1.51.0)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
dependencies:
'@next/env': 15.0.3
'@next/env': 15.2.1
'@swc/counter': 0.1.3
'@swc/helpers': 0.5.13
'@swc/helpers': 0.5.15
busboy: 1.6.0
caniuse-lite: 1.0.30001651
postcss: 8.4.31
@ -1753,15 +1760,15 @@ snapshots:
react-dom: 19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704)
styled-jsx: 5.1.6(react@19.0.0-rc-f38c22b244-20240704)
optionalDependencies:
'@next/swc-darwin-arm64': 15.0.3
'@next/swc-darwin-x64': 15.0.3
'@next/swc-linux-arm64-gnu': 15.0.3
'@next/swc-linux-arm64-musl': 15.0.3
'@next/swc-linux-x64-gnu': 15.0.3
'@next/swc-linux-x64-musl': 15.0.3
'@next/swc-win32-arm64-msvc': 15.0.3
'@next/swc-win32-x64-msvc': 15.0.3
'@playwright/test': 1.49.0
'@next/swc-darwin-arm64': 15.2.1
'@next/swc-darwin-x64': 15.2.1
'@next/swc-linux-arm64-gnu': 15.2.1
'@next/swc-linux-arm64-musl': 15.2.1
'@next/swc-linux-x64-gnu': 15.2.1
'@next/swc-linux-x64-musl': 15.2.1
'@next/swc-win32-arm64-msvc': 15.2.1
'@next/swc-win32-x64-msvc': 15.2.1
'@playwright/test': 1.51.0
sharp: 0.33.5
transitivePeerDependencies:
- '@babel/core'
@ -1773,7 +1780,7 @@ snapshots:
dependencies:
whatwg-url: 5.0.0
node-releases@2.0.18: {}
node-releases@2.0.19: {}
nopt@5.0.0:
dependencies:
@ -1811,8 +1818,6 @@ snapshots:
lru-cache: 10.2.2
minipass: 7.1.2
picocolors@1.0.1: {}
picocolors@1.1.1: {}
picomatch@2.3.1: {}
@ -1821,36 +1826,36 @@ snapshots:
pirates@4.0.6: {}
playwright-core@1.49.0: {}
playwright-core@1.51.0: {}
playwright@1.49.0:
playwright@1.51.0:
dependencies:
playwright-core: 1.49.0
playwright-core: 1.51.0
optionalDependencies:
fsevents: 2.3.2
postcss-import@15.1.0(postcss@8.4.49):
postcss-import@15.1.0(postcss@8.5.3):
dependencies:
postcss: 8.4.49
postcss: 8.5.3
postcss-value-parser: 4.2.0
read-cache: 1.0.0
resolve: 1.22.8
postcss-js@4.0.1(postcss@8.4.49):
postcss-js@4.0.1(postcss@8.5.3):
dependencies:
camelcase-css: 2.0.1
postcss: 8.4.49
postcss: 8.5.3
postcss-load-config@4.0.2(postcss@8.4.49):
postcss-load-config@4.0.2(postcss@8.5.3):
dependencies:
lilconfig: 3.1.1
lilconfig: 3.1.3
yaml: 2.4.3
optionalDependencies:
postcss: 8.4.49
postcss: 8.5.3
postcss-nested@6.2.0(postcss@8.4.49):
postcss-nested@6.2.0(postcss@8.5.3):
dependencies:
postcss: 8.4.49
postcss: 8.5.3
postcss-selector-parser: 6.1.2
postcss-selector-parser@6.1.2:
@ -1862,13 +1867,13 @@ snapshots:
postcss@8.4.31:
dependencies:
nanoid: 3.3.7
nanoid: 3.3.8
picocolors: 1.1.1
source-map-js: 1.2.1
postcss@8.4.49:
postcss@8.5.3:
dependencies:
nanoid: 3.3.7
nanoid: 3.3.8
picocolors: 1.1.1
source-map-js: 1.2.1
@ -1883,14 +1888,14 @@ snapshots:
primeicons@7.0.0: {}
primereact@10.8.5(@types/react@18.3.12)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
primereact@10.9.2(@types/react@18.3.18)(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
dependencies:
'@types/react-transition-group': 4.4.11
'@types/react-transition-group': 4.4.12(@types/react@18.3.18)
react: 19.0.0-rc-f38c22b244-20240704
react-dom: 19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704)
react-transition-group: 4.4.5(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704)
optionalDependencies:
'@types/react': 18.3.12
'@types/react': 18.3.18
prop-types@15.8.1:
dependencies:
@ -1909,7 +1914,7 @@ snapshots:
react-transition-group@4.4.5(react-dom@19.0.0-rc-f38c22b244-20240704(react@19.0.0-rc-f38c22b244-20240704))(react@19.0.0-rc-f38c22b244-20240704):
dependencies:
'@babel/runtime': 7.26.0
'@babel/runtime': 7.26.7
dom-helpers: 5.2.1
loose-envify: 1.4.0
prop-types: 15.8.1
@ -2050,7 +2055,7 @@ snapshots:
supports-preserve-symlinks-flag@1.0.0: {}
tailwindcss@3.4.15:
tailwindcss@3.4.17:
dependencies:
'@alloc/quick-lru': 5.2.0
arg: 5.0.2
@ -2061,16 +2066,16 @@ snapshots:
glob-parent: 6.0.2
is-glob: 4.0.3
jiti: 1.21.6
lilconfig: 2.1.0
lilconfig: 3.1.3
micromatch: 4.0.8
normalize-path: 3.0.0
object-hash: 3.0.0
picocolors: 1.1.1
postcss: 8.4.49
postcss-import: 15.1.0(postcss@8.4.49)
postcss-js: 4.0.1(postcss@8.4.49)
postcss-load-config: 4.0.2(postcss@8.4.49)
postcss-nested: 6.2.0(postcss@8.4.49)
postcss: 8.5.3
postcss-import: 15.1.0(postcss@8.5.3)
postcss-js: 4.0.1(postcss@8.5.3)
postcss-load-config: 4.0.2(postcss@8.5.3)
postcss-nested: 6.2.0(postcss@8.5.3)
postcss-selector-parser: 6.1.2
resolve: 1.22.8
sucrase: 3.35.0
@ -2102,16 +2107,16 @@ snapshots:
ts-interface-checker@0.1.13: {}
tslib@2.6.3: {}
tslib@2.8.1: {}
typescript@5.7.2: {}
typescript@5.8.2: {}
undici-types@6.20.0: {}
update-browserslist-db@1.1.0(browserslist@4.23.3):
update-browserslist-db@1.1.3(browserslist@4.24.4):
dependencies:
browserslist: 4.23.3
escalade: 3.1.2
browserslist: 4.24.4
escalade: 3.2.0
picocolors: 1.1.1
use-debounce@10.0.4(react@19.0.0-rc-f38c22b244-20240704):
@ -2120,6 +2125,8 @@ snapshots:
util-deprecate@1.0.2: {}
uuid@11.1.0: {}
webidl-conversions@3.0.1: {}
whatwg-url@5.0.0:
@ -2153,4 +2160,4 @@ snapshots:
yaml@2.4.3: {}
zod@3.23.8: {}
zod@3.24.2: {}