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

Chore/import democracy desktop #560

Merged
merged 137 commits into from
May 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
c97cece
initial
appinteractive Apr 11, 2022
1202b67
tighter title
appinteractive Apr 11, 2022
de50f39
improved navigation bar
appinteractive Apr 11, 2022
70f3f2d
client side loading
appinteractive Apr 11, 2022
dc2aba6
fixed some issues and started on filters
appinteractive Apr 12, 2022
dd8cd38
fixed loading styling
appinteractive Apr 12, 2022
ff5097c
first search approach started
appinteractive Apr 12, 2022
b1bb19d
fixed navigation and added new filter
appinteractive Apr 12, 2022
8261d6c
working top-100 filter
appinteractive Apr 12, 2022
ae78c36
improved ux
appinteractive Apr 12, 2022
1aa1e2a
removed default filters
appinteractive Apr 12, 2022
47353f4
revamped all three pages with state management
appinteractive Apr 12, 2022
e119742
fixed minor bug
appinteractive Apr 12, 2022
9280e1e
fixed another small issue
appinteractive Apr 12, 2022
dea7ee2
Text Changes
appinteractive Apr 12, 2022
a335d4a
added first details iteration
appinteractive Apr 13, 2022
805fcf5
added empty state
appinteractive Apr 13, 2022
735bcf5
added error state
appinteractive Apr 13, 2022
419bc54
remove package-lock.json
appinteractive Apr 13, 2022
be868b6
removed democracy-ui for now as the build failes
appinteractive Apr 13, 2022
368c721
added open graph
appinteractive Apr 13, 2022
e315450
caching and image handling
appinteractive Apr 13, 2022
1cd6f05
fixed several open graph issues
appinteractive Apr 13, 2022
a52e883
increase caching
appinteractive Apr 13, 2022
5a9672d
SEO improvements
appinteractive Apr 13, 2022
6a84d66
working search
appinteractive Apr 13, 2022
5711dac
bugfixes
appinteractive Apr 13, 2022
3ca4ab8
optimize images
appinteractive Apr 13, 2022
cb9bde5
correct navigation
appinteractive Apr 13, 2022
ef1fca8
fixed image sizing
appinteractive Apr 14, 2022
617e76a
do not use a tags for internal links
appinteractive Apr 14, 2022
3ab5fb8
cleanup a bit
appinteractive Apr 14, 2022
adcb02b
fixed semantics
appinteractive Apr 14, 2022
301db46
remove unused page
appinteractive Apr 14, 2022
e3498d0
added infinite scroll
appinteractive Apr 14, 2022
de33030
fixed search navigation
appinteractive Apr 14, 2022
028b83f
fixed loading issues
appinteractive Apr 14, 2022
ce42b2d
fixed lots of layout issues
appinteractive Apr 14, 2022
a6c051e
refetch fix
appinteractive Apr 14, 2022
ca5923b
give me a bit of space
appinteractive Apr 14, 2022
1612ef5
seo and context
appinteractive Apr 14, 2022
134dc46
mobile enhancement
appinteractive Apr 14, 2022
5af67e5
added progress bar
appinteractive Apr 15, 2022
4ddb990
removed puncation
appinteractive Apr 19, 2022
516dcfb
added some charts
appinteractive Apr 20, 2022
026b2c2
add page title for seo
appinteractive May 6, 2022
0bc673e
fixed some layout and charts
appinteractive May 6, 2022
4f4705a
chart performance improvements
appinteractive May 6, 2022
524cc49
added donation button
appinteractive May 6, 2022
cc23c56
improved details
appinteractive May 6, 2022
10a6173
added hover states to charts
appinteractive May 6, 2022
6a0c960
styling and footer
appinteractive May 6, 2022
2a1c0f8
minor details headline change
appinteractive May 6, 2022
ab2059c
fixed donation button
appinteractive May 6, 2022
0cbd09c
fixed hover issues
appinteractive May 6, 2022
a85408d
fixed download links
appinteractive May 6, 2022
5024624
fixed percentages
appinteractive May 6, 2022
35bc131
Merge pull request #1 from demokratie-live/feature/chartjs
appinteractive May 14, 2022
c6b8d38
Update README.md
appinteractive May 14, 2022
0dc83e0
updated readme
appinteractive May 14, 2022
95bad50
Update LICENSE
appinteractive May 14, 2022
e75175e
Update README.md
appinteractive May 14, 2022
21baf91
Change GitHub Funding Buttons
May 19, 2022
751d053
Dockerize production build
May 19, 2022
276e148
Upgrade packages
May 19, 2022
1edd51a
Use Apache 2 license
May 19, 2022
94ebcc0
Rename package
May 19, 2022
385c432
Add build docker image github action
May 19, 2022
4769449
fixed typo
appinteractive Jul 6, 2022
22e2722
Added Fallback Pages
appinteractive Jul 6, 2022
7fb3c73
redirect to home page on error
appinteractive Jul 6, 2022
d4d60ef
#11 – fix crash on top 100
appinteractive Jun 1, 2022
858a8b2
fix gql file naming
appinteractive Jun 1, 2022
c449e15
#3 – Fixed Title and Description
appinteractive May 31, 2022
6d8aca5
#6 – Fixed site name
Jul 10, 2022
6395bac
added donation dialog
appinteractive Jan 5, 2023
ed5ded7
minor refactoring and ux improvements
appinteractive Jan 5, 2023
13ff81b
fixed search by providing period
appinteractive Jan 5, 2023
da236f1
extract period to config constants
appinteractive Jan 5, 2023
ec7dd52
ci: :construction_worker: replace action with a few improvements
Jan 10, 2023
356d494
added grouping by calendar week
appinteractive Jan 8, 2023
97d2b13
ci: :green_heart: use admin user to commit to protected branch
Jan 11, 2023
4afd6fd
chore(release): 1.0.5
actions-user Jan 11, 2023
1c7343c
added party icons
appinteractive Jan 6, 2023
7765162
added d3 and types
appinteractive Jan 6, 2023
d6f1060
chart now shows party votes on hover
appinteractive Jan 6, 2023
00dc24d
removed animations
appinteractive Jan 6, 2023
66d2574
fixing issue with mouse leave when scrolling
appinteractive Jan 6, 2023
fdb11ab
fixed logo name
appinteractive Jan 6, 2023
347d2d7
minor improvements
appinteractive Jan 6, 2023
8c51810
default text style for vote counts
appinteractive Jan 8, 2023
1d2c758
chore(release): 1.0.6
actions-user Jan 11, 2023
6ec79c8
add prerelease input to Realease github action
Aug 19, 2023
af5f48f
don’t push docker tag :latest on prereleases
Aug 19, 2023
c7702a3
add apple-app-site-association for deeplinking
Aug 19, 2023
1ab0573
chore(release): 1.0.7-0
actions-user Aug 19, 2023
432caea
chore(release): 1.0.7-1
actions-user Aug 19, 2023
d576662
fix production check for appleAppSiteAssociation
Aug 19, 2023
f9dc424
chore(release): 1.0.7-2
actions-user Aug 19, 2023
d5235f6
chore(release): 1.0.7
actions-user Aug 19, 2023
577264e
add android app links assetlinks
Aug 19, 2023
3f59328
add prerelese verstion tag
Aug 19, 2023
c1f4b74
chore(release): 1.0.8-feature-deeplingking.0
actions-user Aug 19, 2023
a62b4cb
chore(release): 1.0.8
actions-user Aug 24, 2023
768ee19
fix android assetlinks fingerprint
Aug 26, 2023
e173080
chore(release): 1.0.9-feature-deeplingking.0
actions-user Aug 26, 2023
e073331
add assetlinks fingerprint
Aug 26, 2023
b66ff51
chore(release): 1.0.9
actions-user Aug 26, 2023
7cb7df3
add ios merchant file
Aug 26, 2023
8699c2d
chore(release): 1.0.10-feature-native-donation.0
actions-user Aug 26, 2023
833eb81
add ios merchant file
Aug 26, 2023
e32e5a1
chore(release): 1.0.10
actions-user Aug 26, 2023
8a1b2a2
make api endpoint url configurable
Oct 3, 2023
d41398b
chore(release): 1.0.11-feature-api-via-env-var.0
actions-user Oct 3, 2023
2b619c7
make api endpoint url configurable
Oct 3, 2023
68e57d0
chore(release): 1.0.11-feature-api-via-env-var.1
actions-user Oct 3, 2023
b4a84f1
chore(release): 1.0.11-feature-api-via-env-var.2
actions-user Nov 1, 2023
2e3e06a
fix: 🐛 add graphql proxy api endpoint
Nov 1, 2023
4fd590d
chore(release): 1.0.11-feature-api-via-env-var.3
actions-user Nov 1, 2023
d896fec
fix: 🐛 only use NEXT_PUBLIC_APP_URL in development mode
Nov 1, 2023
62d10e5
chore(release): 1.0.11-feature-api-via-env-var.4
actions-user Nov 1, 2023
986dd6b
fix: 🐛 fix ssr for graphql endpoint
Nov 1, 2023
8f4a5d1
chore(release): 1.0.11-feature-api-via-env-var.5
actions-user Nov 1, 2023
a978453
chore(deps): 📦 upgrade packages
Nov 1, 2023
fe8bb27
fix: handle ssr for graphql endpoint
Nov 1, 2023
de0dd57
chore(release): 1.0.11-feature-api-via-env-var.6
actions-user Nov 1, 2023
971a391
chore(release): 1.0.11
actions-user Nov 1, 2023
4492791
chore: remove production env file
Nov 1, 2023
91ba624
chore: 💚 fix url to api for ssr
Nov 1, 2023
834dbb5
update browser lists
appinteractive Jan 5, 2023
77c60c6
Do output next week if possible
appinteractive Jan 5, 2023
e00d2c8
Update src/pages/index.tsx
appinteractive Dec 15, 2023
158c724
chore(release): 1.0.12-4-keine-sitzungswochen-daten.0
actions-user Dec 16, 2023
7c72ae9
chore(release): 1.0.12
actions-user Dec 16, 2023
dbad79c
Add 'democracy/desktop/' from commit '7c72ae94cd4f828f4ab3a75214777fc…
May 25, 2024
617c477
chore: cleanup import
May 25, 2024
78200fa
chore: add garden to democracy-desktop
May 25, 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: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [demokratie-live]
custom: ["https://www.democracy-deutschland.de/#!donate"]
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- 'services/**'
- 'bundestag.io/**'
- 'democracy/**'
branches:
- 'master'

Expand Down
5 changes: 5 additions & 0 deletions democracy/desktop/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.env
node_modules
out
.next
.git
2 changes: 2 additions & 0 deletions democracy/desktop/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
APP_API_URL=https://internal.api.democracy-app.de
APP_HOST=https://internal.api.democracy-app.de
2 changes: 2 additions & 0 deletions democracy/desktop/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
out
80 changes: 80 additions & 0 deletions democracy/desktop/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
// Configuration for JavaScript files
"extends": [
"airbnb-base",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto"
}
]
},
"overrides": [
// Configuration for TypeScript files
{
"files": ["**/*.ts", "**/*.tsx"],
"plugins": ["@typescript-eslint", "unused-imports", "tailwindcss"],
"extends": [
"plugin:tailwindcss/recommended",
"airbnb-typescript",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"endOfLine": "auto"
}
],
"react/destructuring-assignment": "off", // Vscode doesn't support automatically destructuring, it's a pain to add a new variable
"jsx-a11y/anchor-is-valid": "off", // Next.js use his own internal link system
"react/require-default-props": "off", // Allow non-defined react props as undefined
"react/jsx-props-no-spreading": "off", // _app.tsx uses spread operator and also, react-hook-form
"@next/next/no-img-element": "off", // We currently not using next/image because it isn't supported with SSG mode
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal"],
"pathGroups": [
{
"pattern": "react",
"group": "external",
"position": "before"
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/comma-dangle": "off", // Avoid conflict rule between Eslint and Prettier
"import/prefer-default-export": "off", // Named export is easier to refactor automatically
"tailwindcss/classnames-order": [
"warn",
{
"officialSorting": true
}
], // Follow the same ordering as the official plugin `prettier-plugin-tailwindcss`
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
]
}
}
]
}
35 changes: 35 additions & 0 deletions democracy/desktop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next
/out

