-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/reservationadmission page #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DankaMarci
wants to merge
20
commits into
main
Choose a base branch
from
feature/reservationadmission-page
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a545772
feat: implement TimePicker component for improved time selection in r…
fd43cba
Made fixes on comment and gatekeeper appliance access
14ed188
Refactored frontend to monochromatic desgin
justnyx e2f55ac
Refactored calendar design
justnyx 6c9cc3b
refactored calendar for mobile view
justnyx 05f4375
feat: add sanction management features including SanctionRecord model…
86934c2
Added gatekeeper priority
2cdacb7
Fixed bug: calendar card shift
0f42f30
Remove SANCTIONED status from ReservationStatus enum and related logi…
8ab6e2b
feat: add OpenedWeek model and enhance Settings with new attributes f…
1a8ce55
Merge origin/main and resolve conflicts
459f9c2
Add missing sonner dependency for frontend
0ab44ce
Refactor: remove ReservationConfig and SanctionTier models, along wit…
49c3f85
Build error fix
4d1a9d7
Merge remote-tracking branch 'origin/frontend_refactor' into feature/…
9052054
Enhance reservation management: include gatekeeper details in reserva…
e3a4587
Enhance reservation functionality: add optional gatekeeper ID to find…
d9855e9
ESLint fixes
81cff6f
Enhance sanction records functionality: add reservationId to sanction…
c620671
Added missing migration file and fixed ESLint errors/warnings
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| module.exports = { | ||
| moduleFileExtensions: ['js', 'json', 'ts'], | ||
| rootDir: 'src', | ||
| testRegex: '.*\\.spec\\.ts$', | ||
| transform: { | ||
| '^.+\\.(t|j)s$': 'ts-jest', | ||
| }, | ||
| collectCoverageFrom: ['**/*.(t|j)s'], | ||
| coverageDirectory: '../coverage', | ||
| testEnvironment: 'node', | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
apps/backend/prisma/migrations/20260109180915_reservation_enhancements/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| -- AlterEnum | ||
| ALTER TYPE "ReservationStatus" ADD VALUE 'SANCTIONED'; | ||
|
|
||
| -- AlterTable | ||
| ALTER TABLE "Period" ADD COLUMN "isOpen" BOOLEAN NOT NULL DEFAULT false; | ||
|
|
||
| -- AlterTable | ||
| ALTER TABLE "User" ADD COLUMN "sanctionPoints" INTEGER NOT NULL DEFAULT 0; | ||
|
|
||
| -- CreateTable | ||
| CREATE TABLE "Settings" ( | ||
| "id" SERIAL NOT NULL, | ||
| "maxHoursPerWeek" DOUBLE PRECISION NOT NULL DEFAULT 8.0, | ||
| "maxHoursPerDay" DOUBLE PRECISION NOT NULL DEFAULT 4.0, | ||
| "minReservationMinutes" INTEGER NOT NULL DEFAULT 30, | ||
| "maxReservationMinutes" INTEGER NOT NULL DEFAULT 180, | ||
| "sanctionHourPenaltyPerPoint" DOUBLE PRECISION NOT NULL DEFAULT 1.0, | ||
|
|
||
| CONSTRAINT "Settings_pkey" PRIMARY KEY ("id") | ||
| ); |
2 changes: 2 additions & 0 deletions
2
apps/backend/prisma/migrations/20260116023247_kolis_fogadas/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "Reservation" ADD COLUMN "needToBeLetIn" BOOLEAN NOT NULL DEFAULT false; |
30 changes: 30 additions & 0 deletions
30
apps/backend/prisma/migrations/20260116170512_add_sanction_records/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| /* | ||
| Warnings: | ||
|
|
||
| - You are about to drop the column `sanctionPoints` on the `User` table. All the data in the column will be lost. | ||
|
|
||
| */ | ||
| -- AlterTable | ||
| ALTER TABLE "User" DROP COLUMN "sanctionPoints"; | ||
|
|
||
| -- CreateTable | ||
| CREATE TABLE "SanctionRecord" ( | ||
| "id" SERIAL NOT NULL, | ||
| "userId" INTEGER, | ||
| "bandId" INTEGER, | ||
| "points" INTEGER NOT NULL, | ||
| "reason" TEXT NOT NULL, | ||
| "awardedBy" INTEGER NOT NULL, | ||
| "awardedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
|
||
| CONSTRAINT "SanctionRecord_pkey" PRIMARY KEY ("id") | ||
| ); | ||
|
|
||
| -- AddForeignKey | ||
| ALTER TABLE "SanctionRecord" ADD CONSTRAINT "SanctionRecord_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
|
||
| -- AddForeignKey | ||
| ALTER TABLE "SanctionRecord" ADD CONSTRAINT "SanctionRecord_bandId_fkey" FOREIGN KEY ("bandId") REFERENCES "Band"("id") ON DELETE SET NULL ON UPDATE CASCADE; | ||
|
|
||
| -- AddForeignKey | ||
| ALTER TABLE "SanctionRecord" ADD CONSTRAINT "SanctionRecord_awardedBy_fkey" FOREIGN KEY ("awardedBy") REFERENCES "ClubMembership"("id") ON DELETE RESTRICT ON UPDATE CASCADE; |
5 changes: 5 additions & 0 deletions
5
apps/backend/prisma/migrations/20260320130812_add_gatekeeper_priority/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| -- CreateEnum | ||
| CREATE TYPE "GateKeeperPriority" AS ENUM ('PRIMARY', 'SECONDARY'); | ||
|
|
||
| -- AlterTable | ||
| ALTER TABLE "Reservation" ADD COLUMN "gateKeeperPriority" "GateKeeperPriority"; |
14 changes: 14 additions & 0 deletions
14
apps/backend/prisma/migrations/20260322135731_remove_sanction_type/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /* | ||
| Warnings: | ||
|
|
||
| - The values [SANCTIONED] on the enum `ReservationStatus` will be removed. If these variants are still used in the database, this will fail. | ||
|
|
||
| */ | ||
| -- AlterEnum | ||
| BEGIN; | ||
| CREATE TYPE "ReservationStatus_new" AS ENUM ('NORMAL', 'OVERTIME', 'ADMINMADE'); | ||
| ALTER TABLE "Reservation" ALTER COLUMN "status" TYPE "ReservationStatus_new" USING ("status"::text::"ReservationStatus_new"); | ||
| ALTER TYPE "ReservationStatus" RENAME TO "ReservationStatus_old"; | ||
| ALTER TYPE "ReservationStatus_new" RENAME TO "ReservationStatus"; | ||
| DROP TYPE "ReservationStatus_old"; | ||
| COMMIT; |
16 changes: 16 additions & 0 deletions
16
...nd/prisma/migrations/20260322155651_add_weeks_and_extra_settings_attributes/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "Settings" ADD COLUMN "banSanctionPointThreshold" INTEGER NOT NULL DEFAULT 5, | ||
| ADD COLUMN "maxTotalHoursPerWeek" DOUBLE PRECISION NOT NULL DEFAULT 12.0, | ||
| ADD COLUMN "sanctionTotalHourPenaltyPerPoint" DOUBLE PRECISION NOT NULL DEFAULT 2.0; | ||
|
|
||
| -- CreateTable | ||
| CREATE TABLE "OpenedWeek" ( | ||
| "id" SERIAL NOT NULL, | ||
| "monday" TIMESTAMP(3) NOT NULL, | ||
| "isOpen" BOOLEAN NOT NULL DEFAULT false, | ||
|
|
||
| CONSTRAINT "OpenedWeek_pkey" PRIMARY KEY ("id") | ||
| ); | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "OpenedWeek_monday_key" ON "OpenedWeek"("monday"); |
15 changes: 15 additions & 0 deletions
15
...sma/migrations/20260323103330_removed_unnecessary_reservation_config_models/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| /* | ||
| Warnings: | ||
|
|
||
| - You are about to drop the `ReservationConfig` table. If the table is not empty, all the data it contains will be lost. | ||
| - You are about to drop the `SanctionTier` table. If the table is not empty, all the data it contains will be lost. | ||
|
|
||
| */ | ||
| -- DropForeignKey | ||
| ALTER TABLE "SanctionTier" DROP CONSTRAINT "SanctionTier_configId_fkey"; | ||
|
|
||
| -- DropTable | ||
| DROP TABLE "ReservationConfig"; | ||
|
|
||
| -- DropTable | ||
| DROP TABLE "SanctionTier"; |
5 changes: 5 additions & 0 deletions
5
apps/backend/prisma/migrations/20260326114226_init/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "SanctionRecord" ADD COLUMN "reservationId" INTEGER; | ||
|
|
||
| -- AddForeignKey | ||
| ALTER TABLE "SanctionRecord" ADD CONSTRAINT "SanctionRecord_reservationId_fkey" FOREIGN KEY ("reservationId") REFERENCES "Reservation"("id") ON DELETE SET NULL ON UPDATE CASCADE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
collectCoverageFrom: ['**/*.(t|j)s']is not a valid glob for Jest’s micromatch patterns, so coverage collection may silently skip files. Use a supported pattern such as['**/*.{ts,js}'](and optionally exclude.d.ts,main.ts, etc.).