Commit graph

64 commits

Author SHA1 Message Date
Christoph Lienhard d414b95c1c
Fix several smaller problems
* adapt for structure change in gql backend (e.g. id -> rowId)
* display questions not rowId dependent anymore
* fixed calculation error if both, party and user, selected "skipped"
* fixed problems occuring when a candidate hasn't answered all questions (yet)
2020-12-31 21:13:21 +01:00
Christoph Lienhard 64e6b861b6 Last not Least: Get party details page from backend
Also
* reorder graphQl queries: Always a query constant + update function
* use id instead of token (initials) to identify person in url
* Remove any party logo related sections since currently not needed
* Move "options" from data closer to actual code since it doesn't really belong to data
  (data may be deleted in the future, anyway)
* add nodeId in gql queries wherever possible to avoid problems with the apollo cache
* add note about graphql schema import to README.md
2020-08-22 21:14:12 +02:00
Christoph Lienhard 5512955af4 Add Note in Readme concerning variable naming 2020-08-22 20:49:44 +02:00
Christoph Lienhard 498a02bf1d Use graphql to retrieve parties 2020-06-27 10:53:13 +02:00
Christoph Lienhard f01d492d95 Fix calculation of scores
With this commit two calculation errors are fixed
 * the score in the case partyPosition = 'negative' while userPosition = 'neutral' shouldn't be MIN_POINTS but rather BASE_POINTS.
 * the totalScoredPoints (now "totalMaxPoints") should be independent of any party-positions which it wasn't.

To minimize errors in this area in the future tests are added
which are based on the official Rechenmodel of the bpb.
To that end the score calculation logic was refactored
 and moved from results.vue to scoring.js, too.

(cherry picked from commit 2d246fefbc4730ca5f7a4224325084a98f1c41f0)
2020-06-27 10:32:46 +02:00
Christoph Lienhard 66019ecda9 Use backend on emphasis page 2020-06-14 03:33:56 +02:00
Christoph Lienhard 0347a54ac0 Use backend on theses page 2020-06-14 03:33:39 +02:00
Moritz Kröger 201a31e497 🐛 Fixes country code fetching for results 2019-05-10 18:16:37 +02:00
Moritz Kröger 6de53bbf76 🍱 Adds more national party logos 2019-05-10 17:46:31 +02:00
Moritz Kröger 123eb71782 Adds TalkingEurope on results page 2019-05-10 17:33:56 +02:00
Moritz Kröger 961c5ec44e 🎨 Updates URL handling 2019-05-08 22:20:40 +01:00
Moritz Kröger 2d9c50fe38 Updated geolocation check 2019-05-08 22:18:49 +01:00
Moritz Kröger 51f390d67b Added logic to embed euromat in an iframe 2019-05-05 16:39:12 +02:00
Moritz Kröger 6dcec82e05 Use country code for national party in results 2019-05-05 12:29:34 +02:00
Moritz Kröger f59626b7ef 💄 Updates national party logo in results page 2019-05-04 14:50:48 +02:00
Moritz Kröger 69c8439410 Adds national parties to results page 2019-05-03 17:55:07 +02:00
Moritz Kröger 5b3703b690 💄 Updated input color on emphasis page 2019-05-02 19:01:36 +01:00
Moritz Kröger b730503717 🐛 Fixes overlapping text on mobile theses layout 2019-05-02 18:26:36 +01:00
Moritz Kröger 66d41a9300 🐛 Fixes a layout issue in theses when content is too short 2019-05-01 13:05:39 +01:00
Moritz Kröger a2efd921d5 Updates result with default logo display 2019-04-26 12:19:05 +01:00
Moritz Kröger a9e7cb2e28 🚸 Adds party logos 2019-04-26 12:19:05 +01:00
Moritz Kröger aaa10f3fa0 Updated dataset and made data handling in components more robust 2019-04-26 12:19:05 +01:00
Moritz Kröger d53b742ec6 Improves accessibility 2019-04-19 09:04:00 +01:00
Moritz Kröger 9963ebc448 🎨 Fixes i18n route navigation in theses/emphasis/results 2019-04-13 20:09:57 +02:00
Moritz Kröger 52e60afd34 🎨 Renames euromat component to theses 2019-04-13 20:09:57 +02:00
Moritz Kröger 2f15486041 🌐 Adds theses/emphasis/results pages to CMS 2019-04-13 20:09:57 +02:00
Moritz Kröger bd86d61b6f Fixes linter warnings 2019-04-10 09:29:28 +01:00
Moritz Kröger a8dc4627dc ♻️ Swapped dependencies and updated some config 2019-04-08 10:16:16 +02:00
Moritz Kröger 4ee3dcc1d8 👌 Fixes all Vue linting issues 2019-04-08 10:16:16 +02:00
Moritz Kröger dfb127be4d 🔧 Migrating to Vue CLI 3 2019-04-08 10:16:16 +02:00
Moritz Kröger c4bdde66de Added fallback if Storage API fails 2017-09-05 00:33:31 +02:00
Moritz Kröger 31d8a073cf Added party statements to party result page 2017-09-02 14:25:39 +02:00
Moritz Kröger 93078945a1 Added second text to results 2017-08-29 21:20:54 +02:00
Moritz Kröger ea9e1006ad Added more party information 2017-08-27 23:03:48 +02:00
Moritz Kröger b6f8c865d2 Fixed wrong progress in results page 2017-08-27 17:01:10 +02:00
Moritz Kröger d985d21b69 Update party layout 2017-08-27 16:16:05 +02:00
Moritz Kröger a981f87a47 Fixes bug in euromat answer check and updates party page 2017-08-27 15:54:43 +02:00
Moritz Kröger caccfae603 Added more content to results page 2017-08-27 15:43:14 +02:00
Moritz Kröger 67592e83c7 Added skip button to emphasis page 2017-08-27 15:35:04 +02:00
Moritz Kröger 651732601f Updated results page layout 2017-08-27 14:04:49 +02:00
Moritz Kröger 743e0d7d2b Added custom page titles and more updates 2017-08-27 13:40:07 +02:00
Moritz Kröger be611a497b Removes party, layout updates 2017-08-27 00:50:47 +02:00
Moritz Kröger b924c832d0 Reroute if no voting data and users uses native go back 2017-08-26 21:58:55 +02:00
Moritz Kröger a33e5c9a25 Removed unnecessary content 2017-08-26 16:41:40 +02:00
Moritz Kröger 619415c54f Updated mobile layout for emphasis 2017-08-26 00:40:05 +02:00
Moritz Kröger a3c17f4973 Updated emphasis layout page 2017-08-26 00:18:00 +02:00
Moritz Kröger ac72573a26 Updated responsive euromat layout 2017-08-25 23:28:07 +02:00
Moritz Kröger 85d45fe6eb Layout updates for euromat page 2017-08-25 22:45:04 +02:00
Moritz Kröger f593767d1b Moved localStorage answers to sessionStorage 2017-08-16 21:13:04 +02:00
Moritz Kröger 80c985ac75 Updated all application paths for locale 2017-08-15 22:59:50 +02:00