Skip to content
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

fix:Make invoice success text larger #492

Open
wants to merge 406 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
406 commits
Select commit Hold shift + click to select a range
184dc4f
Revert "remove unnecesary fragments, fix key warning"
MikaelSiidorow May 19, 2024
d487a7c
Revert "Revert "parametrize metadataBase url""
MikaelSiidorow May 19, 2024
62d7d0e
make Alkorytmi thumbnail into link
anolpe May 19, 2024
f9664a7
update document embed styles
MikaelSiidorow May 19, 2024
42c2edd
fix: hero texts
joonatanaatos May 19, 2024
acd9027
greatly simplify cache tagging to collection slugs
MikaelSiidorow May 19, 2024
237dbba
rename revalidate-page -> revalidate-collection
MikaelSiidorow May 19, 2024
8451956
add revalidation to missing collections
MikaelSiidorow May 19, 2024
3b45f9b
remove now unused dependency to json-stable-stringify
MikaelSiidorow May 19, 2024
affa0d5
clearer name for getAll and getOne helpers
MikaelSiidorow May 19, 2024
107e9a6
fix linting warning
MikaelSiidorow May 19, 2024
759909d
update site icon (#339)
samuliys May 19, 2024
59b3454
feat: Improve navigation ux
joonatanaatos May 19, 2024
fdf0f89
improve name formatting (#341)
samuliys May 19, 2024
c2ede35
add Google Forms block
anolpe May 19, 2024
02c3057
feat: add max length to hero texts (#342)
joonatanaatos May 19, 2024
9b46841
update Reaktor logo to SVG (#345)
kahlstrm May 19, 2024
e9ef104
Add icons to navbar links (#343)
jaakkonakaza May 19, 2024
955baf2
append random slug to page path if duplicate, make paths unique and i…
MikaelSiidorow May 19, 2024
a199e69
fix pseudo-elements with alt text on firefox+safari (don't use them)
MikaelSiidorow May 19, 2024
6a8c8e7
improve Alkorytmi display (#349)
samuliys May 19, 2024
a9b5e38
add localized path for events
MikaelSiidorow May 19, 2024
1ae0064
fix weird type assertion with fallback icon
MikaelSiidorow May 19, 2024
2f06cb3
redirect ilmomasiina links to ilmo page
MikaelSiidorow May 19, 2024
aae513b
add tailwind eslint plugin and fix errors
MikaelSiidorow May 19, 2024
e47eaee
Feat/dark mode (#348)
jaakkonakaza May 19, 2024
0087eca
feat: Add handshake icon
joonatanaatos May 19, 2024
5e1a39a
fix adding random slugs to end of page path
MikaelSiidorow May 19, 2024
1f9db2e
Dark mode fixes (#354)
jaakkonakaza May 19, 2024
2780d91
Revert "Dark mode fixes (#354)"
joonatanaatos May 19, 2024
944af82
Revert "Feat/dark mode (#348)"
joonatanaatos May 19, 2024
802159f
don't break landing page if there are no events
MikaelSiidorow May 19, 2024
2f3988e
add editor-in-chief block
anolpe May 19, 2024
af48a53
add dvd effect to editor-in-chief
samuliys May 19, 2024
e4cdde9
increase image minimumCacheTTL to 3600
kahlstrm May 19, 2024
b9ee05e
locales object notation -> dot notation for better support, cross typ…
MikaelSiidorow May 20, 2024
775e86c
chore: update dependencies
MikaelSiidorow May 20, 2024
a3331ce
fix up events display time and place styling
MikaelSiidorow May 20, 2024
a9d1888
ignore seed data in github diffs [skip ci]
MikaelSiidorow May 20, 2024
3f2ae23
add some metadata stuff
MikaelSiidorow May 20, 2024
c1a8ce9
experimentally fix datetimes
MikaelSiidorow May 21, 2024
c43e857
fix fetchPage typings
MikaelSiidorow May 23, 2024
003a304
ignore Accept-Language and always default to finnish site
MikaelSiidorow May 23, 2024
f8ee9e3
patch next-internatinal to store locale cookies for one year
MikaelSiidorow May 23, 2024
7de5702
oops, format pkgjson
MikaelSiidorow May 23, 2024
f4ccfd4
copy patches in dockerfile
MikaelSiidorow May 23, 2024
3a61ef3
Feat/event calendar (#353)
eemelioksanen May 23, 2024
900b5a6
only show upcoming events in landing page
MikaelSiidorow May 26, 2024
945b031
chore: update dependencies
MikaelSiidorow May 27, 2024
4e130b0
fix eslint warnings
MikaelSiidorow May 27, 2024
ac7fc76
always align committee members to center
MikaelSiidorow May 27, 2024
ec8ac24
Change event calendar localization library to date-fns (#367)
eemelioksanen May 27, 2024
6efc89a
tweak committee cards to show more members per row on each screen size
MikaelSiidorow May 31, 2024
92cde5c
make it possible to open and close committees for better usability on…
MikaelSiidorow May 31, 2024
aac5e5b
fix some invalid nesting
MikaelSiidorow May 31, 2024
22e480a
make overflowing ilmo tables scroll horizontally
MikaelSiidorow May 31, 2024
b4ff232
use next/link in event calendar
MikaelSiidorow May 31, 2024
257f3fc
show public question answers in ilmomasiina sign up table
MikaelSiidorow May 31, 2024
9872ade
add option to only show top-level headings in table of contents
MikaelSiidorow Jun 1, 2024
de95a00
support top-level headings only option in active heading hook
MikaelSiidorow Jun 1, 2024
3dac5fe
cleaner and url safe slugs for id/hash for headings
MikaelSiidorow Jun 1, 2024
1c53697
cursor-pointer for committee cards
MikaelSiidorow Jun 1, 2024
e78cd21
re-export metadata in alt events path
MikaelSiidorow Jun 2, 2024
d42aee7
add alt finnish path for weekly newsletters
MikaelSiidorow Jun 2, 2024
9647f6f
add size option to image grid
MikaelSiidorow Jun 3, 2024
ab8a5b1
docs: pr template [skip ci]
MikaelSiidorow Jun 3, 2024
d6262db
chore: update deps, fix prettier-tailwind config
MikaelSiidorow Jun 3, 2024
b561623
fix: metadata, add og image
MikaelSiidorow Jun 3, 2024
55954f8
oops, format code to add trailing comma
MikaelSiidorow Jun 3, 2024
68aebdc
chore: update deps
MikaelSiidorow Jun 11, 2024
500a828
disable turbopack in next dev
MikaelSiidorow Jun 11, 2024
bedd06e
chore: upgrade to turbopack v2
MikaelSiidorow Jun 11, 2024
9ee9d7e
group turbo and eslint-config-turbo in dependabot
MikaelSiidorow Jun 11, 2024
f030c1a
add a displayTitle for admin panel for committee members
MikaelSiidorow Jun 11, 2024
990e965
fix: do not delete displayTitles from db and allow relationship dropd…
MikaelSiidorow Jun 11, 2024
01e7f02
add better default columns to committee members
MikaelSiidorow Jun 11, 2024
150599d
format
MikaelSiidorow Jun 12, 2024
997f588
Feature/hsl api endpoint (#362)
lanttu1243 Jun 15, 2024
a3014a9
Bump the patches group with 3 updates (#392)
dependabot[bot] Jun 21, 2024
6bc593f
Bump the turbo group with 2 updates (#390)
dependabot[bot] Jun 21, 2024
3b66205
Bump the payload group across 1 directory with 3 updates (#393)
dependabot[bot] Jun 21, 2024
a316558
chore: bump typescript to 5.5.2 (#395)
kahlstrm Jun 21, 2024
7e7e53f
Revert "chore: bump typescript to 5.5.2 (#395)" (#396)
kahlstrm Jun 21, 2024
e4aa940
Chore: bump typescript to 5.5.2 (#398)
kahlstrm Jun 21, 2024
8414f1e
fix: don't run local build with dotenv
kahlstrm Jun 21, 2024
72026bf
fix: clear up build-directory for CMS as well
kahlstrm Jun 21, 2024
598923c
chore: remove downLevelIteration now that we have higher target
kahlstrm Jun 21, 2024
39df16a
fix: fix incorrect mongo connection string for oAuthPlugin
kahlstrm Jun 21, 2024
190823e
Revert "fix: fix incorrect mongo connection string for oAuthPlugin"
kahlstrm Jul 7, 2024
50280dd
feat: Alkorytmi improvements (#406)
anolpe Jul 12, 2024
0da2a2a
chore: minor cleanup for PR template
kahlstrm Jul 12, 2024
e8fd491
chore: update deps
MikaelSiidorow Jul 16, 2024
c44e878
chore: update pnpm
MikaelSiidorow Jul 16, 2024
f1b5246
add a more detailed text for non-public signups
MikaelSiidorow Jul 16, 2024
0bb998b
feat: support gfm to auto linkify urls in event description
MikaelSiidorow Jul 16, 2024
fb5586f
mit license project
MikaelSiidorow Jul 12, 2024
32bc8b8
chore: update pnpm and deps
MikaelSiidorow Jul 23, 2024
fc4d020
chore: add github actions to dependabot
MikaelSiidorow Jul 23, 2024
45b6c5b
chore: move monorepo common packages to use catalogs
MikaelSiidorow Jul 23, 2024
8a5da56
Bump docker/build-push-action from 5 to 6
dependabot[bot] Jul 26, 2024
a7699a7
Bump pnpm/action-setup from 3 to 4
dependabot[bot] Jul 26, 2024
5c01bd8
chore: update deps
MikaelSiidorow Aug 5, 2024
e1324b8
chore: update deps
MikaelSiidorow Aug 10, 2024
a62d9a8
feat(admin): enable upload previews for upload fields
MikaelSiidorow Aug 10, 2024
bb7ab3c
feat: add input and textarea components
MikaelSiidorow Jul 27, 2024
185da9e
feat: implement ilmomasiina sign up integration
MikaelSiidorow Jul 27, 2024
1096b8b
feat: add lowkey beta notice to sign up integration with link to ilmo…
MikaelSiidorow Jul 27, 2024
d2b2a51
fix: possible accessibility and ux issues with sign up form fields
MikaelSiidorow Jul 27, 2024
c6c2062
feat: Add displayTitle in news item and committee member to database …
joonatanaatos Jun 16, 2024
217b8ef
chore: Update database seeding data
joonatanaatos Jun 16, 2024
6e43ae7
chore: Fix typecheck issues
joonatanaatos Aug 10, 2024
577c9f1
feat: add next toploader for a loading indicator on page navigate
MikaelSiidorow Aug 10, 2024
4a0d7d7
feat: use css variables to define colors
MikaelSiidorow Aug 10, 2024
154ee5c
feat: use css variables to define box shadows
MikaelSiidorow Aug 10, 2024
94d1cf7
feat: use css variables and theme colors for event calendar
MikaelSiidorow Aug 10, 2024
5445547
fix: mobile sheet nav accessibility issues
MikaelSiidorow Aug 5, 2024
0359236
feat(ui): extract common pattern to card component
MikaelSiidorow Aug 5, 2024
c247dcc
feat: Add endpoint for uploading media
joonatanaatos Aug 10, 2024
6c242fc
chore: Update seeding data
joonatanaatos Aug 10, 2024
c172edb
feat: Link committee photos
joonatanaatos Aug 10, 2024
04ec406
chore: fix code style
joonatanaatos Aug 10, 2024
d5372ff
feat: add api route to get events in ics format
MikaelSiidorow Aug 10, 2024
4caeac6
feat: add copy to clipboard with javascript
MikaelSiidorow Aug 10, 2024
2fd0362
Change committee list order
Mikmokki Aug 10, 2024
3b0f3c8
feat: add recruitment text to dev console on page load
MikaelSiidorow Aug 10, 2024
9ea2540
fix: covers of alkorytmi with different aspect ratio
anolpe Aug 10, 2024
16ace3b
feat: link newsletter events to ilmomasiina
tonitert Aug 10, 2024
d86c095
chore: format code
tonitert Aug 10, 2024
57e4ba4
fix: move link inside prose, add title to link text for screen reader…
tonitert Aug 10, 2024
b2ecec6
fix: null check content in NewsItemContent
tonitert Aug 10, 2024
0ddda93
fix: website can only be rendered in light scheme (for now)
MikaelSiidorow Aug 12, 2024
293e39b
feat: remove beta notice from signup footer
MikaelSiidorow Aug 12, 2024
3c916f4
feat: link url and categories in ics
MikaelSiidorow Aug 14, 2024
5ea8275
fix(ics): use host for uids, origin for urls
MikaelSiidorow Aug 14, 2024
0b2576e
fix(style): inconsistent casing in Dockerfile [skip ci]
MikaelSiidorow Aug 14, 2024
b3c65f6
feat(ics): add event page url in event description
MikaelSiidorow Aug 14, 2024
68c0ffc
fix: get host from request headers for production
MikaelSiidorow Aug 14, 2024
d6b7319
fix(ics): remove port from url
MikaelSiidorow Aug 14, 2024
4747dd4
fix(ics): only remove port in production to keep it working locally
MikaelSiidorow Aug 14, 2024
ea7eabe
fix: localized links for calendar description footer
MikaelSiidorow Aug 15, 2024
c62132b
feat: add invoice generator UI
tonitert Aug 15, 2024
4507c06
fix: fix laskugeneraattori url example
tonitert Aug 16, 2024
a1134c1
feat: better form UX
tonitert Aug 16, 2024
87b8d0c
fix: move invoice generator action to server
tonitert Aug 16, 2024
0f9780a
chore: format
tonitert Aug 16, 2024
acafbdf
chore: update deps
MikaelSiidorow Aug 19, 2024
ed65ae6
fix: add missing localizations to some labels in ilmomasiina
MikaelSiidorow Aug 19, 2024
603a6e7
fix: add some padding to page headers
MikaelSiidorow Aug 19, 2024
86f0bfd
feat: add granular not-found pages to events and signups
MikaelSiidorow Aug 19, 2024
20f38bf
feat: add confirm popover to sign up deletion
MikaelSiidorow Aug 21, 2024
5629b37
chore: update deps
MikaelSiidorow Aug 27, 2024
f4353cb
fix: pin node version
MikaelSiidorow Aug 27, 2024
0c80dd7
fix: downgrade to node v20
MikaelSiidorow Aug 27, 2024
d72a776
chore: upgrade back to node 22
MikaelSiidorow Aug 27, 2024
433e87b
Add possibility to create drafts for weekly newsletters
Mikmokki Aug 23, 2024
7589e73
pnpm update next terser
Mikmokki Aug 23, 2024
3fdc19a
Revert "Add possibility to create drafts for weekly newsletters"
Mikmokki Aug 23, 2024
5df1303
Feat: Add possibility to create drafts for weekly newsletters
Mikmokki Aug 23, 2024
64ef792
Revert pnpm-lock changes
Mikmokki Aug 27, 2024
1067042
feat: add draft-based ACL to weekly newsletters
MikaelSiidorow Aug 27, 2024
e2163af
chore: refresh pnpm lock
MikaelSiidorow Aug 27, 2024
934c0d9
fix: truncate signup quota name in sign ups list
MikaelSiidorow Sep 2, 2024
8e77cf8
chore: update deps
MikaelSiidorow Sep 6, 2024
0665000
fix: disable sign up button while form is submitting
MikaelSiidorow Sep 6, 2024
f803eac
fix: consistent height for committee member photos and placeholders
MikaelSiidorow Sep 8, 2024
a00a165
fix: balance multi-row text on button styles
MikaelSiidorow Sep 8, 2024
ae9f710
fix: hide repetitive "sign up" text from multi quota events
MikaelSiidorow Sep 8, 2024
c22f874
fix: move hero image copyright to avoid overlap
kahlstrm Sep 9, 2024
6f1b269
Mark ICS event end time as UTC (Fixes #455)
IiroP Sep 9, 2024
f79bd4d
fix: Disable prefetching for language selector
IiroP Sep 9, 2024
d2be261
wip: fix laskugeneraattori
tonitert Aug 20, 2024
bb0af22
refactor: extend InputHTMLAttributes
tonitert Sep 2, 2024
e01cdf6
feat: add placeholders
tonitert Sep 2, 2024
d777a62
fix: more margin between rows
tonitert Sep 2, 2024
a978ebf
chore: format and lint
tonitert Sep 2, 2024
ae3f7ee
fix: due date -> date
tonitert Sep 9, 2024
8af938a
Add support for generating and sending weekly newsletter emails.
Mikmokki Sep 1, 2024
5c541ca
Fix typecheck errors
Mikmokki Sep 1, 2024
b74bafa
Fix build errors
Mikmokki Sep 1, 2024
1452cb7
Add support for copying tg messages
Mikmokki Sep 8, 2024
94e33eb
Remove unused tailwind classes from cms, remove unused components fro…
Mikmokki Sep 9, 2024
9869ef6
Fix build error
Mikmokki Sep 9, 2024
4b8054c
feat: Improved items list in invoice generator (#491)
TagLin3 Sep 12, 2024
f704d84
Fix: Change button to download HTML instead of copying (#494)
Mikmokki Sep 15, 2024
068d156
fix: changed lasku generaattori items title (#493)
TagLin3 Sep 15, 2024
c2d1a74
fix: workaround for popover in form in webkit
MikaelSiidorow Sep 16, 2024
d845b74
fix: remove unused import
MikaelSiidorow Sep 16, 2024
a25da99
fix: ts-expect-error for new popovertarget feature
MikaelSiidorow Sep 16, 2024
a3b07dd
fix: committee recruitment monospace on safari
MikaelSiidorow Sep 16, 2024
6491d4a
fix: cursor-pointer for input type="button"
MikaelSiidorow Sep 16, 2024
02446d0
feat: render per-field errors from ilmomasiina in frontend
MikaelSiidorow Sep 16, 2024
cd622ff
fix: properly map multiple choice questions to array in ilmomasiina i…
MikaelSiidorow Sep 16, 2024
5c62e3e
chore: update deps
MikaelSiidorow Sep 16, 2024
9573f95
fix: leftpad sign up milliseconds
MikaelSiidorow Sep 18, 2024
2db0f59
chore: update deps
MikaelSiidorow Sep 21, 2024
7a15b5d
fix: disable sign up editing and deletion if event sign ups are closed
MikaelSiidorow Sep 21, 2024
a864de9
Modify mail sending routes to be entirely on backend
Mikmokki Sep 18, 2024
3dd2e33
Add order numbers for headers
Mikmokki Sep 18, 2024
c7639c6
Add inter font to email
Mikmokki Sep 18, 2024
bc1af6a
feat: add external link ctaType to news
MikaelSiidorow Sep 23, 2024
e639111
Feat: Badges of honor (#515)
emiliarepo Oct 4, 2024
35f22ea
fix: try to tweak calendar intergration cache options
MikaelSiidorow Oct 7, 2024
ae6de5d
fix: tweak ics integration config
MikaelSiidorow Oct 7, 2024
f789ad0
fix: fold ics url text
MikaelSiidorow Oct 7, 2024
2b634af
fix: remove unnecessary console.log
MikaelSiidorow Oct 7, 2024
1eb5d67
chore: update deps
MikaelSiidorow Oct 10, 2024
44626fe
fix: form actions without state must return void
MikaelSiidorow Oct 10, 2024
b6699f0
fix: autofix linting issues
MikaelSiidorow Oct 10, 2024
958d0e7
fix: Load VT323 font for Teemu Teekkari game (#517)
IiroP Oct 7, 2024
fbabb59
feat: update eslint v9
MikaelSiidorow Oct 10, 2024
b404712
fix: next-env.d.ts should be checked out in git
MikaelSiidorow Oct 10, 2024
9d0b41e
feat: Use outline icons for mail/telegram
IiroP Oct 24, 2024
47861b4
chore: update deps
MikaelSiidorow Oct 24, 2024
4258a95
chore: update deps (#540)
MikaelSiidorow Oct 30, 2024
dc98ef8
fix: force ics cache busting by setting dtstamp as current time (#542)
MikaelSiidorow Oct 30, 2024
f8228c0
feat: Scroll to top when opening signup page (#535)
IiroP Oct 30, 2024
13fee16
feat: support infinite quota in UI (#544)
MikaelSiidorow Oct 30, 2024
76c438a
fix: JSX imports from React
MikaelSiidorow Oct 30, 2024
cedccc5
feat: implement support for custom localization in markdown content
MikaelSiidorow Oct 30, 2024
9f69a44
feat: implement support for localizing event titles in UI with common…
MikaelSiidorow Oct 30, 2024
99057c1
fix: properly localize event title on event page
MikaelSiidorow Oct 31, 2024
f157547
feat: add total price to invoice generator (#548)
emiliarepo Oct 31, 2024
a131768
fix laskugen props (#550)
emiliarepo Oct 31, 2024
786b23d
chore: Small fixes
joonatanaatos Nov 6, 2024
51bb323
feat: syse go brr
joonatanaatos Nov 20, 2024
15a214e
Add email field for committee members
Mikmokki Aug 11, 2024
a67d7cb
Remove text from committee member telegram and email
Mikmokki Nov 21, 2024
bcea1e5
fix: parse JSON error format
tonitert Nov 21, 2024
e6d4acd
feat: Create all events page
joonatanaatos Nov 21, 2024
ba9a999
fix: remove filters from company logos
joonatanaatos Nov 23, 2024
c7a1bad
feat: update events fetch for ilmomasiina 2.0.0-alpha37 (#563)
PurkkaKoodari Nov 28, 2024
8426e11
chore: Remove SySe stuff
joonatanaatos Dec 1, 2024
98a6907
chore: update dependencies
MikaelSiidorow Dec 15, 2024
2433658
fix: linting warnings in invoice gen
MikaelSiidorow Dec 15, 2024
fefcb2a
fix: re-order codegen before format+lint tasks in CI
MikaelSiidorow Dec 15, 2024
652bea9
fix: turborepo config with non-persistent tasks
MikaelSiidorow Dec 15, 2024
a17dc1e
fix: invalid dom nesting with committee member email+tg links
MikaelSiidorow Dec 15, 2024
8b958cc
fix: add accessible link text to committee member email+tg links
MikaelSiidorow Dec 15, 2024
cacf90f
fix: committee members grid layout on chrome browsers after update
MikaelSiidorow Dec 15, 2024
30e999d
chore: remove lodash in favor of remeda
kahlstrm Jan 4, 2025
dd20c97
chore: update generated payload types and schema
kahlstrm Jan 4, 2025
27cb0b6
feat: development environment seeding data cleanup & script improveme…
kahlstrm Jan 5, 2025
6603b62
feat!: update to next 15 and react 19 (#534)
MikaelSiidorow Jan 5, 2025
ebd0b3c
chore(deps): bump the patches group across 1 directory with 3 updates…
dependabot[bot] Jan 5, 2025
11b6c16
chore: update dependencies
MikaelSiidorow Jan 6, 2025
a364758
chore: add root payload.config.ts to .gitignore
kahlstrm Jan 6, 2025
06696a6
feat: add nix flake and .devcontainer.json (#594)
lajp Jan 15, 2025
534df5d
Make invoice success text larger
JaaskelainenL Sep 11, 2024
ae00f6d
Add Sonner for success toast
JaaskelainenL Oct 24, 2024
7744e76
Move Toaster to layout.tsx
JaaskelainenL Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"customizations": {
"vscode": {
"extensions": [
"mkhl.direnv",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"bradlc.vscode-tailwindcss",
"yoavbls.pretty-ts-errors",
"github.vscode-github-actions",
"ms-vscode.vscode-typescript-next"
],
"settings": {
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"eslint.runtime": "node_modules/.bin/eslint",
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
"tailwindCSS.experimental.classRegex": [
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
]
}
}
},
"image": "ghcr.io/cachix/devenv:latest",
"overrideCommand": false,
"updateContentCommand": "direnv reload",
"remoteEnv": { "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" },
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
}
}
7 changes: 7 additions & 0 deletions .env.docker-compose.prod
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@ NEXT_REVALIDATION_KEY="veryprivatekey"
PUBLIC_FRONTEND_URL="http://localhost:3000"
PUBLIC_SERVER_URL="http://cms:3001"
PUBLIC_ILMOMASIINA_URL="https://ilmo.tietokilta.fi"
PUBLIC_LEGACY_URL="https://tietokilta.fi"

MAILGUN_SENDER=""
MAILGUN_RECEIVER=""
MAILGUN_API_KEY=""
MAILGUN_DOMAIN=""
MAILGUN_URL=""
15 changes: 15 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,21 @@ PAYLOAD_PUBLIC_LOCAL_DEVELOPMENT=true

NEXT_REVALIDATION_KEY="veryprivatekey"

# Digitransit API key for HSL traffic data for info screen www.digitransit.fi/en/developers/api-registration/
DIGITRANSIT_SUBSCRIPTION_KEY="very secret stuff"

PUBLIC_FRONTEND_URL="http://localhost:3000"
PUBLIC_SERVER_URL="http://localhost:3001"
PUBLIC_ILMOMASIINA_URL="https://ilmo.tietokilta.fi"
PUBLIC_PRODUCTION_URL="https://tietokilta.fi"
PUBLIC_LEGACY_URL="https://old.tietokilta.fi"
NEXT_PUBLIC_LASKUGENERAATTORI_URL="https://laskutus.tietokilta.fi"

MAILGUN_SENDER=""
MAILGUN_RECEIVER=""
MAILGUN_API_KEY=""
MAILGUN_DOMAIN=""
MAILGUN_URL=""

# variables required for Google OAuth 2.0, otherwise disabled
#GOOGLE_OAUTH_CLIENT_ID=
Expand All @@ -30,3 +42,6 @@ PUBLIC_ILMOMASIINA_URL="https://ilmo.tietokilta.fi"
# AZURE_STORAGE_CONTAINER_NAME=az-media
# AZURE_STORAGE_ALLOW_CONTAINER_CREATE=true
# AZURE_STORAGE_ACCOUNT_BASEURL=http://localhost:10000/devstoreaccount1

# For showing the git commit sha in the footer and in requests
GIT_COMMIT_SHA=development
10 changes: 10 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi

watch_file flake.nix
watch_file flake.lock
if ! use flake . --no-pure-eval --accept-flake-config
then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ignore database seeding data in diffs
data/gen/** linguist-generated=true
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: npm
directory: "/"
schedule:
Expand All @@ -21,6 +26,10 @@ updates:
- "react-dom"
- "@types/react"
- "@types/react-dom"
turbo:
patterns:
- "turbo"
- "eslint-config-turbo"
lint:
patterns:
- "eslint*"
Expand Down
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Description

- ...

### Before submitting the PR, please make sure you do the following

- [ ] If your PR is related to a previously discussed issue, please [link to it](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue) here.
- [ ] Prefix your PR title with feat:, fix:, chore:, or docs:.
- [ ] This message body should clearly illustrate what problems it solves.
- [ ] Make sure the commit history is linear, up-to-date with main branch and does not contain any erroneous changes

### Formatting and linting

- [ ] Format code with `pnpm format` and lint the project with `pnpm lint`
39 changes: 28 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,42 @@ jobs:
with:
fetch-depth: 2

- uses: pnpm/action-setup@v2
- name: Setup turborepo cache
uses: actions/cache@v4
with:
version: 8
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-

- name: Use Node.js 20
- uses: pnpm/action-setup@v4
with:
version: 9.15.3

- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22.12.0
cache: "pnpm"

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Generate Payload types (to ensure that they are up to date)
run: pnpm codegen && git diff --exit-code

- name: Format (to ensure that code has been formatted)
run: pnpm format && git diff --quiet
run: pnpm format && git diff --exit-code

- name: Lint
run: pnpm lint
- name: Generate Payload types (to ensure that they are up to date)
run: pnpm codegen && git diff --quiet

- name: Typecheck
run: pnpm typecheck

- name: Build all
run: pnpm build

docker-build-and-push:
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'release' && github.event.action == 'published')
needs: build
Expand Down Expand Up @@ -73,7 +89,7 @@ jobs:
type=raw,value=latest,enable={{is_default_branch}}

- name: Push to GitHub Packages
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand All @@ -83,7 +99,8 @@ jobs:
PROJECT=${{matrix.project}}
GIT_COMMIT_SHA=${{github.sha}}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=min

deploy:
# only run on published releases, enable this when we release
#if: github.event_name == 'release' && github.event.action == 'published'
Expand All @@ -95,7 +112,7 @@ jobs:
project: [web, cms]
steps:
- name: Login via Azure CLI
uses: azure/login@v1
uses: azure/login@v2
with:
client-id: ${{secrets.AZURE_CLIENT_ID}}
subscription-id: ${{secrets.AZURE_SUBSCRIPTION_ID}}
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ server/dist
public/dist
.vscode
!.vscode/extensions.json
.idea
/payload.config.ts
.devenv
.direnv
.pnpm-store
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22.12.0
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-packagejson"]
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-packagejson"],
"tailwindAttributes": ["cva", "cn", "clsx"],
"tailwindFunctions": ["cva", "cn", "clsx"]
}
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Base image with Node.js
ARG NODE_VERSION=20
ARG NODE_VERSION=22.12.0
# Use a specific version of the Node.js Alpine image as the base. Alpine images are minimal and lightweight.
FROM node:${NODE_VERSION}-alpine AS base
# Update the package list and install libc6-compat. This package is often required for binary Node.js modules.
RUN apk add --no-cache libc6-compat

# Setup pnpm and turbo
# Start a new stage based on the base image for setting up pnpm (a package manager) and turbo (for monorepo management).
FROM base as setup
FROM base AS setup
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
Expand All @@ -17,13 +17,12 @@ RUN pnpm install --global turbo
# Build argument for specifying the project
# Introduce a build argument 'PROJECT' to specify which project in the monorepo to build.
ARG PROJECT=web
ARG GIT_COMMIT_SHA=development
ENV GIT_COMMIT_SHA=$GIT_COMMIT_SHA
# Install all dependencies in the monorepo
# Start a new stage for handling dependencies. This stage uses the previously setup image with pnpm and turbo installed.
FROM setup AS dependencies
WORKDIR /app
# Copy the essential configuration files and the specific project's files into the Docker image.
COPY patches/ ./patches/
COPY packages/ ./packages/
COPY turbo.json ./
COPY package.json turbo.json packages ./
Expand All @@ -44,6 +43,9 @@ RUN rm -rf /app/out/full/*/*/node_modules
FROM setup AS builder
WORKDIR /app

ARG GIT_COMMIT_SHA=development
ENV GIT_COMMIT_SHA=$GIT_COMMIT_SHA

# Copy pruned lockfile and package.json files
# This ensures that the builder stage has the exact dependencies needed for the project.
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
Expand Down Expand Up @@ -74,6 +76,7 @@ FROM base AS runner
ARG PROJECT=web
ARG GIT_COMMIT_SHA=development
ENV GIT_COMMIT_SHA=$GIT_COMMIT_SHA
ENV NODE_ENV=production
# Create a non-root user and group for better security.
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nodejs
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Tietokilta ry

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
11 changes: 0 additions & 11 deletions apps/cms/.eslintrc.js

This file was deleted.

8 changes: 8 additions & 0 deletions apps/cms/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import ts from "typescript-eslint";
import server from "@tietokilta/eslint-config/server";

export default ts.config(...server, {
rules: {
"unicorn/prefer-node-protocol": "off",
},
});
5 changes: 0 additions & 5 deletions apps/cms/nodemon.json

This file was deleted.

Loading
Loading