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

Feat: global stats page season stats #32

Merged
merged 6 commits into from
Apr 28, 2023

Conversation

lamorak13
Copy link
Contributor

Introduces the season stats page based on the Design.

@lamorak13 lamorak13 linked an issue Apr 16, 2023 that may be closed by this pull request
56 tasks
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 16, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 728c263
Status: ✅  Deploy successful!
Preview URL: https://9ad78df0.speedclimbing.pages.dev
Branch Preview URL: https://feat-global-stats-page-seaso.speedclimbing.pages.dev

View logs

@codeclimate
Copy link

codeclimate bot commented Apr 16, 2023

Code Climate has analyzed commit 728c263 and detected 0 issues on this pull request.

View more on Code Climate.

@lamorak13 lamorak13 requested a review from dorianim April 19, 2023 09:50
Copy link
Member

@dorianim dorianim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

src/compnonents/stats/NationMedalsTable.svelte Outdated Show resolved Hide resolved
@dorianim dorianim marked this pull request as ready for review April 28, 2023 09:37
@lamorak13 lamorak13 merged commit 8d580e4 into dev Apr 28, 2023
@lamorak13 lamorak13 deleted the Feat-global-stats-page-season-stats branch April 28, 2023 09:50
@dorianim dorianim added this to the Initial release milestone May 19, 2023
dorianim added a commit that referenced this pull request May 19, 2023
* Feat: Implement HomePage-ui (#10)

* Feat: Implement HomePage-ui

* Feat: automatic dark mode based on system (#11)

* Feat/adaptive header (#13)

* Feat: automatic dark mode based on system

* Feat: make navbar transparent when not scrolled

* Feat: add animation

* Chore: remove leftover double code from merge

* Chore: unify record cards (#14)

* Chore/equalize padding (#12)

* Chore: equalize padding

* Chore: remove padding

* Fix: equalize padding on all sections

Co-authored-by: lamorak13 <[email protected]>

* Chore: cleanup global styles

Co-authored-by: Dorian Zedler <[email protected]>

* Feat: favicon (#16)

* Feat: better error page (#18)

* Fix/header multi page (#17)

* Fix: header transparency on pages other than home

* Fix: body padding

* Fix: set correct padding

* Fix: non-relative size of dark mode toggle

* Fix: header full width

* feat: integrate api to homepage (#15)

* feat: integrate api to homepage

* fix: add new files

* Chore: remove duplicated code

Co-authored-by: Dorian Zedler <[email protected]>

* Feat: show a spinner while navigation (#22)

* Chore: update readme (#25)

* Chore: add proper header

* Fix: logo height

* Fix: logo align and size

* Fix: github doesn't allow style lol

* Fix: height

* Doc: add some description

* Feat: add codeclimate badge

* Feat/athlete search page (#24)

* Feat: first draft of athlte page

* Feat: athlete search

* Feat: filter my gender and pb

* Feat: Athlete search from homepage

* Feat: ssr for athlete search

* Fix: make code cleaner

* Fix: some minor problems

* trigger ci

* Chore(deps): bump undici and @sveltejs/kit (#26)

Bumps [undici](https://github.com/nodejs/undici) to 5.19.1 and updates ancestor dependency [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit). These dependencies need to be updated together.


Updates `undici` from 5.14.0 to 5.19.1
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v5.14.0...v5.19.1)

Updates `@sveltejs/kit` from 1.0.0 to 1.7.1
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/[email protected]/packages/kit)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix: Navbar in light mode on not home, navbar delay (#23)

* Fix: Navbar in light mode on not home, navbar delay

* Fix: toggle on click on link

* Chore: update flowbite-svelte

* Fix: use media instead of class for dark mode

* Chore(deps-dev): bump @sveltejs/kit from 1.7.1 to 1.15.1 (#29)

Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.7.1 to 1.15.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/[email protected]/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore: athlete searchpage dept (#28)

* Fix: handle debounce before replacing promise; prevent dangling debounce promises

* Fix: use svelte-kits fetch

* Chore: make code climate happy

* Fix: default option in gender dropdown

* Chore: cleanup debounce

* Chore: rename fetch.ts -> Fetch.ts

* Feat: competititon overview page (#20)

* Feat: add competition page and fetch data

* Feat: integrate nation select

* Feat: add linkage to competition page

* Feat: add filters and implement them according to the endpoint

* Chore: Refactoring code

* Feat: implement FullCalendar functionality

* Chore: Refactor and SwitchButton

* Chore: Refactoring

* Fix: import error

* Feat: introduce busy indication when loading comps

* Feat: seasons as year & different colors for comps

* Feat: implement query parameter logic

* Feat: comp color based on league_id

* Fix: calendar jumps when changing months

* Feat: styling

* Chore: refactoring

* Fix: codeclimate

* Feat: add calendar subscription button

* Chore: refactoring

* Chore: refactor & add calendar modal

* Remove: EventCalendar

* Feat: finish modal

* Chore: refactor CompetitionCalendar

* Chore: fix minor details

* Fix: responsive modal

* Fix: calendar problems when switching year

* Chore: fix breaking change in debounce function

---------

Co-authored-by: Dorian Zedler <[email protected]>

* Fix: competitions missing in calendar (#30)

* Fix: competitions missing in calendar

* Fix: remove usage of isPromise

* Chore(deps-dev): bump @sveltejs/kit from 1.15.1 to 1.15.2 (#31)

Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 1.15.1 to 1.15.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/[email protected]/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Chore(deps): bump yaml from 2.1.3 to 2.2.2 (#34)

Bumps [yaml](https://github.com/eemeli/yaml) from 2.1.3 to 2.2.2.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](eemeli/yaml@v2.1.3...v2.2.2)

---
updated-dependencies:
- dependency-name: yaml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: add error page animation (#33)

* feat: add error page animation

* feat: adjust size of number

---------

Co-authored-by: Dorian Zedler <[email protected]>

* Feat: do all API requests server-side (#35)

* Feat: do all API requests server-side

* Fix: make codeclimate happy

* Fix: wrong API_URL

* Test: remove hook

* Fix: date conversion

* Fix: remove hooks
Hooks seem to break cloudflare pages

* Chore: unify handling of debounce

* Feat: use headers

* Test: remove headers

* Test: remove env

* Fix: use platform for env

* Fix: use platform

* Feat: show skeletons instead of full screen loader

* Fix: add missing file

* Feat: show spinner on competition and athlete page

* Chore: remove log

* Feat: global stats page season stats (#32)

* Feat: first draft of the season overview page

* Feat: add styling for light mode

* Chore: add responsivity

* Chore: move function to utils

* Fix: update import

* Feat: about-us page (#37)

* Feat: about-us page

* Chore: some more text

* Fix: alert color

* Feat: add email dispatching

* Feat: use formrecevr for form submissions

* Fix: remove nodemailer dependency

* Chore: cleanup

* Feat: Imprint and privacy policy

* Chore: cleanup anchor points

* Chore: some polishing

* Feat: update texts

* Chore: use tailwind

* Chore: align left

* Feat: new and improoved layout for cards

* Fix: re-add href

* Fea: add max width to p

* Feat: about page (#19)

* Feat: About page draft

* Fix: Header transparency on pages other than index

* Chore: remove wrong stuff

* Feat: initial draft of the about page

* Feat: some content

* Fix: ending

* Fix: typos

* Feat: some more content

* Feat: more content on the homepage

* Feat: content in footer

* Feat: more links in footer

* Chore: cleanup and disable unfinished components

* Feat: add content to stats

* Chore: remove Keyword Component

* Chore: wrap links with li

* Chore: add mt-auto

* Chore: remove P

* Chore: typo

* Chore: use AnchorPoint

* Hotix: menu burger position on mobile

* Feat: new images (#38)

* Feat: load image from s3 bucket

* Feat: first draft of carousel

* Feat: add second hero image

* Fix: merge

* Chore: cleanup css

* Chore

* Feat: custom carousel

* Chore: make carousel css global

* Chore: remore postcss-for

* Fix: remove postcss-for

* Fix: remove locally-unique-id

* Feat: add autoscroll

* Feat: load pictures dynamically

* Fix: safelist dynamic classes

* Fix: remove bottom nav

* Fix: image alignment

* Chore: join statements

* Chore: use bg-black instead of manual class

* Hotfix: fix dependabot alert 6
https://github.com/speedclimbing/website/security/dependabot/6

* Fix: some competition calendar things (#40)

* Fix: use league_group for calendar and other calendar problems

* Feat: disable year select when in calendar

* Chore: remove unrelated code

* Feat: enable year select when calendar is active

* Feat: global stats page all time (#39)

* Feat: first mockup

* Feat: implementation without refactoring

* Chore: refactor table, linechart, container, etc.

* reset api_url

* Chore: refactor chartConfig

* Chore shorten setTooltipBody

* Chore shorten chartConfig

* Chore: implement pr feedback

* Feat: add male/female switch and season select

* Chore: update chart.js types

* Fix: problems after merge

---------

Co-authored-by: Dorian Zedler <[email protected]>

* Feat: intregrate api on stats (#49)

* Feat: integrate api on season stats

* Chore: cleanup seasons and medal table

* Chore: remove unused code

* Feat: implement api on all time stats

* Fix: protect classes

* Chore: some cleanup

* Fix: calendar toggle

* Fix: outdated types

* Fix: chart not reloading

* Fix: overview table scaling

* Feat: add filters for all time stats

* Chore: cleanup

* Fix: update total pages on changed data

* Fix: set correct default value

* Feat: add Jakob description

---------

Co-authored-by: lamorak13 <[email protected]>

* Fix: rename compnonent to components (#51)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: lamorak13 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 16flotho <[email protected]>
Co-authored-by: lamorak13 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global stats page (/stats)
2 participants