Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
9fcab9c
Remove old design
Isak-Kallini Aug 27, 2025
c9c1b84
fix build
Isak-Kallini Nov 6, 2025
a9937e7
Add new design css
Isak-Kallini Nov 10, 2025
bdb8b41
add darkmodetoggle
Isak-Kallini Nov 10, 2025
c09f8c5
Fix linting
Isak-Kallini Nov 10, 2025
568faf9
enable ci
Isak-Kallini Nov 10, 2025
54a3e5c
Add placeholder nav-bar
Isak-Kallini Nov 14, 2025
1dff15b
add button (#966)
Isak-Kallini Nov 14, 2025
9d25d01
Add buttongroup (#983)
Isak-Kallini Nov 14, 2025
eb255b2
Add avatar (#981)
Isak-Kallini Nov 15, 2025
047a281
add input and label components (#985)
fgren Nov 15, 2025
6e4db45
add badge component (#986)
fgren Nov 16, 2025
530721a
Various small fixes for new design (#995)
danieladugyan Nov 17, 2025
78ca350
add editor component (#994)
fgren Nov 17, 2025
d54eea7
Add alert dialog component (#1006)
danieladugyan Nov 18, 2025
1e7ba9a
Navbar on logged out page
Isak-Kallini Nov 18, 2025
4a4beaa
add footer (#992)
fgren Nov 19, 2025
4065445
add radiogroup component (#989)
fgren Nov 19, 2025
8eeb225
New design select component (#1001)
danieladugyan Nov 22, 2025
fdbaf51
add file upload component (#1007)
fgren Nov 24, 2025
d2d065d
New design tabitem (#1018)
kuleshmaria Nov 24, 2025
f8fdc2b
New design checkbox (#1020)
Joel-Liden Dec 1, 2025
0b6def7
Command dialog (#1004)
Isak-Kallini Dec 4, 2025
448ac4c
New design datetimeselector (#1028)
ManneG Dec 9, 2025
635f73a
Choicebox (#1026)
JuliusNicklas Dec 15, 2025
3b7d789
New design landing page calendar (#1035)
Isak-Kallini Dec 22, 2025
6211806
Merge branch 'main' into new-design
Isak-Kallini Dec 31, 2025
aec59c1
Upgrade zod
Isak-Kallini Jan 5, 2026
640fb32
enable remote functions
Isak-Kallini Jan 5, 2026
8366957
Merge branch 'main' into new-design
Isak-Kallini Jan 5, 2026
8d7b6bc
make navbar responsive (#1009)
fgren Jan 7, 2026
ab15f34
fix navbar styling (#1043)
fgren Jan 13, 2026
4b008c2
New design: Add News pages (#1030)
fgren Jan 16, 2026
27ee975
New design: Markdown styling tweaks (#1044)
fgren Jan 16, 2026
c0ab336
New design: Add onboarding page (#1038)
fgren Jan 16, 2026
850c728
add metrics and traces
Isak-Kallini Jan 17, 2026
4a7ac4b
configure trace service name
Isak-Kallini Jan 17, 2026
fda29dd
Improved italic, bold, and strikethrough editing with toggles
ManneG Jan 17, 2026
8015eca
Improved header button
ManneG Jan 20, 2026
8aac8f4
Improved inserting link/image and toggling inline/fenced code blocks
ManneG Jan 20, 2026
a85c1d1
Slightly improved inserting table
ManneG Jan 20, 2026
87e5200
Improve toggling quotes and separators
ManneG Jan 20, 2026
872596a
Improved all lists and removed old (unused) code. Update the char cou…
ManneG Jan 21, 2026
ac792d0
Fix lint
ManneG Jan 21, 2026
43945a4
fix broken link on article card (#1063)
fgren Jan 28, 2026
677208b
Menubar (#1075)
RufusKoggRojder Feb 9, 2026
d1b4f0c
New design: Improve news UI (#1047)
fgren Feb 9, 2026
9e1de67
Add the `Table` component. (#1082)
SLUCHABLUB Feb 9, 2026
f85d92f
New design: Create profile page (#1057)
fgren Feb 14, 2026
e56e862
change dark mode colours and make navbar sticky
Fiery-132 Feb 16, 2026
6668bda
Unpink the website (#1096)
SLUCHABLUB Feb 16, 2026
ca3e003
Add alerts (a.k.a. global messages) and the page to create them (#1095)
SLUCHABLUB Feb 17, 2026
33c00e4
New design: Committee page (#1110)
fgren Feb 25, 2026
5d1534a
fix positions (#1117)
fgren Feb 25, 2026
4f517a5
Add admin doors management interface (#1005)
danieladugyan Mar 2, 2026
893cd86
Add settings page (#1015)
Isak-Kallini Mar 2, 2026
c59a3af
New design: Close navigation menu on click (#1127)
fgren Mar 9, 2026
0f6a103
Fix colours and icons for alerts. (#1100)
SLUCHABLUB Mar 9, 2026
04c90a2
New design: /committees (#1118)
fgren Mar 9, 2026
468f90b
Merge main into new design (#1133)
Isak-Kallini Mar 10, 2026
78d1388
Merge branch 'main' into new-design
Isak-Kallini Mar 11, 2026
a50fe56
New design: /contact (#1128)
fgren Mar 16, 2026
5295f9a
Implement member selector (#1134)
RufusKoggRojder Mar 18, 2026
28fa2b9
New design: Kbd component (#1097)
memagu Mar 23, 2026
3868bf7
New design: General fixes (#1139)
fgren Mar 23, 2026
7bf1d8a
New design: landing page (#1129)
Isak-Kallini Mar 23, 2026
c95a464
Don't display notifications when loggeed out
Isak-Kallini Mar 23, 2026
d736eb8
Make settings tag selector wider
Isak-Kallini Mar 23, 2026
d73378a
Footer always on bottom
Isak-Kallini Mar 23, 2026
250a032
Always extend profile page to bottom
Isak-Kallini Mar 23, 2026
26c580e
Add some missing colors to app.css
Isak-Kallini Mar 23, 2026
192e0ae
Fix components usage of css vars
Isak-Kallini Mar 23, 2026
9d11465
Merge branch 'main' into new-design
Isak-Kallini Mar 24, 2026
a89ef99
Old and new design in parallell on beta.dsek.se
Isak-Kallini Mar 24, 2026
278f785
Fix format
Isak-Kallini Mar 24, 2026
90b6aec
New design: landing page (#1147)
fgren Mar 30, 2026
1c001fb
New design: /documents (#1143)
fgren Mar 30, 2026
d8f3a7a
New design fix warnings (#1140)
SLUCHABLUB Apr 20, 2026
99d4936
New design: refactoring (#1155)
fgren Apr 20, 2026
91f7408
New design: elections (#1153)
fgren Apr 20, 2026
724a5c1
fix member editing (#1159)
fgren Apr 27, 2026
5ce352f
New design: Committee position previews (#1157)
fgren Apr 27, 2026
06e803c
New design: Replace Teknikfokus with DELTA (#1172)
fgren Apr 28, 2026
2651166
New design: notifications (#1160)
Isak-Kallini May 2, 2026
b270f99
fix navbar (#1169)
lego-eden May 4, 2026
42267da
Fix warnings (#1175)
SLUCHABLUB May 4, 2026
56972f2
New design: change navbar content (#1179)
fgren May 11, 2026
1987a2a
New design fix warnings (#1185)
SLUCHABLUB May 11, 2026
1f0d7f9
New design: fix toasts (#1177)
Isak-Kallini May 11, 2026
4ca0c06
New design: /board (#1194)
fgren May 18, 2026
2c17c87
Fix pagination overwriting (#1188)
Tomas-Ka May 18, 2026
3a30dc4
Add a script && workflow to check translation synchronisation (#1192)
SLUCHABLUB May 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ AUTHENTIK_API_TOKEN=
AUTHENTIK_ENDPOINT=https://auth.dsek.se/api/v3
AUTHENTIK_ENABLED=false # set to false to avoid syncing with authentik


# FILE STORAGE
# Used to connect to the MinIO file server.
# Different types of files are stored in different buckets.
Expand All @@ -51,7 +52,7 @@ SHLINK_API_KEY=
SHLINK_ENDPOINT=https://link.dsek.se

# MEDIAWIKI
PUBLIC_MEDIAWIKI_ENDPOINT=https://wiki.dsek.se/api.php
PUBLIC_MEDIAWIKI_ENDPOINT=https://dwiki.se/api.php
# Setup in https://wiki.dsek.se/wiki/Special:BotPasswords
MEDIAWIKI_USERNAME=
MEDIAWIKI_PASSWORD=
Expand Down Expand Up @@ -97,6 +98,9 @@ BOOKKEEPING_CC_TO_ADDRESS=skattm@dsek.se # comma separated list

SYNC_PASSWORD=password123

PUBLIC_OTLP_TRACE_EXPORT_URL=http://localhost:4318/v1/traces
PUBLIC_OTLP_SERVICE_NAME="dsek.se"

# SCHEDULER
SCHEDULER_ENDPOINT=http://localhost:8080/schedule
SCHEDULER_PASSWORD=supersecretpassword
54 changes: 54 additions & 0 deletions .github/workflows/deploy-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Deploy beta
permissions:
contents: read

on:
push:
branches:
- new-design

jobs:
website:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to image registry
id: registry-login
uses: docker/login-action@v3
with:
username: ${{ secrets.IMAGEREPO_USERNAME }}
password: ${{ secrets.IMAGEREPO_PASSWORD }}
registry: registry.dsek.se
- name: Build and push website
uses: docker/build-push-action@v6
with:
build-args: |
"PUBLIC_MINIO_ENDPOINT=files-sandbox.dsek.se"
"PUBLIC_MINIO_PORT=443"
"PUBLIC_MINIO_USE_SSL=true"
"PUBLIC_BUCKETS_DOCUMENTS=documents"
"PUBLIC_BUCKETS_FILES=files"
"PUBLIC_BUCKETS_MEMBERS=members"
"VERSION=${{ github.ref_name }}"
push: true
tags: registry.dsek.se/web-beta/website:${{ github.ref_name }},registry.dsek.se/web-beta/website:latest

poppler:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to image registry
id: registry-login
uses: docker/login-action@v3
with:
username: ${{ secrets.IMAGEREPO_USERNAME }}
password: ${{ secrets.IMAGEREPO_PASSWORD }}
registry: registry.dsek.se
- name: Build and push poppler
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:poppler-server"
push: true
tags: registry.dsek.se/web-beta/poppler:${{ github.ref_name }},registry.dsek.se/web-beta/poppler:latest
10 changes: 6 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Node.js CI

on:
push:
branches: ["main"]
branches: ["main", "new-design"]
pull_request:
branches: ["main"]
branches: ["main", "new-design"]

env:
HUSKY: 0
Expand Down Expand Up @@ -46,8 +46,10 @@ jobs:
- run: pnpm i
- run: pnpm prisma migrate deploy
- run: pnpm snaplet-seed sync
- run: pnpm run lint
- run: pnpm run lint --max-warnings 0
- run: pnpm run format
- run: pnpm run test
- run: pnpm run check
- run: pnpm run check --fail-on-warnings
- run: pnpm run check-translations
- run: pnpm run build
# When adding a step to the list above, please consider adding it to the `ci-check` script in `package.json`.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"npm.packageManager": "pnpm",
"editor.formatOnSave": true,
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand All @@ -21,6 +21,7 @@
"class:(.+)", // for svelte class: directive
".*icon: \"(.+)\"", // for icon property in routes.ts
],
"tailwindCSS.experimental.configFile": "src/app.css",
"workbench.editor.labelFormat": "short", // show filename + route in tab
"explorer.compactFolders": false, // present folders in explorer as a tree
"git.inputValidation": true,
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ This project is the main web page for the D-guild within TLTH, a non-profit orga

![builtwith][builtwith]
[![svelte][svelte]][svelte-url]
[![daisy][daisy]][daisy-url]
[![typescript][typescript]][typescript-url]
[![prisma][prisma]][prisma-url]
[![zenstack][zenstack]][zenstack-url]
Expand Down Expand Up @@ -121,8 +120,6 @@ https://www.dsek.se/en/info/contact
[typescript-url]: https://www.typescriptlang.org/
[svelte]: https://img.shields.io/badge/svelte-FF3E00?style=for-the-badge&logo=svelte&logoColor=white
[svelte-url]: https://svelte.dev/
[daisy]: https://img.shields.io/badge/daisyui-107f65?style=for-the-badge&logo=data:image/svg+xml;base64,Cjxzdmcgd2lkdGg9IjEwMjQiIGhlaWdodD0iMTAyNCIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iMjU2IiB5PSI2NzAuNzIiIHdpZHRoPSI1MTIiIGhlaWdodD0iMjU2IiByeD0iMTI4IiBmaWxsPSIjMUFEMUE1Ii8+CjxjaXJjbGUgY3g9IjUxMiIgY3k9IjM1My4yOCIgcj0iMjU2IiBmaWxsPSJ3aGl0ZSIvPgo8Y2lyY2xlIGN4PSI1MTIiIGN5PSIzNTMuMjgiIHI9IjI2MSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLW9wYWNpdHk9IjAuMiIgc3Ryb2tlLXdpZHRoPSIxMCIvPgo8Y2lyY2xlIGN4PSI1MTIiIGN5PSIzNTMuMjgiIHI9IjExNC42ODgiIGZpbGw9IiNGRjk5MDMiLz4KPC9zdmc+Cg==
[daisy-url]: https://daisyui.com/
[expo]: https://img.shields.io/badge/expo-000020?style=for-the-badge&logo=expo&logoColor=white
[expo-url]: https://expo.dev/
[prisma]: https://img.shields.io/badge/prisma-2D3748?style=for-the-badge&logo=prisma&logoColor=white
Expand Down
16 changes: 16 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://shadcn-svelte.com/schema.json",
"tailwind": {
"css": "src/app.css",
"baseColor": "zinc"
},
"aliases": {
"components": "$lib/components",
"utils": "$lib/utils",
"ui": "$lib/components/ui",
"hooks": "$lib/hooks",
"lib": "$lib"
},
"typescript": true,
"registry": "https://shadcn-svelte.com/registry"
}
26 changes: 26 additions & 0 deletions dev/check_translations.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

set -euo pipefail

tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT

jq --raw-output 'keys[]' src/translations/en.json >"$tmp/en-keys"
jq --raw-output 'keys[]' src/translations/sv.json >"$tmp/sv-keys"

if cmp --quiet "$tmp/en-keys" "$tmp/sv-keys"; then
exit 0
fi

only_en_keys="$(comm -23 "$tmp/en-keys" "$tmp/sv-keys")"
only_sv_keys="$(comm -13 "$tmp/en-keys" "$tmp/sv-keys")"

if [[ -n "$only_en_keys" ]]; then
printf 'The following translation keys are only set in English:\n\n%s\n\n' "$only_en_keys"
fi

if [[ -n "$only_sv_keys" ]]; then
printf 'The following translation keys are only set in Swedish:\n\n%s\n\n' "$only_sv_keys"
fi

exit 1
25 changes: 10 additions & 15 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
import svelte from "eslint-plugin-svelte";
import eslintComments from "@eslint-community/eslint-plugin-eslint-comments/configs";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
Expand Down Expand Up @@ -33,15 +35,15 @@ export default [
"**/yarn.lock",
],
},
js.configs.recommended,
eslintComments.recommended,
...compat.extends(
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/stylistic",
"plugin:svelte/recommended",
"plugin:svelte/prettier",
"prettier",
),
...svelte.configs.recommended,
...svelte.configs.prettier,
{
plugins: {
"@typescript-eslint": typescriptEslint,
Expand All @@ -67,7 +69,7 @@ export default [
},

rules: {
"eslint-comments/require-description": "warn",
"@eslint-community/eslint-comments/require-description": "warn",

"no-restricted-imports": [
"warn",
Expand All @@ -78,16 +80,6 @@ export default [
message:
"\nIt looks like you're importing from a different subtree. Consider whether the imported code should really be shared. Suggestions:\n1) Write new code specific to your usage.\n2) Move the imported code to a shared location, e.g. a parent folder.\n3) Verify that you're using the correct path alias, e.g. $lib.",
},
{
importNamePattern: "^(goto|redirect)",
group: [
"$app/navigation",
"sveltekit-flash-message/server",
"@sveltejs/kit",
],
message:
"Use the goto and redirect wrappers from $lib/utils/redirect instead",
},
{
importNamePattern: "^(superForm)",
group: ["sveltekit-superforms", "sveltekit-superforms/client"],
Expand All @@ -106,6 +98,9 @@ export default [
default: "array-simple",
},
],

// TODO: turn on after upgrading to SvelteKit >= 2.26
"svelte/no-navigation-without-resolve": ["warn", { ignoreLinks: true }],
},
},
{
Expand Down
Loading
Loading