Skip to content
Merged

Test #19

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
418 commits
Select commit Hold shift + click to select a range
5659963
tests: add new tests for Auth page
AnnPoshtak Apr 13, 2026
5975599
feat: implment notifications using websockets
Fundi1330 Apr 13, 2026
4d3a89c
refactor(routes): send notifications after the request was approved/r…
Fundi1330 Apr 13, 2026
01e1075
test: make role request approval/rejection and sending notification t…
Fundi1330 Apr 13, 2026
531df3d
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 Apr 13, 2026
89d44eb
feat(ForgotPassword): Add styles for page password reset
AnnPoshtak Apr 14, 2026
e246a8f
fix: remane function
Yar00myr Apr 14, 2026
40d243d
chore(.env.example): Add .env.example file
AnnPoshtak Apr 14, 2026
4f97190
test: test for ForgotPassword page
AnnPoshtak Apr 14, 2026
5a4384b
feat(sockets): Add error message if sockets doesnt work
AnnPoshtak Apr 14, 2026
ad904a3
chore: Some changes
AnnPoshtak Apr 14, 2026
2486576
feat(notifications): show notifications form backend and sockets
AnnPoshtak Apr 15, 2026
7d7070f
feat(Profile): Add roles for profile page
AnnPoshtak Apr 15, 2026
2d4269d
Merge branch 'dev' into routes
Yar00myr Apr 16, 2026
7b41bb1
Merge pull request #10 from ugalaxy-team/routes
Yar00myr Apr 16, 2026
c113b5e
fix: update schemas aftet merge
Yar00myr Apr 16, 2026
7142e26
feat: setup i18n and polish header
izachoc Apr 16, 2026
7f42fdf
chore(getRole): Remove buttons for getting andmin and jury role
AnnPoshtak Apr 17, 2026
d158c61
test: add somw new test for Auth pages. Rewrite test on profile and g…
AnnPoshtak Apr 17, 2026
a1a508d
feat: add user avatar and name to header dropdown
izachoc Apr 17, 2026
6d4e75e
fix: can not import SessionDep
Fundi1330 Apr 18, 2026
9fe0702
chore: update requirements.txt
Fundi1330 Apr 18, 2026
3397095
refactor: use name as role id and add description field to role
Fundi1330 Apr 4, 2026
71e5fff
test: move name and display_name to a BaseOptionFactory class and ref…
Fundi1330 Apr 18, 2026
fe88a9f
feat: dockerize the app
Fundi1330 Apr 18, 2026
7e64f4e
chore: update dependencies and environment variables
izachoc Apr 22, 2026
6022d1f
feat: setup full i18n support and translation dictionaries
izachoc Apr 22, 2026
b34687a
chore: implement adaptive design system, Tailwind variables and core …
izachoc Apr 22, 2026
1175698
feat: build adaptive Header with glassmorphism, theme toggle and drop…
izachoc Apr 22, 2026
43f5d98
ui: completely redesign Hero section and Home page with Framer Motion
izachoc Apr 22, 2026
eb56c2c
feat: refactor tournament pages, add dynamic statuses and smooth tab …
izachoc Apr 22, 2026
272b367
ui: refine Auth and Registration layouts with BrandingPanel support
izachoc Apr 22, 2026
9ee923f
ui: polish static pages (404, FAQ, Contact, Support) for dark theme c…
izachoc Apr 22, 2026
c69424f
fix: alembic could not run migrations
Fundi1330 Apr 23, 2026
5dd7515
feat: implement admin panel using sqlaclhemy admin
Fundi1330 Apr 23, 2026
5a3f062
refactor: move firebase initialization to config class
Yar00myr Apr 23, 2026
dcc5a01
refactor: provide absolute path to .env file in pydantic settings
Fundi1330 Apr 24, 2026
dc1689c
refactor: rename max_team to max_teams
Fundi1330 Apr 24, 2026
e40d65c
fix: User.notifications could not be loaded properly
Fundi1330 Apr 24, 2026
2f3e94b
feat: implement User.participates_in
Fundi1330 Apr 24, 2026
6080ef7
feat(profileDropDown): Add panels. It shows only if user have roles o…
AnnPoshtak Apr 25, 2026
3a95ac3
feat(oranizer-panel): Add Oranizer page with mock-data
AnnPoshtak Apr 25, 2026
4c4d932
feat(response): write files for resons about tournament. Create delet…
AnnPoshtak Apr 25, 2026
fa2517f
chore(profilw page): Delete teams colob
AnnPoshtak Apr 25, 2026
1d1d838
fix: name participates_in correctly
Fundi1330 Apr 25, 2026
f9218c1
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 Apr 25, 2026
83007d4
feat: add end_date field to tournaments
Yar00myr Apr 25, 2026
85365ba
feat: add missing fields to Tournament, Team and TeamMember
Fundi1330 Apr 26, 2026
0a028f5
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 Apr 26, 2026
02ef8d6
test: remove useless without_data tests
Fundi1330 Apr 26, 2026
cffc7d7
refactor: Tournament.end_date is calculated automatically instead of …
Fundi1330 Apr 26, 2026
1422a51
fix: pydantic could not get the value of TournamentPublic.status_name…
Fundi1330 Apr 26, 2026
1acc107
fix(admin): could not edit or create name column for option-based models
Fundi1330 Apr 26, 2026
7e846f8
refactor(Tournament): active_task is selected automatically based on …
Fundi1330 Apr 26, 2026
0c5d59d
chore: add __repr__ to each model
Fundi1330 Apr 26, 2026
069a905
feat(organizerPanel): Add modals for create tournament and edit. Also…
AnnPoshtak Apr 28, 2026
178b720
feat: add cascade to models
Fundi1330 Apr 28, 2026
89b3cf2
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 Apr 28, 2026
abfdb9f
refactor: update routes
Yar00myr Apr 28, 2026
20de77b
refactor: minor changes
Yar00myr Apr 28, 2026
10d5c0f
fix: minor changes
Yar00myr Apr 28, 2026
7ff0c5c
chore(organizerPanel): delete end_date field
AnnPoshtak Apr 29, 2026
613d61e
refactor(getRole): rewrite into react-query
AnnPoshtak Apr 29, 2026
8d360e4
refactor(tournament page): rwrite in react query
AnnPoshtak Apr 29, 2026
1fe9afd
refactor(editProfile): rewrite into react query
AnnPoshtak Apr 29, 2026
da009e0
chore(organizer-panel): rewrite into react query
AnnPoshtak Apr 29, 2026
5f708c2
refactor(forrgot password): rewrite into react query
AnnPoshtak Apr 29, 2026
da5b699
feat(newsPage): Add newsPage with mock-data
AnnPoshtak Apr 29, 2026
2a98ef7
fix: minor changes with schemas and fix datetime to naive
Yar00myr Apr 29, 2026
39ceda8
chore(OrganixerPanel)change h1 in oranizer panel page and delete end_…
AnnPoshtak Apr 30, 2026
1980956
tests: write tests for organizerPanel, redux slices, firebase.ts, hoo…
AnnPoshtak Apr 30, 2026
7bca58a
fix: update creator_id
Yar00myr Apr 30, 2026
0d37721
feat: implement database seed from config file
Fundi1330 May 1, 2026
8f13a97
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 May 1, 2026
2605921
feat: add approve and reject actions to role request admin view
Fundi1330 May 1, 2026
7ee6ec3
feat(admin): add approve and reject buttons for role request
Fundi1330 May 1, 2026
e4fdf1b
Merge branch 'dev' into routes
Yar00myr May 1, 2026
ea80b02
refactor: small change in tournament endpoint
Yar00myr May 1, 2026
b433eb0
fix: allow frontend origins in CORS and socketio configurations
Yar00myr May 2, 2026
f4d409c
feat: implement admin panel auth
Fundi1330 May 2, 2026
1a2f807
refactor: remove user_id from role request schema and simplify logic
Yar00myr May 2, 2026
32c2aed
feat: add go back to frontend button to admin panel
Fundi1330 May 2, 2026
3403820
chore(Auth): make Login tab first. Also add a pointer cursor
AnnPoshtak May 2, 2026
1dfe420
refactor: create the session instead of calling get_session function
Fundi1330 May 2, 2026
802e521
refactor: run auth.get_user_by_email in a separate thread to stop blo…
Fundi1330 May 2, 2026
4fc9e7e
feat(App): rewrite toast messages logic. And update App structure
AnnPoshtak May 2, 2026
0af25ca
fix(getRole): Rewrite in sonnet
AnnPoshtak May 2, 2026
fbd4f71
test: rewrite Auth tests
AnnPoshtak May 2, 2026
2e79711
Merge pull request #12 from ugalaxy-team/admin-panel
Fundi1330 May 2, 2026
20776dc
feat(seeds): add role request options and update categories initializ…
Yar00myr May 2, 2026
7017ee8
refactor: improve role-request endpoints and logic
Yar00myr May 3, 2026
8f413d1
refactor: code changes, moving to separate files
Yar00myr May 3, 2026
672652e
fix: minor changes
Yar00myr May 3, 2026
638a55e
refactor: move send_notification from app.util to app.utils
Fundi1330 May 3, 2026
8cfe1ec
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 May 3, 2026
0de3dea
feat: implement datetime mixin with created_at and updated_at fields
Fundi1330 May 3, 2026
9ef7b7b
refactor: refactor users endpoints
Yar00myr May 3, 2026
88e2f06
Merge branch 'dev' into routes
Yar00myr May 3, 2026
d05a5b7
feat(news): create a News model for news and implement notification s…
Fundi1330 May 3, 2026
0db1f31
refactor(Notification): remove is_global field
Fundi1330 May 3, 2026
39ca4eb
fix: fix toasrs messages
AnnPoshtak May 3, 2026
e600ea8
feat(User): implement loading global notifications
Fundi1330 May 3, 2026
4f89ffe
fix: sort notifications
AnnPoshtak May 3, 2026
a8dd5cc
feat: load news from backend
Fundi1330 May 3, 2026
ec65e1a
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 May 3, 2026
1924253
refactor: code refactoring
Yar00myr May 3, 2026
40ac1aa
fix: code fixes prior to the merge
Yar00myr May 4, 2026
a4037c1
fix: small fix in current_user file
Yar00myr May 4, 2026
4c850e3
refactor(i18n): move locales to src, replace HttpBackend with static …
izachoc May 5, 2026
9e1f835
feat(registration): implement multi-step form with dynamic Zod valida…
izachoc May 5, 2026
400ae72
feat(home): localize hero section and update tournament roulette to f…
izachoc May 5, 2026
9b2792e
style: apply new design system, theme transitions, and translations a…
izachoc May 5, 2026
3adbc1b
Merge branch 'dev' into routes
Fundi1330 May 5, 2026
5ea819a
Merge pull request #13 from ugalaxy-team/routes
Fundi1330 May 5, 2026
dea6add
fix(docker): add build dependencies for python packages
Yar00myr May 5, 2026
edb3266
fix: fix invalid JSON syntax
Yar00myr May 5, 2026
d377547
feat(Tournament): add Tournament.juries field and update tournament r…
Fundi1330 May 5, 2026
877e441
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 May 5, 2026
682794b
refactor(models): remove unnecessary string field length limits
Fundi1330 May 5, 2026
c100502
refactor: use settings for admin role name instead of hardcoded string
Yar00myr May 5, 2026
a74d0bc
chore: update requirements.txt
Fundi1330 May 5, 2026
0a5e1d6
refactor(routes): delete unused task_options routes
Fundi1330 May 5, 2026
c8ba15d
refactor: replace deprecated current_state with configuration
Yar00myr May 5, 2026
1e34aa8
refactor(utils): move utility functions like get_user to utils module…
Fundi1330 May 5, 2026
c3f79a1
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 May 5, 2026
5eb3155
refactor(utils): move get_role to app.utils
Fundi1330 May 5, 2026
75f09fc
fix: import issues with app.utils
Fundi1330 May 5, 2026
9bfa9c7
refactor: remove create_team_record and move logic to endpoint
Yar00myr May 5, 2026
beeb677
refactor(routes): add check for login in routes that require it
Fundi1330 May 5, 2026
2b5020a
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 May 5, 2026
285cbfc
refactor: remove manual date validation in favor of Pydantic models
Yar00myr May 5, 2026
585cb1e
feat(actions): create github actions workflkw for running tests
Fundi1330 May 6, 2026
3a0b7fa
fix(actions): env variables are not being set in tests workflow
Fundi1330 May 6, 2026
81b19d4
fix(actions): load env variables properly
Fundi1330 May 6, 2026
b8dcee1
fix(actions): add checkout step
Fundi1330 May 6, 2026
3ce6115
fix(actions): ignore serviceAccountKey.json if it does not exist duri…
Fundi1330 May 6, 2026
2a1beb1
fix(routes): when empty data was provided to update_tournament it thr…
Fundi1330 May 6, 2026
d19857a
fix(tests): firebase_admin is not a module
Fundi1330 May 6, 2026
ce92912
feat: add prettier and format all files
Fundi1330 May 6, 2026
4fff8bc
feat: run prettier before commit
Fundi1330 May 6, 2026
b3150b6
feat: add ruff
Fundi1330 May 6, 2026
1364375
feat: run tests and ruff before commit
Fundi1330 May 6, 2026
aa9e8da
test: temprorary comment profile snapshot test
Fundi1330 May 6, 2026
1463bc9
chore: remove baseUrl from tsconfig.app.json
Fundi1330 May 6, 2026
e43ad73
tests: write more tests for src/profile
AnnPoshtak May 6, 2026
815c363
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
AnnPoshtak May 6, 2026
7e45c69
fix(tests): fix frontetnd tests
AnnPoshtak May 6, 2026
d81d47f
feat: enable AsyncAttrs globally in Base declarative class
Yar00myr May 7, 2026
cb5a04c
feat: add missing localization files and update config
izachoc May 7, 2026
24817d1
refactor: add lazy selectin to models
Yar00myr May 8, 2026
0f035ab
fix: add selectinload for get_user
Yar00myr May 8, 2026
23ed4ad
chore(db): configure pool_recycle and pool_pre_ping for async engine
Yar00myr May 9, 2026
fd15b7c
fix(schemas): add missing team size limits to TournamentUpdate
Yar00myr May 9, 2026
58dedd1
feat: create barebone jury panel
Fundi1330 May 9, 2026
4a4e362
Merge branch dev of https://github.com/ugalaxy-team/Project into dev
Fundi1330 May 9, 2026
57180cb
feat(seed): implement task requirement option seeding
Fundi1330 May 9, 2026
3c150bc
fix(pydantic): public models cause validation errors
Fundi1330 May 9, 2026
296bfa2
fix(models): no Tournament.submissions field
Fundi1330 May 9, 2026
b4d20bb
fix(models): use hybrid_property for is_jury to prevent MissingGreenl…
Yar00myr May 9, 2026
9eeb794
refactor: remove validation form Base models
Yar00myr May 9, 2026
1c1a39b
fix(schemas): restore inheritance in Create models
Yar00myr May 10, 2026
151c711
fix(schemas): resolve circular dependencies
Yar00myr May 10, 2026
aad0570
fix: add selectinload to tournament_load_options
Yar00myr May 10, 2026
63d2c6c
fix(schemas): use naive datetime for tasks
Yar00myr May 10, 2026
aa81524
feat(core): switch to react-toastify with dynamic theme support
izachoc May 11, 2026
6753db3
fix(ui): implement solid header logic for specific routes and fix bra…
izachoc May 11, 2026
144f0fb
feat(home): implement Noto Color SVG emojis
izachoc May 11, 2026
2564a2f
feat: other minor changes
izachoc May 11, 2026
d457f84
feat(OrganizerPanel): New features for organizer panel page. Maybe th…
AnnPoshtak May 11, 2026
b58451b
chore: sync .env.example with dev branch
izachoc May 11, 2026
986b79a
test: add coverage for shared components and api requests
AnnPoshtak May 11, 2026
4fb3168
[200~test: improve organizer panel page coverage~
AnnPoshtak May 11, 2026
632a58a
[200~test: add tournament management component tests~
AnnPoshtak May 11, 2026
c6e0e03
test: add task management test coverage
AnnPoshtak May 11, 2026
a933cac
test: add jury management tests
AnnPoshtak May 11, 2026
12b27d5
test: add organizer panel snapshot and coverage matrix tests
AnnPoshtak May 11, 2026
885d506
refactor: solved conflicts
izachoc May 11, 2026
75d7585
chore(InfoModal): rewrite email button, make all little bigger
AnnPoshtak May 11, 2026
9bd0fbd
chore(organixerPanel): rewrite styles
AnnPoshtak May 11, 2026
f9df7c7
chore(createTournamentModal): add tooltipls/ rewite styles and words
AnnPoshtak May 11, 2026
5a2723b
chore(editTournamentModal): rewte styles and ad tulltipd
AnnPoshtak May 11, 2026
168e6af
chore(taskTab): rewrite styles customize buttons
AnnPoshtak May 11, 2026
a353348
feat(data and time): write components for beautiful calendar
AnnPoshtak May 11, 2026
ab61281
feat(data and time): rewrite all modals for usnf out data time component
AnnPoshtak May 11, 2026
6cc3793
chore(app): delete notfcation about connection
AnnPoshtak May 11, 2026
22e61a6
refactor: standardize i18n keys, enforce team fonts, and migrate to l…
izachoc May 11, 2026
a2d274a
chore(TournamentPage): rewitre styles, add more tabs
AnnPoshtak May 12, 2026
a97798a
feat: minor changes to the previous commit
izachoc May 12, 2026
4fe2bec
fix: resolve merge conflicts with dev
izachoc May 12, 2026
92ef178
chore(TournamentPage): add calendar and task tabs
AnnPoshtak May 12, 2026
f789464
chore(teamModal): delete footer
AnnPoshtak May 12, 2026
af61485
chore(teamModal): delete closw button from top and add styles for clo…
AnnPoshtak May 12, 2026
49b934c
feat(dock): write readme.md file in english
AnnPoshtak May 12, 2026
3d5ecf8
feat(dock): write main readme.md with 2 languages
AnnPoshtak May 12, 2026
1814fb6
feat(dock): write main readme.md with 2 languages
AnnPoshtak May 12, 2026
0b08eae
feat: implement all necessary models and schemas for jury panel
Fundi1330 May 12, 2026
2958f50
feat: implement backend for jury panel
Fundi1330 May 12, 2026
a43ef35
feat: implement jury panel on frontend
Fundi1330 May 12, 2026
39c7901
test(pages&components): write more tests for all componnets and pages
AnnPoshtak May 13, 2026
68ca285
feat(Select): write our custom select and use it in TaskManagerModal.tsx
AnnPoshtak May 13, 2026
0a2eaa8
feat: implement missing api requests on frontend
Fundi1330 May 13, 2026
54725ba
refactor(models): remove TaskEvaluationCategory
Fundi1330 May 13, 2026
9bfc082
feat(routes): add ability to pass criterions on task creation and upd…
Fundi1330 May 13, 2026
a17cfd2
tests
AnnPoshtak May 13, 2026
4b85ba0
tests
AnnPoshtak May 13, 2026
23064ad
fix: add migratons
AnnPoshtak May 13, 2026
ae0b0ca
feat: update profile UI, EditProfileModal, Profile tests and fix auth…
izachoc May 13, 2026
49476dc
Merge branch 'dev' into feature/frontend-redesign
izachoc May 13, 2026
6c95cb2
Merge branch 'dev' into feature/jury-panel
AnnPoshtak May 13, 2026
c9b114a
feat: full frontend redesign, i18n setup and theme togle
izachoc May 13, 2026
2ddcd3e
Merge branch 'dev' into feature/jury-panel
AnnPoshtak May 13, 2026
afabd1b
fix(docker): backend container will no longer crash because some tabl…
Fundi1330 May 13, 2026
4b5c9e5
docs: make the docs clearer
Fundi1330 May 13, 2026
b5908ea
Merge branch 'dev' of https://github.com/ugalaxy-team/Project into dev
Fundi1330 May 13, 2026
eca6cd4
feat: add is_organizer field and return True when calling is_jury if …
Fundi1330 May 13, 2026
902c41f
feat: install pytest-coverage plugin
Fundi1330 May 13, 2026
302d56d
feat: integrate real api for slider and tournaments page and redesign…
izachoc May 14, 2026
0959fc7
Merge branch 'feature/frontend-redesign' into dev
izachoc May 14, 2026
32c96e3
fix: resolve all merge issues
Fundi1330 May 14, 2026
105df41
fix: make is_jury a hybrid property & update task and team schemas
Fundi1330 May 14, 2026
49526c9
Merge branch 'dev' into feature/jury-panel
AnnPoshtak May 14, 2026
fb3070f
Merge branch 'feature/jury-panel' of https://github.com/ugalaxy-team/…
Fundi1330 May 14, 2026
dbb8b7d
refactor: add trailing slashes to all api calls to avoid 307 status code
Fundi1330 May 14, 2026
c7cb383
feat: add OwnershipChecker dependency
Yar00myr May 14, 2026
e66a7fc
fix: change to naive utc
Yar00myr May 14, 2026
6c812cc
feat: add stars and rewrite task creating/editio
AnnPoshtak May 14, 2026
c08d7f5
Merge branch 'dev' into feature/jury-panel
AnnPoshtak May 14, 2026
7fb08c1
fix: session circular import error & models were passed as fastapi ro…
Fundi1330 May 14, 2026
a2984c7
Merge branch 'feature/jury-panel' of https://github.com/ugalaxy-team/…
Fundi1330 May 14, 2026
bad19d5
Merge branch dev into feature/jury-panel
Fundi1330 May 14, 2026
383b2ea
Merge branch 'dev' into feature/jury-panel
AnnPoshtak May 14, 2026
4e0884b
fix: add missing jury dependency imports
Fundi1330 May 14, 2026
a93b9b4
fix: move session dependency on top of dependency imports
Fundi1330 May 14, 2026
9e4d186
Merge branch dev into feature/jury-panel
Fundi1330 May 14, 2026
6e77db2
refactor: turn is_admin and is_organizer into hybrid_properties to av…
Fundi1330 May 14, 2026
841fcdd
fix: force naive datetimes
Yar00myr May 14, 2026
d513090
feat(Jury: rewrite styles
AnnPoshtak May 14, 2026
4418916
feat: update news page
izachoc May 14, 2026
1099a79
Merge branch 'dev' into feature/jury-panel
AnnPoshtak May 15, 2026
3f7c52f
fix: fixed tournament card
izachoc May 15, 2026
3fcbed1
Merge remote-tracking branch 'origin/dev' into feature/jury-panel
AnnPoshtak May 15, 2026
2d93660
feat(panels): rewrite hero selection
AnnPoshtak May 15, 2026
69ebd04
fix(teams): fix IO error and date error
AnnPoshtak May 15, 2026
ba87ba7
refactor(routes): add task status checks for jury routes & fix update…
Fundi1330 May 15, 2026
5480be6
tests: write tests for jury routes
Fundi1330 May 15, 2026
e3b24d0
Merge branch 'feature/jury-panel' of https://github.com/ugalaxy-team/…
Fundi1330 May 15, 2026
e81345f
fix: fix schema
AnnPoshtak May 15, 2026
c33771f
fix: fix -3 in hours in CreateTournament and edit
AnnPoshtak May 15, 2026
291d1be
Merge branch 'feature/jury-panel' of https://github.com/ugalaxy-team/…
AnnPoshtak May 15, 2026
a3be585
this is the end...
izachoc May 15, 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
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.git
.gitignore
.env
.venv
.vscode
__pycache__/
*.pyc
*.pyo
*.pyd
.pytest_cache/
backend/.pytest_cache/
backend/**/__pycache__/
backend/.mypy_cache/
frontend/node_modules/
frontend/dist/
frontend/.vite/
24 changes: 24 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copy this file to `.env` in the repository root (same directory as `docker-compose.yml`).
# Docker Compose reads these values for `${VAR:-default}` substitution.
# The backend loads `Settings` from this path; the frontend reads Vite variables from the parent folder (`frontend/vite.config.ts` sets `envDir` to `..`).

# --- Backend ---
SECRET_KEY=change-me-in-production
# Local Postgres (matches docker-compose `db` service when using host port 5432):
SQLALCHEMY_DATABASE_URI=postgresql+asyncpg://tournament:tournament@localhost:5432/tournament
# Used by CORS, email-style links, and the SQLAdmin "Back to frontend" menu:
FRONTEND_URL=http://localhost:5173

# --- Frontend (Vite) ---
VITE_BACKEND_URL=http://localhost:8000
VITE_SOCKETIO_SERVER_URL=http://localhost:8000

# --- Firebase (same keys are read by backend `Settings` for admin / token flows) ---
# For interactive review you need a real Firebase project. For automated tests, CI uses placeholder strings.
VITE_FIREBASE_API_KEY=
VITE_FIREBASE_AUTH_DOMAIN=
VITE_FIREBASE_PROJECT_ID=
VITE_FIREBASE_STORAGE_BUCKET=
VITE_FIREBASE_MESSAGING_SENDER_ID=
VITE_FIREBASE_APP_ID=
VITE_FIREBASE_MEASUREMENT_ID=
74 changes: 74 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Running tests

on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]

jobs:
test-frontend:
runs-on: ubuntu-latest
container:
image: node:20
strategy:
matrix:
node-version: [20.x]
defaults:
run:
working-directory: ./frontend
env:
VITE_FIREBASE_API_KEY: "test-api-key"
VITE_FIREBASE_AUTH_DOMAIN: "test.firebaseapp.com"
VITE_FIREBASE_PROJECT_ID: "test-project"
VITE_FIREBASE_STORAGE_BUCKET: "test-project.appspot.com"
VITE_FIREBASE_MESSAGING_SENDER_ID: "123456789"
VITE_FIREBASE_APP_ID: "1:123456789:web:abcdef123456"
VITE_FIREBASE_MEASUREMENT_ID: "G-TEST123456"
VITE_BACKEND_URL: "http://localhost:8000"
VITE_SOCKETIO_SERVER_URL: "http://localhost:8000"
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache-dependency-path: ./frontend/package-lock.json
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run vitest
run: npm run test

test-backend:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
defaults:
run:
working-directory: ./backend
env:
SQLALCHEMY_DATABASE_URI: "sqlite+aiosqlite:///./test.db"
SECRET_KEY: "test-secret-key-for-ci"
FRONTEND_URL: "http://localhost:5173"
VITE_FIREBASE_API_KEY: "test-api-key"
VITE_FIREBASE_AUTH_DOMAIN: "test.firebaseapp.com"
VITE_FIREBASE_PROJECT_ID: "test-project"
VITE_FIREBASE_STORAGE_BUCKET: "test-project.appspot.com"
VITE_FIREBASE_MESSAGING_SENDER_ID: "123456789"
VITE_FIREBASE_APP_ID: "1:123456789:web:abcdef123456"
VITE_FIREBASE_MEASUREMENT_ID: "G-TEST123456"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ../requirements.txt
- name: Run pytest
run: |
pytest
Loading
Loading