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/zbornica #546

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
3c5cf85
feat(analytics): 🚧 adds analytics page and update links
jalezi Oct 4, 2024
350dfea
feat(analytics): 🚧 prepare layout for analytics page
jalezi Oct 7, 2024
dc9fa50
test: ✅ add simple routing test for FAQ, About, and Analytics pages
jalezi Oct 7, 2024
f03d04d
feat(analytics): 🚧 add Highcharts with simple example chart
jalezi Oct 8, 2024
38fa701
feat(analytics): 🚧 Add reset.css for consistent styling across pages
jalezi Oct 8, 2024
ff7a462
feat(analytics): 🚧 add ChartCard, SeriesButton
jalezi Oct 9, 2024
8a66c70
feat(analytics): 🚧 Add RenderOnViewportEntry component
jalezi Oct 9, 2024
a1e112e
fix: 🚚 change file extension from js to jsx
jalezi Oct 10, 2024
6580bd7
refactor: ♻️ Refactor ChartCard component and extract CustomSeriesBut…
jalezi Oct 10, 2024
22084b4
feat(analytics): 🚧 add abiltiy to print chart
jalezi Oct 10, 2024
78ba3a6
refactor(analytics): 🚧 use lodash.merge to remove duplicate options
jalezi Oct 10, 2024
dd8b7b9
fix(analytics): 🚧 no legend on open chart in fullscreen
jalezi Oct 11, 2024
a1d1662
feat(analytics): 🚧 add Custom accessible Popover component
jalezi Oct 12, 2024
2ed7551
feat(analytics): 🚧 add drilldown example chart
jalezi Oct 13, 2024
4283ce0
fix(analytics): 🚧 custom popover error on mobile
jalezi Oct 13, 2024
f498af2
refactor(assets): remove id from svg icons.
jalezi Oct 13, 2024
5baae01
feat(analytics): 🚧 working on links and graph sidebar
jalezi Oct 13, 2024
0f73c8d
feat(analytics): 🚧 add dialog with links to charts
jalezi Oct 13, 2024
96cf948
fix(analytics): 🚧 rename file with Modal component
jalezi Oct 13, 2024
753330b
refactor(analytics): 🚚 Move chart examples to separate directory
jalezi Oct 13, 2024
8ce877c
fix(analytics): 🚧 dialog on mobile has weird height
jalezi Oct 14, 2024
086cb83
refactor(analytics): 🚚 organize Analytics page folder
jalezi Oct 14, 2024
5a161c6
refactor(analytics): ♻️ optimize analytics.css
jalezi Oct 14, 2024
4a1548b
refactor(analytics): ✨ extract aside to Sidebar component
jalezi Oct 14, 2024
0ee46bf
refactor(analytics): ♻️ rename AnalyticsFooter to Footer and
jalezi Oct 14, 2024
9430b3e
refactor(analytics): ♻️ done with style optimization
jalezi Oct 14, 2024
14f44c5
refactor(analytics): ⚡️ change import of lodash merge func
jalezi Oct 15, 2024
f5283c4
feat(analytics): 🚧 add Highmaps example
jalezi Oct 15, 2024
4d05037
fix(analytics): 🐛 indivdual chart options are interfering with other …
jalezi Oct 15, 2024
cc16a84
fix(analytics): 🐛 indivdual chart options are interfering with other …
jalezi Oct 15, 2024
e82d794
feat(analytics): ✨ add types for chart and map data
jalezi Oct 17, 2024
543b742
refactor(analytics): ⚡️ update chart data structure and organization
jalezi Oct 17, 2024
a124c88
refactor(analytics): Remove console.log statements and update chart c…
jalezi Oct 17, 2024
a7c23f8
refactor(eslint): Update eslint rules to ignore unused variables pref…
jalezi Oct 17, 2024
b928100
fix(analytics): 💄 layout shift
jalezi Oct 19, 2024
a9ccdc6
fix(analytics): hover state is not applied on serie's button
jalezi Oct 20, 2024
6e0fbe7
feat(analytics): ✨ Add dynamic variant to SeriesButton component
jalezi Oct 21, 2024
bc4880e
fix(analytics): ⚡️ Analytics page is not lazy loaded
jalezi Oct 21, 2024
a409880
feat(analytics): ✨ enable highcharts accessibility
jalezi Oct 21, 2024
8dcdc2c
refactor(analytics): 🧑‍💻 custom-popover.css to use CSS modules
jalezi Oct 21, 2024
ec73564
docs(analytics): 🧑‍💻 add jsdoc for Popover component
jalezi Oct 22, 2024
04e6e67
refactor(analytics): Remove unused chart examples
jalezi Oct 22, 2024
9e97973
docs(utils): 🧑‍💻 add getIsRequestFullscreenSupported function documen…
jalezi Oct 22, 2024
9f007fa
docs(utils): 🧑‍💻 add chart type in ChartCard and MapCard component
jalezi Oct 22, 2024
962e861
refactor(analytics): move Icon styles from style attr to css module
jalezi Oct 22, 2024
5cd4b2e
docs(analytics): 🧑‍💻 add types for common and base options
jalezi Oct 22, 2024
4d3da8c
refactor(analytics): Update Modal component to use modalOpen prop
jalezi Oct 22, 2024
28bd6c9
feat(analytics): 🚧 add slo municipalities map
jalezi Oct 22, 2024
767021e
refactor(analytics): 🚚 ChartCard and MapCard to Card folder
jalezi Oct 22, 2024
c4ad866
refactor(analytics): Move ChartCard and MapCard to Card folder
jalezi Oct 22, 2024
b605389
feat(analytics): 🚧 Add RichInfoClick component
jalezi Oct 25, 2024
658747c
refactor(analytics): Update Sidebar heading styles
jalezi Oct 25, 2024
f10f80b
refactor(analytics): 🚚 Move createChartDataProxy to separate file
jalezi Oct 25, 2024
f91d870
fix(analytics): 🧑‍💻 fix import types path
jalezi Oct 25, 2024
e53bec6
refactor(analytics): ♻️ remove section & h2 html elements from RichIn…
jalezi Oct 25, 2024
44a4c58
refactor(analytics): 💄 move some styles from CustomDIalog to Sidebar …
jalezi Oct 25, 2024
6f8d771
fix(analytics): 🐛 button show/hide all not showing correct label
jalezi Oct 26, 2024
da65d7c
refactor(analytics): ♻️ Remove PropTypes from CustomSeriesButtons com…
jalezi Oct 26, 2024
19bddc1
fix(analytics): 🐛 visibilty state of the buttons should remain unchanged
jalezi Oct 31, 2024
31bdfbe
feat(analytics): 🗃️ generate fake data for all slovenian municipalities
jalezi Nov 3, 2024
e90c570
feat(analytics): 🐛 conditionally render visibility toggle button base…
jalezi Nov 3, 2024
e6f9fe4
refactor(analytics): 🐛 rename variable for clarity in second chart se…
jalezi Nov 3, 2024
b213309
style(analytics): 🐛 update CSS units from rem to em for consistency
jalezi Nov 4, 2024
831c30c
feat(analytics): 🐛 refactor fake data generation and implement year s…
jalezi Nov 4, 2024
ec3d677
refactor(analytics): 🐛 rename state variable for clarity and update k…
jalezi Nov 4, 2024
712cd72
feat(analytics): 🐛 enhance map chart options and refactor year select…
jalezi Nov 4, 2024
dc70de1
feat(analytics): 🐛 enable map navigation and adjust button positioning
jalezi Nov 4, 2024
1535c51
feat(analytics): 🐛 enable data labels for map options in RichInfoClic…
jalezi Nov 4, 2024
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
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
'import/prefer-default-export': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],

