Skip to content

Commit 8e91e91

Browse files
authored
Merge pull request #332 from Dino-Kupinic/develop
2 parents 2c13dd0 + 0427ea4 commit 8e91e91

File tree

25 files changed

+626
-219
lines changed

25 files changed

+626
-219
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ node_modules
1919
docs/.vitepress/cache
2020
.turbo
2121
dist
22+
23+
# Supabase
24+
**/supabase/.branches
25+
**/supabase/.temp

CHANGELOG.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,27 @@
11
# [0.36.0](https://github.com/HTL-Steyr/tourney/compare/v0.35.0...v0.36.0) (2026-03-10)
22

3-
43
### Features
54

6-
* add engine property to packages ([d656bc0](https://github.com/HTL-Steyr/tourney/commit/d656bc0f1e23a7296eb020ff36a217c0049d282c))
5+
- add engine property to packages ([d656bc0](https://github.com/HTL-Steyr/tourney/commit/d656bc0f1e23a7296eb020ff36a217c0049d282c))
76

87
# [0.35.0](https://github.com/HTL-Steyr/tourney/compare/v0.34.0...v0.35.0) (2026-03-10)
98

10-
119
### Bug Fixes
1210

13-
* adjust logic ([01725f8](https://github.com/HTL-Steyr/tourney/commit/01725f8e3baf0c2e87dc67c30433eae0ab31903c))
14-
* clear forms after submit ([9ffff40](https://github.com/HTL-Steyr/tourney/commit/9ffff40e6cbf794e1dc0c1a17c1053d326a29aa0))
15-
* content shift modal ([97f95ab](https://github.com/HTL-Steyr/tourney/commit/97f95ab0375b60bb91141185d3dcbddb8cdfce2c))
16-
* update year property when start date is moved ([664b9a4](https://github.com/HTL-Steyr/tourney/commit/664b9a44f607a65b8996b3c6ac770d5696f36168))
17-
11+
- adjust logic ([01725f8](https://github.com/HTL-Steyr/tourney/commit/01725f8e3baf0c2e87dc67c30433eae0ab31903c))
12+
- clear forms after submit ([9ffff40](https://github.com/HTL-Steyr/tourney/commit/9ffff40e6cbf794e1dc0c1a17c1053d326a29aa0))
13+
- content shift modal ([97f95ab](https://github.com/HTL-Steyr/tourney/commit/97f95ab0375b60bb91141185d3dcbddb8cdfce2c))
14+
- update year property when start date is moved ([664b9a4](https://github.com/HTL-Steyr/tourney/commit/664b9a44f607a65b8996b3c6ac770d5696f36168))
1815

1916
### Features
2017

21-
* add ability to remove teams ([481fe97](https://github.com/HTL-Steyr/tourney/commit/481fe97d19e4bfb1a71058e0579c234e956de721))
22-
* add adjustable live flow panel ratio and enhance live page layout ([cfc933f](https://github.com/HTL-Steyr/tourney/commit/cfc933fbd9542001b50ae86b6193ff1e64553764))
23-
* improve button styling for live flow panel resizing ([ffdbbb0](https://github.com/HTL-Steyr/tourney/commit/ffdbbb0e5808ccf688286157f6077e0b54bfba4e))
24-
* restructure project files and update imports for shared modules ([d16a2de](https://github.com/HTL-Steyr/tourney/commit/d16a2de2b445d6214a264b61c9c1965f2e391851))
25-
* simplify app configuration and update package dependencies ([5caa621](https://github.com/HTL-Steyr/tourney/commit/5caa621145b477170b0c87f737b99d204199e9ed))
26-
* update modals ([0392768](https://github.com/HTL-Steyr/tourney/commit/0392768db8b099e99e104c7f1a827329658c325b))
27-
* update package dependencies to use catalog references ([704bc65](https://github.com/HTL-Steyr/tourney/commit/704bc65bfe88b47e975f79885571dd48165c6d6b))
18+
- add ability to remove teams ([481fe97](https://github.com/HTL-Steyr/tourney/commit/481fe97d19e4bfb1a71058e0579c234e956de721))
19+
- add adjustable live flow panel ratio and enhance live page layout ([cfc933f](https://github.com/HTL-Steyr/tourney/commit/cfc933fbd9542001b50ae86b6193ff1e64553764))
20+
- improve button styling for live flow panel resizing ([ffdbbb0](https://github.com/HTL-Steyr/tourney/commit/ffdbbb0e5808ccf688286157f6077e0b54bfba4e))
21+
- restructure project files and update imports for shared modules ([d16a2de](https://github.com/HTL-Steyr/tourney/commit/d16a2de2b445d6214a264b61c9c1965f2e391851))
22+
- simplify app configuration and update package dependencies ([5caa621](https://github.com/HTL-Steyr/tourney/commit/5caa621145b477170b0c87f737b99d204199e9ed))
23+
- update modals ([0392768](https://github.com/HTL-Steyr/tourney/commit/0392768db8b099e99e104c7f1a827329658c325b))
24+
- update package dependencies to use catalog references ([704bc65](https://github.com/HTL-Steyr/tourney/commit/704bc65bfe88b47e975f79885571dd48165c6d6b))
2825

2926
# [0.34.0](https://github.com/HTL-Steyr/tourney/compare/v0.33.0...v0.34.0) (2026-03-06)
3027

apps/admin/app/components/layout/TheSideNavigation.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const svg = computed(() =>
1212
seed: name.value,
1313
}).toDataUri(),
1414
)
15-
const docsHelpUrl = `${docsUrl.replace(/\/$/, "")}/users/help`
1615
// TODO: make navbar rerender on live tournament change
1716
const { liveTournaments, fetchLiveTournaments } = useLiveTournaments()
1817
await fetchLiveTournaments()
@@ -103,7 +102,7 @@ const searchGroups = computed(() => [
103102
{
104103
label: "Hilfe",
105104
icon: "i-heroicons-question-mark-circle",
106-
to: docsHelpUrl,
105+
to: docsUrl,
107106
external: true,
108107
target: "_blank",
109108
},
@@ -215,7 +214,7 @@ const secondaryLinks = computed(() => [
215214
{
216215
label: "Hilfe",
217216
icon: "i-heroicons-question-mark-circle",
218-
to: docsHelpUrl,
217+
to: docsUrl,
219218
external: true,
220219
target: "_blank",
221220
},

apps/admin/app/pages/(misc)/management.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ const refresh = async () => {
397397
v-model="creationStateSingle.year"
398398
:items="years"
399399
placeholder="Schuljahr auswählen"
400-
size="sm"
401400
class="w-full"
402401
/>
403402
</UFormField>
@@ -422,7 +421,6 @@ const refresh = async () => {
422421
v-model="creationStateMultiple.year"
423422
:items="years"
424423
placeholder="Schuljahr auswählen"
425-
size="sm"
426424
class="w-full"
427425
/>
428426
</UFormField>
@@ -449,7 +447,7 @@ const refresh = async () => {
449447
<div
450448
v-for="className in creationStateMultiple.classes"
451449
:key="className"
452-
class="group flex items-center justify-between border-b px-2 py-1 dark:border-neutral-700"
450+
class="group flex items-center justify-between border-b border-neutral-200 px-2 py-1 dark:border-neutral-700"
453451
>
454452
<span>{{ className }}</span>
455453
<UButton
@@ -476,7 +474,6 @@ const refresh = async () => {
476474
v-model="editState.year"
477475
:items="years"
478476
placeholder="Schuljahr auswählen"
479-
size="sm"
480477
class="w-full"
481478
/>
482479
</UFormField>

apps/admin/app/pages/(tournament)/registration.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ const onSubmitCreate = async () => {
782782
v-model="creationStateSingle.schoolClass"
783783
placeholder="Klasse auswählen"
784784
:items="classes ?? []"
785-
option-attribute="name"
785+
label-key="name"
786786
class="w-full"
787787
/>
788788
</UFormField>

apps/admin/nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default defineNuxtConfig({
3131
runtimeConfig: {
3232
public: {
3333
clientUrl: "",
34-
docsUrl: "https://tourney.htl-steyr.ac.at/docs",
34+
docsUrl: "https://htl-steyr.github.io/tourney/",
3535
},
3636
},
3737
})
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
insert into storage.buckets (id, name, public, file_size_limit)
2+
values
3+
('images', 'images', true, 52428800),
4+
('misc', 'misc', true, null)
5+
on conflict (id) do update
6+
set
7+
public = excluded.public,
8+
file_size_limit = excluded.file_size_limit;
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
WITH ranked_teams AS (
2+
SELECT
3+
t.id,
4+
row_number() OVER (
5+
PARTITION BY t.registration_id
6+
ORDER BY count(p.id) DESC, t.created_at ASC, t.id ASC
7+
) AS row_num
8+
FROM public.team AS t
9+
LEFT JOIN public.player AS p
10+
ON p.team_id = t.id
11+
GROUP BY t.id
12+
)
13+
DELETE FROM public.team
14+
WHERE id IN (
15+
SELECT id
16+
FROM ranked_teams
17+
WHERE row_num > 1
18+
);
19+
20+
ALTER TABLE public.team
21+
ADD CONSTRAINT team_registration_id_key UNIQUE (registration_id);

apps/viewer/app/components/layout/TheMobileNavigation.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
<script setup lang="ts">
2+
import { useIsPwa } from "~/composables/useIsPwa"
23
import getNavLinks from "../../utils/getNavLinks"
34
45
const links = getNavLinks(true)
6+
const isPwa = useIsPwa()
57
</script>
68

79
<template>
810
<nav
9-
class="bg-opacity-70 dark:bg-opacity-70 fixed bottom-0 z-20 flex h-16 w-full justify-around border-t border-neutral-200 bg-neutral-50 py-1 backdrop-blur-lg dark:border-neutral-800 dark:bg-neutral-900"
11+
:class="[
12+
'bg-opacity-70 dark:bg-opacity-70 fixed bottom-0 z-20 flex w-full justify-around border-t border-neutral-200 bg-neutral-50 backdrop-blur-lg dark:border-neutral-800 dark:bg-neutral-900',
13+
isPwa
14+
? 'h-[calc(4rem+env(safe-area-inset-bottom)+0.5rem)] pt-1 pb-[calc(env(safe-area-inset-bottom)+0.5rem)]'
15+
: 'h-16 py-1',
16+
]"
1017
>
1118
<div v-for="link in links" :key="link.label">
1219
<NuxtLink :to="link.to" active-class="text-primary">

apps/viewer/app/components/registration/StatusExplanationModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const isOpen = defineModel<boolean>()
1111
class="my-4 flex flex-col gap-3 text-base text-neutral-700 sm:text-sm dark:text-neutral-300"
1212
>
1313
<div class="space-y-2">
14-
<UBadge label="Ausstehend" color="warning" variant="subtle" />
14+
<UBadge label="Ausstehend" color="neutral" variant="subtle" />
1515
<p>Die Anmeldung muss noch ausgefüllt werden.</p>
1616
</div>
1717
<div class="space-y-2">

0 commit comments

Comments
 (0)