diff --git a/docker-compose.yml b/docker-compose.yml
index 8d3c2b7..7b7ab84 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -51,6 +51,7 @@ services:
- postgres
environment:
POSTGRESQL_CONNECTION_URI: postgresql://supertokens:password@postgres:5432/supertokens
+ ACCESS_TOKEN_VALIDITY: 360000
ports:
- "3567:3567"
env_file:
diff --git a/pb_migrations/1758379630_created_badges.js b/pb_migrations/1758379630_created_badges.js
new file mode 100644
index 0000000..0714d73
--- /dev/null
+++ b/pb_migrations/1758379630_created_badges.js
@@ -0,0 +1,85 @@
+///
+migrate((app) => {
+ const collection = new Collection({
+ "createRule": null,
+ "deleteRule": null,
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text1579384326",
+ "max": 0,
+ "min": 0,
+ "name": "name",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text1843675174",
+ "max": 0,
+ "min": 0,
+ "name": "description",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_1340419796",
+ "indexes": [],
+ "listRule": null,
+ "name": "badges",
+ "system": false,
+ "type": "base",
+ "updateRule": null,
+ "viewRule": null
+ });
+
+ return app.save(collection);
+}, (app) => {
+ const collection = app.findCollectionByNameOrId("pbc_1340419796");
+
+ return app.delete(collection);
+})
diff --git a/pb_migrations/1758380013_updated_players.js b/pb_migrations/1758380013_updated_players.js
new file mode 100644
index 0000000..b9a2f6f
--- /dev/null
+++ b/pb_migrations/1758380013_updated_players.js
@@ -0,0 +1,28 @@
+///
+migrate((app) => {
+ const collection = app.findCollectionByNameOrId("pbc_3072146508")
+
+ // add field
+ collection.fields.addAt(5, new Field({
+ "cascadeDelete": false,
+ "collectionId": "pbc_1340419796",
+ "hidden": false,
+ "id": "relation2029409178",
+ "maxSelect": 999,
+ "minSelect": 0,
+ "name": "badges",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "relation"
+ }))
+
+ return app.save(collection)
+}, (app) => {
+ const collection = app.findCollectionByNameOrId("pbc_3072146508")
+
+ // remove field
+ collection.fields.removeById("relation2029409178")
+
+ return app.save(collection)
+})
diff --git a/pb_migrations/1758385120_updated_players.js b/pb_migrations/1758385120_updated_players.js
new file mode 100644
index 0000000..7314613
--- /dev/null
+++ b/pb_migrations/1758385120_updated_players.js
@@ -0,0 +1,28 @@
+///
+migrate((app) => {
+ const collection = app.findCollectionByNameOrId("pbc_3072146508")
+
+ // add field
+ collection.fields.addAt(6, new Field({
+ "cascadeDelete": false,
+ "collectionId": "pbc_1340419796",
+ "hidden": false,
+ "id": "relation2813965191",
+ "maxSelect": 1,
+ "minSelect": 0,
+ "name": "featured_badge",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "relation"
+ }))
+
+ return app.save(collection)
+}, (app) => {
+ const collection = app.findCollectionByNameOrId("pbc_3072146508")
+
+ // remove field
+ collection.fields.removeById("relation2813965191")
+
+ return app.save(collection)
+})
diff --git a/pb_migrations/1758388728_created_free_agents.js b/pb_migrations/1758388728_created_free_agents.js
new file mode 100644
index 0000000..c175950
--- /dev/null
+++ b/pb_migrations/1758388728_created_free_agents.js
@@ -0,0 +1,84 @@
+///
+migrate((app) => {
+ const collection = new Collection({
+ "createRule": null,
+ "deleteRule": null,
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "cascadeDelete": false,
+ "collectionId": "pbc_3072146508",
+ "hidden": false,
+ "id": "relation2551806565",
+ "maxSelect": 1,
+ "minSelect": 0,
+ "name": "player",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "relation"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text1146066909",
+ "max": 0,
+ "min": 0,
+ "name": "phone",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_2929550049",
+ "indexes": [],
+ "listRule": null,
+ "name": "free_agents",
+ "system": false,
+ "type": "base",
+ "updateRule": null,
+ "viewRule": null
+ });
+
+ return app.save(collection);
+}, (app) => {
+ const collection = app.findCollectionByNameOrId("pbc_2929550049");
+
+ return app.delete(collection);
+})
diff --git a/pb_migrations/1758402128_updated_free_agents.js b/pb_migrations/1758402128_updated_free_agents.js
new file mode 100644
index 0000000..cf83d40
--- /dev/null
+++ b/pb_migrations/1758402128_updated_free_agents.js
@@ -0,0 +1,28 @@
+///
+migrate((app) => {
+ const collection = app.findCollectionByNameOrId("pbc_2929550049")
+
+ // add field
+ collection.fields.addAt(3, new Field({
+ "cascadeDelete": false,
+ "collectionId": "pbc_340646327",
+ "hidden": false,
+ "id": "relation3177167065",
+ "maxSelect": 1,
+ "minSelect": 0,
+ "name": "tournament",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "relation"
+ }))
+
+ return app.save(collection)
+}, (app) => {
+ const collection = app.findCollectionByNameOrId("pbc_2929550049")
+
+ // remove field
+ collection.fields.removeById("relation3177167065")
+
+ return app.save(collection)
+})
diff --git a/pb_migrations/1758402424_updated_tournaments.js b/pb_migrations/1758402424_updated_tournaments.js
new file mode 100644
index 0000000..1c9449b
--- /dev/null
+++ b/pb_migrations/1758402424_updated_tournaments.js
@@ -0,0 +1,28 @@
+///
+migrate((app) => {
+ const collection = app.findCollectionByNameOrId("pbc_340646327")
+
+ // remove field
+ collection.fields.removeById("relation1584152981")
+
+ return app.save(collection)
+}, (app) => {
+ const collection = app.findCollectionByNameOrId("pbc_340646327")
+
+ // add field
+ collection.fields.addAt(11, new Field({
+ "cascadeDelete": false,
+ "collectionId": "pbc_3072146508",
+ "hidden": false,
+ "id": "relation1584152981",
+ "maxSelect": 999,
+ "minSelect": 0,
+ "name": "free_agents",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "relation"
+ }))
+
+ return app.save(collection)
+})
diff --git a/src/app/routes/__root.tsx b/src/app/routes/__root.tsx
index 1e69f6a..92266a2 100644
--- a/src/app/routes/__root.tsx
+++ b/src/app/routes/__root.tsx
@@ -1,7 +1,3 @@
-import "@mantine/core/styles.css";
-import "@mantine/dates/styles.css";
-import "@mantine/carousel/styles.css";
-import '@mantine/tiptap/styles.css';
import {
HeadContent,
Navigate,
@@ -18,9 +14,12 @@ import Providers from "@/features/core/components/providers";
import { ColorSchemeScript, mantineHtmlProps } from "@mantine/core";
import { HeaderConfig } from "@/features/core/types/header-config";
import { playerQueries } from "@/features/players/queries";
-import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { ensureServerQueryData } from "@/lib/tanstack-query/utils/ensure";
import FullScreenLoader from "@/components/full-screen-loader";
+import mantineCssUrl from '@mantine/core/styles.css?url'
+import mantineDatesCssUrl from '@mantine/dates/styles.css?url'
+import mantineCarouselCssUrl from '@mantine/carousel/styles.css?url'
+import mantineTiptapCssUrl from '@mantine/tiptap/styles.css?url'
export const Route = createRootRouteWithContext<{
queryClient: QueryClient;
@@ -61,6 +60,10 @@ export const Route = createRootRouteWithContext<{
},
{ rel: "manifest", href: "/site.webmanifest" },
{ rel: "icon", href: "/favicon.ico" },
+ { rel: 'stylesheet', href: mantineCssUrl },
+ { rel: 'stylesheet', href: mantineCarouselCssUrl },
+ { rel: 'stylesheet', href: mantineDatesCssUrl },
+ { rel: 'stylesheet', href: mantineTiptapCssUrl }
],
}),
errorComponent: (props) => {
@@ -131,7 +134,6 @@ function RootDocument({ children }: { children: React.ReactNode }) {
>
{children}
-