'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
// @TODO: These should be turned "ON" one by one
'react/jsx-props-no-spreading': 'warn',
},
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^15.0.5",
"@testing-library/user-event": "^14.5.2",
"highcharts": "^11.4.8",
"highcharts-react-official": "^3.2.1",
"i18next": "^23.14.0",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-http-backend": "^2.6.1",
"json2mq": "^0.2.0",
"leaflet": "^1.8.0",
"leaflet.markercluster": "^1.5.3",
"lodash": "^4.17.21",
"markdown-to-jsx": "^7.5.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
Expand Down Expand Up @@ -53,6 +56,7 @@
],
"devDependencies": {
"@playwright/test": "^1.46.1",
"@types/highcharts": "^7.0.0",
"@types/node": "^22.5.0",
"env-cmd": "^10.1.0",
"eslint": "^8.57.0",
Expand Down
214 changes: 214 additions & 0 deletions src/assets/data/slovenia_municipalities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
[
"Ajdovščina",
"Ankaran",
"Apače",
"Beltinci",
"Benedikt",
"Bistrica ob Sotli",
"Bled",
"Bloke",
"Bohinj",
"Borovnica",
"Bovec",
"Braslovče",
"Brda",
"Brežice",
"Brezovica",
"Cankova",
"Celje",
"Cerklje na Gorenjskem",
"Cerknica",
"Cerkno",
"Cerkvenjak",
"Cirkulane",
"Črenšovci",
"Črna na Koroškem",
"Črnomelj",
"Destrnik",
"Divača",
"Dobje",
"Dobrepolje",
"Dobrna",
"Dobrova-Polhov Gradec",
"Dobrovnik",
"Dol pri Ljubljani",
"Dolenjske Toplice",
"Domžale",
"Dornava",
"Dravograd",
"Duplek",
"Gorenja vas-Poljane",
"Gorišnica",
"Gorje",
"Gornja Radgona",
"Gornji Grad",
"Gornji Petrovci",
"Grad",
"Grosuplje",
"Hajdina",
"Hoče-Slivnica",
"Hodoš",
"Horjul",
"Hrastnik",
"Hrpelje-Kozina",
"Idrija",
"Ig",
"Ilirska Bistrica",
"Ivančna Gorica",
"Izola",
"Jesenice",
"Jezersko",
"Juršinci",
"Kamnik",
"Kanal",
"Kidričevo",
"Kobarid",
"Kobilje",
"Kočevje",
"Komen",
"Komenda",
"Koper",
"Kostanjevica na Krki",
"Kostel",
"Kozje",
"Kranj",
"Kranjska Gora",
"Križevci",
"Krško",
"Kungota",
"Kuzma",
"Laško",
"Lenart",
"Lendava",
"Litija",
"Ljubljana",
"Ljubno",
"Ljutomer",
"Log-Dragomer",
"Logatec",
"Loška dolina",
"Loški Potok",
"Lovrenc na Pohorju",
"Luče",
"Lukovica",
"Majšperk",
"Makole",
"Maribor",
"Markovci",
"Medvode",
"Mengeš",
"Metlika",
"Mežica",
"Miklavž na Dravskem polju",
"Miren-Kostanjevica",
"Mirna",
"Mirna Peč",
"Mislinja",
"Mokronog-Trebelno",
"Moravče",
"Moravske Toplice",
"Mozirje",
"Murska Sobota",
"Muta",
"Naklo",
"Nazarje",
"Nova Gorica",
"Novo mesto",
"Odranci",
"Oplotnica",
"Ormož",
"Osilnica",
"Pesnica",
"Piran",
"Pivka",
"Podčetrtek",
"Podlehnik",
"Podvelka",
"Poljčane",
"Polzela",
"Postojna",
"Prebold",
"Preddvor",
"Prevalje",
"Ptuj",
"Puconci",
"Rače-Fram",
"Radeče",
"Radenci",
"Radlje ob Dravi",
"Radovljica",
"Ravne na Koroškem",
"Razkrižje",
"Rečica ob Savinji",
"Renče-Vogrsko",
"Ribnica",
"Ribnica na Pohorju",
"Rogaška Slatina",
"Rogašovci",
"Rogatec",
"Ruše",
"Šalovci",
"Selnica ob Dravi",
"Semič",
"Šempeter-Vrtojba",
"Šenčur",
"Šentilj",
"Šentjernej",
"Šentjur",
"Šentrupert",
"Sevnica",
"Sežana",
"Škocjan",
"Škofja Loka",
"Škofljica",
"Slovenj Gradec",
"Slovenska Bistrica",
"Slovenske Konjice",
"Šmarje pri Jelšah",
"Šmarješke Toplice",
"Šmartno ob Paki",
"Šmartno pri Litiji",
"Sodražica",
"Solčava",
"Šoštanj",
"Središče ob Dravi",
"Starše",
"Štore",
"Straža",
"Sveta Ana",
"Sveta Trojica v Slovenskih goricah",
"Sveti Andraž v Slov. goricah",
"Sveti Jurij ob Ščavnici",
"Sveti Jurij v Slovenskih goricah",
"Sveti Tomaž",
"Tabor",
"Tišina",
"Tolmin",
"Trbovlje",
"Trebnje",
"Trnovska vas",
"Tržič",
"Trzin",
"Turnišče",
"Velenje",
"Velika Polana",
"Velike Lašče",
"Veržej",
"Videm",
"Vipava",
"Vitanje",
"Vodice",
"Vojnik",
"Vransko",
"Vrhnika",
"Vuzenica",
"Zagorje ob Savi",
"Žalec",
"Zavrč",
"Železniki",
"Žetale",
"Žiri",
"Žirovnica",
"Zreče",
"Žužemberk"
]
28 changes: 28 additions & 0 deletions src/assets/icon-chart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/assets/icon-euro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 9 additions & 6 deletions src/assets/icon-fb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/assets/icon-full-screen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/icon-github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions src/assets/icon-more.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions src/assets/icon-print.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading