Commit Graph

67 Commits

Author SHA1 Message Date
Ilya Boyandin
51bcdc4467 Add API proxy (#41) 2022-04-20 16:35:14 +01:00
Lachlan Kermode
1c08ed9378 Feature/reduce bundle size (#234) (#36)
Co-authored-by: Juan Camilo González <j.gonzalezj@uniandes.edu.co>
Co-authored-by: msramalho <19508417+msramalho@users.noreply.github.com>
2022-04-08 10:20:16 +01:00
wattroll
b4eb4edcae npm run lint:fix 2022-04-06 21:40:40 +03:00
msramalho
799f67ea49 implements csv+json downloads 2022-04-06 18:57:09 +02:00
Lachlan Kermode
4113c04830 Add support for Twitter and Telegram 2022-03-06 19:34:12 -05:00
Lachlan Kermode
723c4b7007 Remove design-system dependency 2022-03-03 20:24:38 -05:00
efarooqui
09d82b4da5 Working with default category values from store if none are provided in config 2021-05-24 22:00:51 -07:00
efarooqui
5c3fffd99e Allows for multiple specified categories that are customizable panelsin left hand side toolbar 2021-05-24 20:31:00 -07:00
efarooqui
8e8416136e All filters working in conjunction; can filter on shape, filter, and category separately 2021-05-21 17:17:43 -07:00
efarooqui
8206edb310 Polygon checkbox working active and inactive; need to hook up action to filter through events 2021-05-21 14:48:40 -07:00
efarooqui
7156639ec3 Polygon shapes abstracted to be types of checkboxes; abstracted rendering of panel into one component; importing shapes from separate endpoint 2021-05-20 18:44:26 -07:00
efarooqui
e431422c19 Removing extraneous log 2021-05-13 20:33:12 -07:00
efarooqui
885a3e74e1 Adding comments to utils functions 2021-05-13 19:11:42 -07:00
efarooqui
8abe017785 Changing clusterSize calculation 2021-05-11 19:57:20 -07:00
efarooqui
b4981f1bbf Bumping maxsize for clusters 2021-05-11 19:24:05 -07:00
efarooqui
0b989465f6 Fixing bugs with timeline markers; issues with using category as associations obj vs just title 2021-05-10 15:57:59 -07:00
efarooqui
15fbba8d06 Refactored selectEvents to account for filter path strs; working coloring alg again; evts not showing up on timeline 2021-05-07 15:07:48 -07:00
efarooqui
a1b7fb5259 Refactored all of filter logic to accomodate for paths instead of simply looking at leaf node in tree; fixes bugs where leaf path is non-unique 2021-05-06 19:49:32 -07:00
efarooqui
d3c4c44da5 Working aggregate filter paths with path as key; need to reorganize coloring algorithm 2021-05-06 16:42:29 -07:00
efarooqui
123ed80d74 Allow categories to be selected by title and not id; allow for primary key field 2021-04-30 17:47:16 -07:00
Lachlan Kermode
1bbcd57e5e Fix/clean errors (#191)
* clean dev errors

* add check command

* yarn -> npm in travis

* fix all warnings

* fix base test

* 💄
2021-01-17 18:16:28 +13:00
Zac Ioannidis
02128ceed3 Added Jest test suite 2020-12-14 13:30:49 +00:00
Zac Ioannidis
81e00fd917 Using prettier for linting 2020-12-08 13:13:50 +00:00
Zac Ioannidis
3a54cd7df5 Ingesting config through Create React App 2020-12-07 19:28:07 +00:00
Juan Camilo González
df2ccd33fa export language from utilities 2020-11-30 14:21:27 -05:00
Juan Camilo González
71e0e24b86 default "en-US" if language is not in config.js 2020-11-30 09:57:48 -05:00
Juan Camilo González
ffdb330f7f Lint fixes 2020-11-30 09:19:23 -05:00
Juan Camilo González
c0a7036803 🌐 Translate JS dates & propose utility for d3 locale 2020-11-29 18:28:24 -05:00
Lachlan Kermode
7080c6d7af Feature/smallfixes (#177)
* return logos

* dates w/o commas

* make arrows slightly larger

* intro/info popup fixes
2020-10-29 09:31:13 +01:00
Ebrahem Farooqui
9175057015 Feature/handle cluster select from timeline (#175)
* Updating some styles for cover; updating copy

* Wrote up getSelectedClusters function; testing

* Working on select with clusters being highlighted; rendering highlight around both clusters and individual points, so there's a little overlap

* Removed extraneous props being passed down to cluster

Co-authored-by: efarooqui <efarooqui@pandora.com>
2020-10-29 07:10:56 +01:00
Ebrahem Farooqui
fff1e46b16 Update utilities.js
change opacity back to not using a base value
2020-10-27 12:22:50 -07:00
Lachlan Kermode
c1afd75cea fix recursive case
fix corner case for nested filters

cleanup
2020-10-27 14:52:45 +01:00
Ebrahem Farooqui
c454775fcb Feature/add coloring algorithm (#169)
* Fixed bug: when all child filters unselected, turn off parent as well

* Refactored placement of onSelectFilter to be in Layout; working logic for updating coloring sets

* Linting fixes and removal of console logs

* Added separate component for colored markers which clusters and events will use; working calculation of color percentages based off of coloringset

* Working colors for clusters; need to implement for individual points as well

* Adding two new features to select whether to color by association or by category (can't do both)

* Working colors for filter list panel; text and checkbox change according to colorset groupings

* Working timeline events with coloring algorithm

* Handle select acts different on map when we don't render all points and only filter through clusters; can fix this by not filtering before passing in locations to events in map

* Removed extraneous prop

* Working point count on hover again; numbers were showing up below the colored markers

* Linting fixes and minor refactor of calculateColorPercentage for linting to ass

* Comments and more linting fixes

* add dev command for windows subsystem for linux

* return default styles for category toggles

* dynamically filter out timelines

* calibrate styling

* further calibrations

* correct contrast

* lint

Co-authored-by: efarooqui <efarooqui@pandora.com>
Co-authored-by: Lachlan Kermode <lachiekermode@gmail.com>
2020-10-27 13:33:32 +01:00
efarooqui
9bc9c6d9a2 Merging in develop branch 2020-10-20 15:26:15 -07:00
efarooqui
cd19910b06 Loads index when locations are finally available in props; added through componentDidUpdate method 2020-10-20 13:28:58 -07:00
efarooqui
7dee3dacd1 Some linting fixes 2020-10-19 13:33:42 -07:00
efarooqui
c310d15579 Created utility function isIdentical; moved DefsClusters into Clusters file 2020-10-19 13:32:35 -07:00
efarooqui
3bf80bce00 Modified clusters to take in radial gradient as input if specified 2020-10-15 09:23:19 -07:00
efarooqui
2aaa1752ad Changed back to normal opacities instead of radial gradients; could add a var that's read from the config to determine styling: radial gradient || normal opacity 2020-10-14 22:27:50 -07:00
efarooqui
b5bb7472ac Rewrote opacity alg for clusters 2020-10-13 11:04:07 -07:00
efarooqui
cde94262be Events showing up on timeline after interpolating categories from associations and passing into getY 2020-10-12 14:54:45 -07:00
efarooqui
3dc13f334b Working filters with added check to make sure empty locations dont create clusters 2020-10-07 10:19:03 -07:00
efarooqui
9dd5eabd3a Linting fixes 2020-10-06 10:31:17 -07:00
efarooqui
47b9a66816 Working on select that selects all events in a cluster; need to configure UI to both zoom and select events 2020-10-05 09:45:17 -07:00
efarooqui
9357b5e281 Broken onClick clusters working after validating longitude and latitude and only allowing locations to contain valid coordinates 2020-10-01 15:35:46 -07:00
efarooqui
5333f492f8 Getting appropriate clusterZoom; flyto moving to incorrect location on map 2020-09-30 13:07:29 -07:00
efarooqui
5020e73811 Cluster sizes showing up appropriately and unclustering upon zoom; need to nail down styling and add onSelect for clusters 2020-09-30 11:21:37 -07:00
efarooqui
aa87db6b84 Working cluster visualization; need to modify styling for clusters for size and work out color based on events 2020-09-30 10:53:15 -07:00
efarooqui
2423a5a5ad Issue with the difference between clicking on a card and clicking on the caret (ie is there an onClick functionality for the card?) 2020-09-22 16:55:13 -07:00
efarooqui
2bc6affbf5 Fixed up event schema to reduce filters and narratives to associations; removed extraneous comments for deprecated functions 2020-09-09 21:22:22 -07:00