Compare commits

..

5 Commits

Author SHA1 Message Date
Renovate Bot
78f386852d Update dependency react-dom to v19.0.0
Some checks failed
Playwright Tests / test (pull_request) Has been skipped
Check usage of free licenses / build-static-assets (pull_request) Failing after 2m12s
Add copyright notice / copyright_notice (pull_request) Successful in 2m59s
Build Nginx-based docker image / build-static-assets (push) Failing after 8m38s
2025-01-14 03:06:01 +00:00
5c2249621d Merge pull request 'Update copyright assignment to cover 2025 and include all contributors' (#180) from copyright-2025 into main
All checks were successful
Playwright Tests / test (push) Has been skipped
Check usage of free licenses / build-static-assets (push) Successful in 1m15s
Build Nginx-based docker image / build-static-assets (push) Successful in 6m34s
Reviewed-on: #180
2025-01-13 20:43:00 +00:00
501bb3a81a Update copyright assignment to cover 2025 and include all contributors
All checks were successful
Playwright Tests / test (pull_request) Has been skipped
Check usage of free licenses / build-static-assets (pull_request) Successful in 1m12s
Add copyright notice / copyright_notice (pull_request) Successful in 1m32s
Build Nginx-based docker image / build-static-assets (push) Successful in 6m2s
2025-01-13 21:36:52 +01:00
69f6fcbebe Merge pull request 'Define a button to reset the affinities of all groups' (#179) from reset-all-affinities into main
All checks were successful
Playwright Tests / test (push) Has been skipped
Check usage of free licenses / build-static-assets (push) Successful in 1m28s
Build Nginx-based docker image / build-static-assets (push) Successful in 5m40s
Reviewed-on: #179
2025-01-13 20:31:56 +00:00
5d7c71b9ab Define a button to reset the affinities of all groups
All checks were successful
Playwright Tests / test (pull_request) Has been skipped
Check usage of free licenses / build-static-assets (pull_request) Successful in 26s
Add copyright notice / copyright_notice (pull_request) Successful in 29s
Build Nginx-based docker image / build-static-assets (push) Successful in 2m27s
2025-01-13 21:29:24 +01:00
47 changed files with 63 additions and 48 deletions

View File

@ -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'

View File

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

View File

@ -1,10 +1,11 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
'use client';
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';
@ -31,6 +32,16 @@ export default function Page() {
});
}
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);
@ -70,7 +81,11 @@ export default function Page() {
<TabPanel header="Groups" leftIcon="pi pi-sitemap mx-2">
<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}

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Entity } from '@/app/lib/definitions';
import { getCsrfToken, getSlug } from '@/app/lib/utils';

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { asArray, getCsrfToken, getSlug } from '@/app/lib/utils';
import { Captcha, StructuredErrors, User } from '@/app/lib/definitions';

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { data } from "autoprefixer";
import { getCsrfToken } from "../lib/utils";

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { NextResponse } from "next/server";

View File

@ -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';

View File

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

View File

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

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { AttendanceSummary } from "./group";
import { Guest } from "./guest";

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Serializable } from "../api/abstract-api";
import { Entity } from "./definitions";

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Entity } from "./definitions";

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Serializable } from "../api/abstract-api";
import { Entity } from "./definitions";

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import { Serializable } from "../api/abstract-api";
import { Entity } from "./definitions";

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
export const getCsrfToken = () => {
return document.cookie

View File

@ -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'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2024 Manuel Bustillo*/
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
import clsx from "clsx"
import { Icon } from "../../types";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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 (

View File

@ -1,4 +1,4 @@
/* 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";

View File

@ -1,4 +1,4 @@
/* 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';

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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}`} />;