Compare commits

..

22 Commits

Author SHA1 Message Date
45e2665997 Pass the ID of the guests that has just been invited
Some checks failed
Check usage of free licenses / build-static-assets (pull_request) Successful in 39s
Build Nginx-based docker image / build-static-assets (pull_request) Failing after 1m37s
Playwright Tests / test (pull_request) Successful in 3m56s
2024-10-27 12:05:35 +01:00
ae7b338771 Restructure the update payload 2024-10-27 11:58:48 +01:00
7ea96ea7ad Make patch request to the backend whenever a guest is invited 2024-10-27 11:56:04 +01:00
dde976b076 Create a button to invite guests 2024-10-27 11:53:45 +01:00
63d4420806 Restore usage of client component and remove explicit async
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 22s
Playwright Tests / test (pull_request) Successful in 2m37s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 4m29s
2024-10-27 11:52:42 +01:00
de595bbf51 Avoid infinite loop by marking the component as server-side
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 25s
Playwright Tests / test (pull_request) Successful in 2m39s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 4m9s
2024-10-27 11:37:27 +01:00
7c6f00155a Merge pull request 'Define a gitea action to prevent the inclusion of nonfree dependencies' (#61) from license-finder into main
All checks were successful
Check usage of free licenses / build-static-assets (push) Successful in 58s
Playwright Tests / test (push) Successful in 3m22s
Build Nginx-based docker image / build-static-assets (push) Successful in 4m39s
Reviewed-on: #61
2024-10-27 10:17:24 +00:00
924922c425 Define a gitea action to prevent the inclusion of nonfree dependencies
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 3m19s
Playwright Tests / test (pull_request) Successful in 3m27s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 6m26s
2024-10-27 11:10:49 +01:00
Renovate Bot
5230b96983 Update dependency next to v15.0.1
Some checks failed
Playwright Tests / test (pull_request) Successful in 7m23s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 15m43s
Playwright Tests / test (push) Failing after 4m57s
Build Nginx-based docker image / build-static-assets (push) Failing after 10m0s
2024-10-25 22:14:27 +00:00
Renovate Bot
7cbd683857 Update dependency node to v22.10.0
All checks were successful
Playwright Tests / test (pull_request) Successful in 8m40s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 16m8s
Playwright Tests / test (push) Successful in 5m4s
Build Nginx-based docker image / build-static-assets (push) Successful in 12m11s
2024-10-24 22:10:17 +00:00
Renovate Bot
a74a15bdb6 Update dependency @playwright/test to v1.48.1
All checks were successful
Playwright Tests / test (pull_request) Successful in 7m52s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 23m14s
Playwright Tests / test (push) Successful in 7m54s
Build Nginx-based docker image / build-static-assets (push) Successful in 11m10s
2024-10-23 22:10:21 +00:00
Renovate Bot
67a92722be Update dependency typescript to v5.6.3
All checks were successful
Playwright Tests / test (push) Successful in 8m26s
Build Nginx-based docker image / build-static-assets (push) Successful in 10m58s
2024-10-22 23:13:27 +00:00
Renovate Bot
dad56c029c Update dependency use-debounce to v10.0.4
Some checks failed
Playwright Tests / test (push) Has been cancelled
Build Nginx-based docker image / build-static-assets (push) Has been cancelled
2024-10-22 22:55:22 +00:00
Renovate Bot
0c83f96d20 Update dependency next-auth to v5.0.0-beta.25
Some checks are pending
Playwright Tests / test (pull_request) Successful in 4m40s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 9m20s
Build Nginx-based docker image / build-static-assets (push) Waiting to run
Playwright Tests / test (push) Waiting to run
2024-10-22 22:08:52 +00:00
Renovate Bot
26f2ab63a2 Update dependency tailwindcss to v3.4.14
All checks were successful
Playwright Tests / test (push) Successful in 7m26s
Build Nginx-based docker image / build-static-assets (push) Successful in 15m56s
2024-10-21 23:42:09 +00:00
Renovate Bot
fb83e45508 Update dependency primereact to v10.8.4
Some checks are pending
Build Nginx-based docker image / build-static-assets (push) Waiting to run
Playwright Tests / test (push) Waiting to run
2024-10-21 23:26:51 +00:00
Renovate Bot
b16e87e118 Update dependency next to v15.0.0
Some checks are pending
Build Nginx-based docker image / build-static-assets (push) Waiting to run
Playwright Tests / test (push) Waiting to run
2024-10-21 23:20:25 +00:00
Renovate Bot
6d695bdb91 Update dependency @types/react-dom to v18.3.1
Some checks are pending
Playwright Tests / test (pull_request) Successful in 10m3s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 28m57s
Build Nginx-based docker image / build-static-assets (push) Waiting to run
Playwright Tests / test (push) Waiting to run
2024-10-21 22:08:26 +00:00
ec81e8b38c Merge pull request 'Update dependency postcss to v8.4.47' (#41) from renovate/postcss-8.x into main
All checks were successful
Playwright Tests / test (push) Successful in 8m8s
Build Nginx-based docker image / build-static-assets (push) Successful in 10m58s
Reviewed-on: #41
2024-10-21 09:40:57 +00:00
1017e2c582 Merge pull request 'Update dependency @tailwindcss/forms to v0.5.9' (#43) from renovate/tailwindcss-forms-0.x-lockfile into main
Some checks failed
Playwright Tests / test (push) Waiting to run
Build Nginx-based docker image / build-static-assets (push) Has been cancelled
Reviewed-on: #43
2024-10-21 09:40:40 +00:00
Renovate Bot
977c39dc77 Update dependency @tailwindcss/forms to v0.5.9
All checks were successful
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 3m51s
Playwright Tests / test (pull_request) Successful in 2m2s
2024-10-16 22:06:14 +00:00
Renovate Bot
7fc5dd90db Update dependency postcss to v8.4.47
All checks were successful
Playwright Tests / test (pull_request) Successful in 3m37s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 16m37s
2024-09-20 20:14:57 +00:00
6 changed files with 422 additions and 319 deletions

20
.github/workflows/license_finder.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Check usage of free licenses
on:
push:
branches:
- main
pull_request:
jobs:
build-static-assets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- name: Install license finder gem
run: gem install license_finder
- name: Run license finder
run: license_finder

2
.nvmrc
View File

@ -1 +1 @@
22.8.0 22.10.0

View File

@ -1,38 +1,41 @@
'use client' 'use client';
import { Guest } from '@/app/lib/definitions';
import SkeletonRow from './skeleton-row';
import { Suspense } from 'react';
import clsx from 'clsx'; import clsx from 'clsx';
import React, { useState, useEffect } from 'react';
import { Guest } from '@/app/lib/definitions';
export function TableHeader() { export default function guestsTable() {
const [guests, setGuests] = useState<Array<Guest>>([]);
} function loadGuests() {
fetch("http://localhost:3001/guests.json")
export default async function guestsTable() { .then((response) => response.json())
.then((data) => {
setGuests(data.data.map((record: any) => {
return ({
id: record.id,
name: record.attributes.name,
email: record.attributes.email,
group_name: record.attributes.group_name,
status: record.attributes.status
});
}));
}, (error) => {
return [];
}
);
};
function handleInviteGuest() { const handleInviteGuest = (e: React.MouseEvent<HTMLElement>) => {
fetch("http://localhost:3001/guests/123.json", {method: 'PATCH', body: JSON.stringify({guest: {status: 'Invited'}})}) fetch("http://localhost:3001/guests/bulk-status-change.json", { method: 'POST', body: JSON.stringify({ status: "Invited", guest_ids: [e.currentTarget.getAttribute('data-guest-id')] }) })
.then((response) => console.log(response.json())) .then((response) => console.log(response.json()))
.catch((error) => console.error(error)); .catch((error) => console.error(error));
} }
let guests: Guest[] = await fetch("http://localhost:3001/guests.json")
.then((response) => response.json())
.then((data) => { guests.length === 0 && loadGuests();
return data.data.map((record: any) => {
return ({
id: record.id,
name: record.attributes.name,
email: record.attributes.email,
group_name: record.attributes.group_name,
status: record.attributes.status
});
});
}, (error) => {
return [];
});
return ( return (
<div className="w-full relative overflow-x-auto shadow-md sm:rounded-lg"> <div className="w-full relative overflow-x-auto shadow-md sm:rounded-lg">
@ -88,7 +91,7 @@ export default async function guestsTable() {
</span> </span>
</td> </td>
<td> <td>
{guest.status === 'Considered' && (<button onClick={handleInviteGuest} className="bg-blue-300 hover:bg-blue-500 text-white py-1 px-2 rounded"> {guest.status === 'Considered' && (<button data-guest-id={guest.id} onClick={handleInviteGuest} className="bg-blue-300 hover:bg-blue-500 text-white py-1 px-2 rounded">
Invite Invite
</button>)} </button>)}
</td> </td>

View File

@ -0,0 +1,85 @@
---
- - :permit
- MIT
- :who:
:why:
:versions: []
:when: 2024-10-25 17:45:36.831184284 Z
- - :permit
- ISC
- :who:
:why:
:versions: []
:when: 2024-10-25 17:48:14.527140943 Z
- - :permit
- Apache 2.0
- :who:
:why:
:versions: []
:when: 2024-10-25 17:48:23.863998708 Z
- - :permit
- Simplified BSD
- :who:
:why:
:versions: []
:when: 2024-10-25 17:49:01.330574375 Z
- - :permit
- New BSD
- :who:
:why:
:versions: []
:when: 2024-10-25 17:49:53.995999923 Z
- - :permit
- LGPL-3.0-or-later
- :who:
:why:
:versions: []
:when: 2024-10-25 17:51:16.274818102 Z
- - :permit
- Python-2.0
- :who:
:why:
:versions: []
:when: 2024-10-25 17:51:32.610018037 Z
- - :permit
- BlueOak-1.0.0
- :who:
:why:
:versions: []
:when: 2024-10-25 17:52:28.568966565 Z
- - :permit
- BSD
- :who:
:why:
:versions: []
:when: 2024-10-25 17:52:37.235297087 Z
- - :permit
- The Unlicense
- :who:
:why:
:versions: []
:when: 2024-10-25 17:52:49.646463302 Z
- - :permit
- CC-BY-4.0
- :who:
:why:
:versions: []
:when: 2024-10-25 17:54:29.363007852 Z
- - :permit
- "(MIT AND Zlib)"
- :who:
:why:
:versions: []
:when: 2024-10-25 17:54:49.936741134 Z
- - :permit
- BSD Zero Clause License
- :who:
:why:
:versions: []
:when: 2024-10-25 17:55:31.968339009 Z
- - :permit
- Artistic-2.0
- :who:
:why:
:versions: []
:when: 2024-10-25 17:55:52.371898047 Z

View File

@ -12,24 +12,24 @@
"autoprefixer": "10.4.20", "autoprefixer": "10.4.20",
"bcrypt": "^5.1.1", "bcrypt": "^5.1.1",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"next": "15.0.0-rc.0", "next": "15.0.1",
"next-auth": "5.0.0-beta.20", "next-auth": "5.0.0-beta.25",
"postcss": "8.4.43", "postcss": "8.4.47",
"primeicons": "^7.0.0", "primeicons": "^7.0.0",
"primereact": "^10.8.2", "primereact": "^10.8.2",
"react": "19.0.0-rc-f38c22b244-20240704", "react": "19.0.0-rc-f38c22b244-20240704",
"react-dom": "19.0.0-rc-f38c22b244-20240704", "react-dom": "19.0.0-rc-f38c22b244-20240704",
"tailwindcss": "3.4.10", "tailwindcss": "3.4.14",
"typescript": "5.5.4", "typescript": "5.6.3",
"use-debounce": "^10.0.1", "use-debounce": "^10.0.1",
"zod": "^3.23.8" "zod": "^3.23.8"
}, },
"devDependencies": { "devDependencies": {
"@playwright/test": "^1.46.0", "@playwright/test": "^1.46.0",
"@types/bcrypt": "^5.0.2", "@types/bcrypt": "^5.0.2",
"@types/node": "22.5.4", "@types/node": "22.7.9",
"@types/react": "18.3.5", "@types/react": "18.3.5",
"@types/react-dom": "18.3.0" "@types/react-dom": "18.3.1"
}, },
"engines": { "engines": {
"node": ">=20.12.0" "node": ">=20.12.0"

565
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff