matt
fff24136a1
Improve logic for identifying photos in csv-normaliser
2024-09-23 23:06:24 +10:00
matt
45eba00d5d
Fix map of queenscliffe not generating
2024-09-23 23:06:24 +10:00
matt
0f05fe20ec
Fix Queenscliffe missing from council_names.json
2024-09-23 23:06:24 +10:00
matt
7b7317cd55
Handle edge case from EAST GIPPSLAND.csv
2024-09-21 14:45:45 +10:00
matt
1f80ec41db
Fix skipping candidates with whitespace around the word "Candidate" in the first column
2024-09-20 22:59:51 +10:00
matt
bb66d8c50e
Fix skipping candidates that have whitespace in the first column
2024-09-20 22:04:55 +10:00
matt
e73afcc366
Remove commas from candidate names before matching to photo
2024-09-17 19:38:42 +10:00
matt
e8e338aeef
Don't include candidates who have not been given a score
2024-09-17 19:13:37 +10:00
matt
0867d7916d
Update second paragraph on lga pages
2024-09-17 17:59:01 +10:00
matt
80ad01a1b1
Tweak intro paragraph text on lga pages
2024-09-16 22:51:05 +10:00
matt
61833aacb4
Use CSS class to control candidate tick colour
2024-09-04 23:10:07 +10:00
matt
8043e8c45d
Allow each lga to link to their own survey
2024-09-04 21:08:00 +10:00
matt
033b30cb78
Replace ' character when searching for picture file in csv-normaliser
2024-09-04 20:20:15 +10:00
matt
b0b09178e8
Skip lines that have an empty candidate name
2024-09-04 20:19:50 +10:00
matt
6aca0bc039
Check multiple potential input filenames in csv-normaliser
2024-09-04 20:19:12 +10:00
matt
1cadbcffb4
Tweak template to allow custom groups based on groupNames field in config.json
2024-09-03 23:05:03 +10:00
matt
1ea5048790
Ensure rating is always an integer in csv-normaliser
2024-09-03 23:03:44 +10:00
matt
46bad101e0
Improve handling of expected input file names in csv-normaliser
2024-09-03 21:38:16 +10:00
matt
91978de573
Fix csv-normaliser not skipping example lines
2024-09-03 21:21:59 +10:00
matt
40dc385d7b
Fix candidate sorting in template
2024-09-03 20:11:29 +10:00
matt
771d8e7aca
Hide verbose output in csv-normaliser
2024-09-03 19:57:58 +10:00
matt
36897255a4
Output csv-normaliser "failed to find picture" messages in red
2024-09-03 19:57:58 +10:00
matt
bf5aee2f00
Fix missing newline at end of csv-normaliser output
2024-09-03 19:56:51 +10:00
matt
b4fec83039
Add --folder option to csv-normaliser script to simplify passing in arguments if they are in the same folder
2024-09-03 19:56:40 +10:00
matt
bd6360177f
Handle more edge cases in csv-normaliser
2024-09-02 21:42:35 +10:00
matt
c4f8098894
Fix picture size instruction
2024-08-26 22:49:39 +10:00
matt
f1f78c69db
Fix typos
2024-08-26 22:26:46 +10:00
matt
e8ce924b8a
Update docs
2024-08-26 22:24:29 +10:00
matt
1b5f41319b
Add space after map when the list of wards is hidden
2024-08-25 12:05:44 +10:00
matt
239f2781b4
Remove the command to install the wp-cli/restful package from script
2024-08-25 11:53:13 +10:00
matt
5d0cfb3c1b
Tweak bulk-upload-media.sh to use spl-data folder instead of each lga folder
2024-08-25 11:52:55 +10:00
matt
c7d9465ba0
Improve label rendering on maps
2024-08-25 11:31:03 +10:00
matt
6d4a49208a
Use a CSS class to force columns gap to 0
2024-08-21 23:15:40 +10:00
matt
b21d9d8534
Fix dimensions of ward list so it looks normal on mobile
2024-08-21 23:06:11 +10:00
matt
77dc711f12
Add example-media.json file for testing php-template
2024-08-21 22:59:21 +10:00
matt
eef70107e4
Add list of wards to page if there is more than 1 ward
2024-08-21 22:59:04 +10:00
matt
460b54cdd8
Add map to page if it is present
2024-08-21 22:58:38 +10:00
matt
530554e118
Add description on number of wards
2024-08-21 22:58:12 +10:00
matt
517bc1caf5
Extract sluggify logic to a function
2024-08-21 22:57:38 +10:00
matt
1e45dc212b
Fix message when a picture cannot be found not containing a newline
2024-08-21 22:23:18 +10:00
matt
df513aca8e
Mount spl-data folder inside csv-normaliser dev container
2024-08-21 22:22:45 +10:00
matt
b4ddd94c93
Improve wrapping of 4 ticks
2024-08-19 14:21:09 +10:00
matt
019090089b
Only use ticks under candidates
2024-08-19 14:20:52 +10:00
matt
8cd1463fef
Add jq filter for generating LGA page links
2024-08-19 10:52:44 +10:00
matt
86e0e07f0e
Tweak paragraph when we don't have any candidates
2024-08-19 10:52:29 +10:00
matt
42ff10d02f
Tweak spacing between candidate name and rating
2024-08-19 00:10:14 +10:00
matt
26a9ed4ad4
Show a single red cross for candidates rated 1 or below
2024-08-19 00:09:58 +10:00
matt
6a7291e677
Improve wrapping of candidate rating ticks
2024-08-19 00:09:10 +10:00
matt
2af0779e65
Mark shell scripts as executable
2024-08-18 23:48:59 +10:00
matt
8b3ddec283
Improve LGA template
...
- Use columns instead of grid so it looks better on mobile
- Add message if there are no candidates for a particular ward
- Tweak spacing of candidate name and ticks
2024-08-18 23:43:58 +10:00
matt
7950bab0c9
Left align opening paragraphs of lga pages
2024-08-18 23:42:11 +10:00
matt
1d012f5ff1
Allow generating page when a candidates.csv file doesn't exist
2024-08-18 23:41:50 +10:00
matt
95b7228778
Created script to capture a map for each council
2024-08-17 23:59:25 +10:00
matt
7436c808e3
Fix handling of MultiPolygon objects
2024-08-17 23:57:25 +10:00
matt
3718378545
Add a script to capture an image of a map
2024-08-17 23:03:47 +10:00
matt
0d2c42da82
Hide the "improve map" link
2024-08-17 22:54:40 +10:00
matt
18257be406
Remove navigation control from map
2024-08-17 22:54:22 +10:00
matt
2028cbbe61
Update map-generator readme
2024-08-17 22:19:35 +10:00
matt
e1a1ff4af3
Show labels in a single layer
2024-08-17 22:15:32 +10:00
matt
f60b1802d5
Auto fit map to boundaries
2024-08-17 22:14:39 +10:00
matt
0a7af5c65b
Use a style to control look and feel
2024-08-17 22:12:29 +10:00
matt
56f0f73278
Initial council ward map renderer
2024-08-17 19:25:36 +10:00
matt
2ab9306fff
Fix typo in csv normaliser log message
2024-08-15 23:18:28 +10:00
matt
1ce4e9b3b8
Remove filtering based on Council column in csv
2024-08-15 23:16:05 +10:00
matt
b8ea6e8436
Add test files for csv-normaliser script
2024-08-15 22:44:37 +10:00
matt
d9cb183b2a
Implement CSV normaliser logic
2024-08-15 22:10:03 +10:00
matt
fea2f69686
Include media files in the root of the spl-data repo
2024-08-15 16:53:52 +10:00
matt
8ec704df11
Fix config.json being included in media.json
2024-08-15 16:53:31 +10:00
matt
e08308377c
Create script to split council_names.json into multiple config.json files in spl-data repo
2024-08-15 16:48:17 +10:00
matt
3eb22d1068
Loop over folders in spl-data instead of reading from council_names.json
2024-08-15 16:47:32 +10:00
matt
c6ff0e24b1
WIP create csv-normaliser
2024-08-15 15:01:00 +10:00
matt
2980678e65
Remove data folder since we have a spl-data repo
2024-08-15 15:01:00 +10:00
matt
543531c57d
Change default data path to spl-data folder
2024-08-15 15:01:00 +10:00
matt
d2373369f3
Move MacKillop ward to top of page
2024-08-12 20:56:05 +10:00
matt
f9cd3d1427
Fix warning if candidates object doesn't have a Picture field
2024-08-12 20:53:04 +10:00
matt
25d0eecb3f
Add support for showing different footer per council
2024-08-12 20:48:03 +10:00
matt
a293178250
Add paragraphs to top of page
2024-08-12 20:46:10 +10:00
matt
ec103e8ef5
Set image size again
2024-08-12 20:31:17 +10:00
matt
6ec1ca8866
Revert "Fix image size not being applied"
...
This reverts commit 54023b372e .
2024-08-12 12:48:57 +10:00
matt
54023b372e
Fix image size not being applied
2024-08-12 12:45:52 +10:00
matt
1ef647ae94
Fix spacing not being applied
2024-08-12 12:43:40 +10:00
matt
436cda0c72
Increase spacing after each ward
2024-08-12 12:42:27 +10:00
matt
25224bbae8
Increase size of ticks and change them to green
2024-08-12 12:39:30 +10:00
matt
2cab09f734
Increase column count to 4
2024-08-12 11:59:52 +10:00
matt
fd7f698c06
Limit height of candidate photos to 200px
2024-08-12 11:59:30 +10:00
matt
6adc9eb7a7
Add error message when upload fails
2024-08-12 10:17:43 +10:00
matt
01e1e2f33e
Fix still creating json if wp commands fail
2024-08-12 10:16:34 +10:00
matt
74f4787cc5
Avoid creating json if upload fails
2024-08-12 10:13:52 +10:00
matt
d04602332f
Fix host not working when running on prod wordpress
2024-08-12 10:06:47 +10:00
matt
78cb6bf077
Always install wp-cli/restful package before bulk uploading
2024-08-12 09:42:08 +10:00
matt
acb1c47d68
Show a number of ticks per candidate
2024-08-12 09:21:24 +10:00
matt
db1a86c0b9
Sort candidates by rating descending
2024-08-12 09:21:08 +10:00
matt
f8fabe6dc1
Add anchor link for each ward
2024-08-12 09:20:55 +10:00
matt
7d613f7f0d
Update template to include candidate pictures
2024-08-12 09:20:41 +10:00
matt
295cb0e66d
Add script to bulk upload media
2024-08-12 09:20:00 +10:00
matt
6d8e023807
Allow passing the short name of a council to the script to only update a single one
2024-08-12 07:58:43 +10:00
matt
8a1983a0f3
Add a test image to top of council page
2024-08-11 21:57:52 +10:00
matt
5257ca24dc
Add support for passing media data to template
2024-08-11 21:57:23 +10:00
matt
397fdb1ede
Inital script for uploading media to wordpress
2024-08-11 21:51:57 +10:00
matt
e9a7de83cd
Improve error handling in page_renderer.php
2024-08-11 21:51:43 +10:00