# production
/build

# misc
.DS_Store
*.pem
Thumbs.db

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# dotenv local files
.env*.local

# local folder
local

# vercel
.vercel
10 changes: 10 additions & 0 deletions democracy/desktop/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"mikestead.dotenv",
"csstools.postcss",
"blanu.vscode-styled-jsx",
"bradlc.vscode-tailwindcss"
]
}
31 changes: 31 additions & 0 deletions democracy/desktop/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Next: Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "Next: Node",
"program": "${workspaceFolder}/node_modules/.bin/next",
"args": ["dev"],
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**"],
"console": "integratedTerminal"
}
],
"compounds": [
{
"name": "Next: Full",
"configurations": ["Next: Node", "Next: Chrome"]
}
]
}
35 changes: 35 additions & 0 deletions democracy/desktop/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"editor.tabSize": 2,
"editor.detectIndentation": false,
"jest.autoRun": {
"watch": false,
"onSave": "test-file"
},
"search.exclude": {
"package-lock.json": true
},
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.formatOnSave": false,
"editor.codeActionsOnSave": [
"source.addMissingImports",
"source.fixAll.eslint"
],
// Multiple language settings for json and jsonc files
"[json][jsonc]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/node_modules": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"cSpell.words": ["abstination"]
}
21 changes: 21 additions & 0 deletions democracy/desktop/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Project wide type checking with TypeScript",
"type": "npm",
"script": "build-types",
"problemMatcher": ["$tsc"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"clear": true,
"reveal": "never"
}
}
]
}
75 changes: 75 additions & 0 deletions democracy/desktop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.0.12](https://github.com/demokratie-live/desktop/compare/v1.0.11...v1.0.12) (2023-12-16)

### [1.0.12-4-keine-sitzungswochen-daten.0](https://github.com/demokratie-live/desktop/compare/v1.0.11...v1.0.12-4-keine-sitzungswochen-daten.0) (2023-12-16)

### [1.0.11](https://github.com/demokratie-live/desktop/compare/v1.0.10...v1.0.11) (2023-11-01)


### Bug Fixes

* 🐛 add graphql proxy api endpoint ([2e3e06a](https://github.com/demokratie-live/desktop/commit/2e3e06a96dabeee4bd47d86f9435eaec8b6d208b))
* 🐛 fix ssr for graphql endpoint ([986dd6b](https://github.com/demokratie-live/desktop/commit/986dd6b773bf08eca1ef9b8805ee8d6d0cd2d7c9))
* 🐛 only use NEXT_PUBLIC_APP_URL in development mode ([d896fec](https://github.com/demokratie-live/desktop/commit/d896feceb1efb91e882f778829760958a951a58b))
* handle ssr for graphql endpoint ([fe8bb27](https://github.com/demokratie-live/desktop/commit/fe8bb27ceff654f2a8eafbad4dd5870faa1e1a43))

### [1.0.11-feature-api-via-env-var.6](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.5...v1.0.11-feature-api-via-env-var.6) (2023-11-01)


### Bug Fixes

* handle ssr for graphql endpoint ([0e6ded2](https://github.com/demokratie-live/desktop/commit/0e6ded2b030abfeb01a2c000805e3cc689de2b30))

### [1.0.11-feature-api-via-env-var.5](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.4...v1.0.11-feature-api-via-env-var.5) (2023-11-01)


### Bug Fixes

* 🐛 fix ssr for graphql endpoint ([c3586fa](https://github.com/demokratie-live/desktop/commit/c3586fae0d40f851d39206cbcc51f13d01be76d4))

### [1.0.11-feature-api-via-env-var.4](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.3...v1.0.11-feature-api-via-env-var.4) (2023-11-01)


### Bug Fixes

* 🐛 only use NEXT_PUBLIC_APP_URL in development mode ([9638f7f](https://github.com/demokratie-live/desktop/commit/9638f7f27ec02354182564647ee60234d04d67bc))

### [1.0.11-feature-api-via-env-var.3](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.2...v1.0.11-feature-api-via-env-var.3) (2023-11-01)


### Bug Fixes

* 🐛 add graphql proxy api endpoint ([2dbbdc1](https://github.com/demokratie-live/desktop/commit/2dbbdc1924c0169055d6fe297420c811b602e24f))

### [1.0.11-feature-api-via-env-var.2](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.1...v1.0.11-feature-api-via-env-var.2) (2023-11-01)

### [1.0.11-feature-api-via-env-var.1](https://github.com/demokratie-live/desktop/compare/v1.0.11-feature-api-via-env-var.0...v1.0.11-feature-api-via-env-var.1) (2023-10-03)

### [1.0.11-feature-api-via-env-var.0](https://github.com/demokratie-live/desktop/compare/v1.0.10...v1.0.11-feature-api-via-env-var.0) (2023-10-03)

### [1.0.10](https://github.com/demokratie-live/desktop/compare/v1.0.9...v1.0.10) (2023-08-26)

### [1.0.10-feature-native-donation.0](https://github.com/demokratie-live/desktop/compare/v1.0.9...v1.0.10-feature-native-donation.0) (2023-08-26)

### [1.0.9](https://github.com/demokratie-live/desktop/compare/v1.0.8...v1.0.9) (2023-08-26)

### [1.0.9-feature-deeplingking.0](https://github.com/demokratie-live/desktop/compare/v1.0.8...v1.0.9-feature-deeplingking.0) (2023-08-26)

### [1.0.8](https://github.com/demokratie-live/desktop/compare/v1.0.7...v1.0.8) (2023-08-24)

### [1.0.8-feature-deeplingking.0](https://github.com/demokratie-live/desktop/compare/v1.0.7...v1.0.8-feature-deeplingking.0) (2023-08-19)

### [1.0.7](https://github.com/demokratie-live/desktop/compare/v1.0.6...v1.0.7) (2023-08-19)

### [1.0.7-2](https://github.com/demokratie-live/desktop/compare/v1.0.7-1...v1.0.7-2) (2023-08-19)

### [1.0.7-1](https://github.com/demokratie-live/desktop/compare/v1.0.7-0...v1.0.7-1) (2023-08-19)

### [1.0.7-0](https://github.com/demokratie-live/desktop/compare/v1.0.6...v1.0.7-0) (2023-08-19)

### [1.0.6](https://github.com/demokratie-live/desktop/compare/v1.0.5...v1.0.6) (2023-01-11)

### [1.0.5](https://github.com/demokratie-live/desktop/compare/v1.0.0...v1.0.5) (2023-01-11)
Loading
Loading