Commit graph

405 commits

Author SHA1 Message Date
Alejandro Celaya
c094a27c97 Created PaginationDropdown component 2019-03-09 13:20:43 +01:00
Alejandro Celaya
83704ca4b5 Created rangeOf helper function which does a range + map 2019-03-09 12:19:33 +01:00
Alejandro Celaya
4e6ef6ac53 Removed empty line 2019-03-08 19:43:27 +01:00
Alejandro Celaya
3982d77775 Ensured visits loading is cancelled when the visits page is unmounted 2019-03-08 19:40:43 +01:00
Alejandro Celaya
87a4598391 Ensured maps modal btn is not rendered when the number of located cities is 0 2019-03-05 14:09:08 +01:00
Alejandro Celaya
701c143149 Updated ErrorHandler so that it logs errors in production 2019-03-05 14:04:52 +01:00
Alejandro Celaya
e303a80683 Updated bootstrap to solve security issue 2019-03-04 21:05:30 +01:00
Alejandro Celaya
ad9f0c00d0 Created ErrorHandler test 2019-03-04 20:49:18 +01:00
Alejandro Celaya
cd908fa358 Created ErrorHandler component 2019-03-04 20:41:02 +01:00
Alejandro Celaya
4c729a405d Fixed crash when trying to load a map with just one location 2019-03-04 20:24:28 +01:00
Alejandro Celaya
ba5ea7407b Used native javascript reduce instead of ramda reduce 2019-03-04 19:28:24 +01:00
Alejandro Celaya
1bc406b0d9 Ensured requests when loading visits are made in parallel for big dataset 2019-03-04 19:21:46 +01:00
Alejandro Celaya
7e27ceb885 Ensured same timestamp is used when generating memoization ID after mounting the component 2019-03-04 18:19:50 +01:00
Alejandro Celaya
252edaa2ca Improved performance while calculating status by doing one iteration only and memoizing the result when possible 2019-03-04 18:14:45 +01:00
Alejandro Celaya
127bcc14eb Prevented side menu to be swipeable while a modal window is displayed 2019-03-03 12:05:29 +01:00
Alejandro Celaya
6291af2865 Fixed initial zoom and center on maps 2019-03-03 11:47:19 +01:00
Alejandro Celaya
780e4a6e9e Replaced component by render on route rendering not found component with custom props 2019-03-03 11:18:58 +01:00
Alejandro Celaya
c4bc2f24d6 Used not-found component for menu layout inner router 2019-03-03 11:15:34 +01:00
Alejandro Celaya
d23ddd0e0b Created NotFound component 2019-03-03 11:02:29 +01:00
Alejandro Celaya
11d49fb70f Created DeleteTagConfirmModal test 2019-01-13 23:31:10 +01:00
Alejandro Celaya
056286636d Created ScrollToTop test 2019-01-13 23:03:31 +01:00
Alejandro Celaya
d020ed0b13 Created ShortUrlsRowMenu test 2019-01-13 13:08:47 +01:00
Alejandro Celaya
30b4cb4068 Created ShortUrlsRow test 2019-01-13 09:49:02 +01:00
Alejandro Celaya
1aa1d29d97 Removed direct calls between actions without DI 2019-01-12 23:59:03 +01:00
Alejandro Celaya
4f8c7afc76 Created SortableBarGraph test 2019-01-12 23:47:41 +01:00
Alejandro Celaya
0c1f533747 Updated short URL visits loading so that it loads visits in several requests 2019-01-10 19:50:25 +01:00
Alejandro Celaya
23af0de34a Simplified ShlinkApiCLient by using the new simplified authentication approach 2019-01-10 19:17:15 +01:00
Alejandro Celaya
77a624a889 Removed not needed call to function 2019-01-09 20:34:35 +01:00
Alejandro Celaya
b12dac1e35 Improved map modal title 2019-01-09 20:30:59 +01:00
Alejandro Celaya
c599d2837b Improved VisitsParser test 2019-01-09 07:59:56 +01:00
Alejandro Celaya
8b8be2d7ca Updated stateFlagTimeout to get the setTimeout function injected as a dependency 2019-01-08 20:49:47 +01:00
Alejandro Celaya
00d386f19f Skipped locations from unknown cities when processing cities stats for map 2019-01-07 21:11:09 +01:00
Alejandro Celaya
4870801f8f Implemented map to show visits from every city 2019-01-07 21:00:28 +01:00
Alejandro Celaya
78745366c2 Moved button to open map to separated component 2019-01-07 19:43:25 +01:00
Alejandro Celaya
2be771cbcc Improved styles 2019-01-07 13:45:16 +01:00
Alejandro Celaya
6abc0e7d02 Created component to show a map on a modal window 2019-01-07 13:35:25 +01:00
Alejandro Celaya
a2c1f5ce7d Improved function name 2019-01-07 11:56:54 +01:00
Alejandro Celaya
dc9c1712ff Added cities stats graphic on short url visits page 2019-01-07 11:53:14 +01:00
Alejandro Celaya
08488e9bad Imported config files and start script from new create react app 2019-01-05 22:54:54 +01:00
Alejandro Celaya
835d54e90c Updated dependencies and source code 2019-01-05 22:25:54 +01:00
Alejandro Celaya
03f409a803 Updated linting dependencies 2018-12-31 18:23:47 +01:00
Alejandro Celaya
8a9a4f40a7 Created shortUrlsList reducer test 2018-12-21 10:58:51 +01:00
Alejandro Celaya
047d99be6d Updated ScrollTop component so that it gets the window object injected as a dependency 2018-12-21 10:38:40 +01:00
Alejandro Celaya
16cf30f26f Created EditTagsModal component test 2018-12-21 10:34:12 +01:00
Alejandro Celaya
9268114fe1 Created shortUrlDeletion reducer test 2018-12-21 10:02:42 +01:00
Alejandro Celaya
77a2f32cfd Ensured bar graphs are sorted case insensitive 2018-12-19 11:07:47 +01:00
Alejandro Celaya
eec79043cc Moved common and utils services to their own service providers 2018-12-18 20:19:22 +01:00
Alejandro Celaya
4b1f5e9f4c Extracted short-url related services to its own service provider 2018-12-18 20:00:23 +01:00
Alejandro Celaya
cf1239cf6e Moved all server-related services to its own service provider 2018-12-18 19:45:09 +01:00
Alejandro Celaya
566322a8c5 Extracted tag related services to its own service provider 2018-12-18 14:55:00 +01:00
Alejandro Celaya
fa3e1eba93 Moved all visits-related services to its own service provide function inside visits 2018-12-18 14:36:32 +01:00
Alejandro Celaya
471322f4db Implemented dependency injection in all tag related components 2018-12-18 11:28:15 +01:00
Alejandro Celaya
4f54e3315f Simplified ShlinkApiClient and moved runtime creation logic to external service 2018-12-18 10:14:25 +01:00
Alejandro Celaya
7bd4b39b5a Added lazy loading to action services 2018-12-18 05:03:38 +01:00
Alejandro Celaya
12ddeebedf Registered first actions as services 2018-12-18 04:54:32 +01:00
Alejandro Celaya
d6e53918a2 Created function which dynamically resolve action services from the container for connected components 2018-12-18 04:34:37 +01:00
Alejandro Celaya
bab1e57ab1 Registered remaining short URLs components in DI container 2018-12-17 23:11:55 +01:00
Alejandro Celaya
5616d045ab Migrated a lot more components to new DI system 2018-12-17 22:18:47 +01:00
Alejandro Celaya
5e6ad14a85 More components migrated for dependency injection 2018-12-17 20:24:31 +01:00
Alejandro Celaya
79a518b02d Registered first components as services 2018-12-17 20:03:36 +01:00
Alejandro Celaya
07b1d5be2e Created shortUrlCreation reducer test 2018-11-01 14:55:30 +01:00
Alejandro Celaya
f94b5b7c68 Created tagDelete reducer test 2018-11-01 14:44:55 +01:00
Alejandro Celaya
824a2facac Created tagEdit reducer test 2018-11-01 14:13:49 +01:00
Alejandro Celaya
4445c79540 Created TagsList test 2018-11-01 13:51:03 +01:00
Alejandro Celaya
85cb849ba5 Created TagCard test 2018-11-01 13:34:31 +01:00
Alejandro Celaya
53132fa900 Created CreateShortUrl test 2018-11-01 13:15:09 +01:00
Alejandro Celaya
1697ef9306 Created QrCodeModal test 2018-11-01 12:35:51 +01:00
Alejandro Celaya
79a16a2c2c Created PreviewModal test 2018-11-01 12:34:18 +01:00
Alejandro Celaya
30192cb349 Created DeleteShortUrlModal test 2018-11-01 12:24:16 +01:00
Alejandro Celaya
70ebb0362a Converted DateInput into functional component 2018-11-01 09:16:18 +01:00
Alejandro Celaya
cccf57a35a Moved DateInput from common to utils 2018-11-01 09:05:20 +01:00
Alejandro Celaya
6784c30fa0 Ensured react router uses homepage defined in package.jsoin as basename 2018-11-01 08:20:33 +01:00
Alejandro Celaya
822afa6db7 Ensured tooltips are not intersect for bar charts 2018-10-30 20:41:36 +01:00
Alejandro Celaya
7a63f737ac Updated sort icons in SortingDropdown 2018-10-30 07:35:35 +01:00
Alejandro Celaya
99833b51a9 Ensured dropdown item styles are not overriden for disabled items 2018-10-28 23:06:57 +01:00
Alejandro Celaya
05936c52b3 Added sorting to referrers bar graph 2018-10-28 23:04:52 +01:00
Alejandro Celaya
368de2b4c7 Added order control to countries graph 2018-10-28 22:54:08 +01:00
Alejandro Celaya
6634fc41c5 Fixed short urls dropdown menu not properly located 2018-10-28 21:51:54 +01:00
Alejandro Celaya
4ad8e909d4 Extracted sorting dropdown to its own component 2018-10-28 21:26:47 +01:00
Alejandro Celaya
0e8631ae9d Updated GraphCard so that it automatically calculates the proper aspect ration for bar chart graphs 2018-10-19 20:27:25 +02:00
Alejandro Celaya
812e391e34 Moved helper functions in GraphCard outside of component function 2018-10-19 19:04:22 +02:00
Alejandro Celaya
bb17dbe680 Recovered missing class 2018-10-07 09:22:15 +02:00
Alejandro Celaya
644caf7dfb Ensured ColorGenerator matches keys in a case insensitive way 2018-10-07 08:59:25 +02:00
Alejandro Celaya
7d665f3933 Ensured tags returned from server are used after editing short URL tags in order to use the normalized values 2018-09-16 12:48:28 +02:00
Alejandro Celaya
fc1af04243 Created tests for Paginator and SearchBar 2018-09-16 12:18:02 +02:00
Alejandro Celaya
f2d03203ae Implemented short URLs deletion 2018-09-16 10:47:17 +02:00
Alejandro Celaya
2d6dda3576 Created delete short URLs modal 2018-09-16 09:35:39 +02:00
Alejandro Celaya
9b3bfe56bb Ensured list filtering params are reset when list component unmounts 2018-09-16 09:01:05 +02:00
Alejandro Celaya
5d5a2be498 Ensured bar charts start at 0 2018-09-08 20:42:14 +02:00
Alejandro Celaya
64c1b56973 Created ShortUrlVisits test 2018-09-08 13:28:40 +02:00
Alejandro Celaya
d37e7ca7ce Created VisitsHeader test 2018-09-08 09:31:44 +02:00
Alejandro Celaya
eb0f219403 Created GraphCard test 2018-09-08 09:06:18 +02:00
Alejandro Celaya
0c1656285b Created shortUrlVisits reducer test 2018-09-08 08:49:49 +02:00
Alejandro Celaya
bbce53ade6 Created shortUrlDetail reducer test 2018-09-07 20:41:21 +02:00
Alejandro Celaya
3e63734e2b Improved visits page 2018-09-05 20:17:46 +02:00
Alejandro Celaya
28bd39f974 Fixed stylelint not properly inspecting files in src root 2018-09-02 11:10:59 +02:00
Alejandro Celaya
8b17ff88ed Split short URL visits reducer into two individual reducers 2018-09-02 11:10:59 +02:00
Alejandro Celaya
0d97c084c2 Extracted components in ShortUrlVisits to simplify maintainability 2018-09-02 11:10:59 +02:00
Alejandro Celaya
b7ca32ff8f Moved visits-related elements to visits folder 2018-09-02 11:10:59 +02:00
Alejandro Celaya
b454810357 Moved tag helper components from utils to tags/helpers folder 2018-09-02 11:10:59 +02:00
Alejandro Celaya
fd57d70a0b Fixed tags input autofocus 2018-09-02 11:10:59 +02:00
Alejandro Celaya
b0bce7498a Added first autocomplete implementation on tags selector 2018-09-02 11:10:59 +02:00
Alejandro Celaya
1519f89318 Created different functions which load tags always or only once 2018-09-02 11:10:59 +02:00
Alejandro Celaya
0b089e24de Moved propTypes and defaultProps as static properties in class components 2018-09-02 11:10:59 +02:00
Alejandro Celaya
2b44d1b009 Fixed first item on aside menu only selected when in first page 2018-09-02 10:44:52 +02:00
Alejandro Celaya
850630092a Fixed selected tags lost when chaning page 2018-09-02 10:39:26 +02:00
Alejandro Celaya
34c5a0ef8f Removed duplicated code by creating a helper function 2018-08-27 16:45:46 +02:00
Alejandro Celaya
3d39fa724c Created App test 2018-08-26 19:48:21 +02:00
Alejandro Celaya
933de6e2c5 Fixed event handlers not properly called 2018-08-26 19:30:56 +02:00
Alejandro Celaya
2fdc7a0ff0 Fixed shape types not properly defined as shapes but as plane objects 2018-08-26 19:19:45 +02:00
Alejandro Celaya
3569202a62 Fixed typo 2018-08-26 10:52:45 +02:00
Alejandro Celaya
c0e116b17b Disabled specific eslint rules in small blocks 2018-08-26 10:49:23 +02:00
Alejandro Celaya
9b668f3365 Simplified Paginator component 2018-08-25 23:45:03 +02:00
Alejandro Celaya
6a016d8e6f Updated styles in javascript to fulfill adidas rules 2018-08-25 23:39:27 +02:00
Alejandro Celaya
ed0aa68452 Fixed linting issues in stylesheets 2018-08-25 15:59:51 +02:00
Alejandro Celaya
6d0753481d Refactored visits parser to be functional 2018-08-24 23:55:53 +02:00
Alejandro Celaya
4924f24e1a Refactored VisitsParser taking advantage of reduce function 2018-08-24 23:51:33 +02:00
Alejandro Celaya
26a3fdfd3d Created VisitsParser test 2018-08-24 23:38:37 +02:00
Alejandro Celaya
a83be0b45c Created CreateServer test 2018-08-24 23:19:49 +02:00
Alejandro Celaya
badc8a7324 Created DeleteServerModal test 2018-08-24 12:36:14 +02:00
Alejandro Celaya
7cd9caee77 Created DeleteServerButton test 2018-08-24 12:23:35 +02:00
Alejandro Celaya
76ae27707b Created ServersService test 2018-08-24 10:58:37 +02:00
Alejandro Celaya
53a4240219 Created ServersImporter test 2018-08-24 10:34:32 +02:00
Alejandro Celaya
12ac877e2d Created ServersExporter test 2018-08-24 10:14:00 +02:00
Alejandro Celaya
ff28169c74 Created ImportServersBtn test 2018-08-23 16:26:42 +02:00
Alejandro Celaya
da1616542d Minor refactoring on ImportServersBtn 2018-08-23 15:33:05 +02:00
Alejandro Celaya
a5865e6cec Improved ShlinkApiClient test 2018-08-22 22:38:05 +02:00
Alejandro Celaya
9b063a4616 Implemented importing servers from CSV file 2018-08-21 20:33:12 +02:00
Alejandro Celaya
ac52f55c5e Added button to import servers from CSV file 2018-08-20 17:31:45 +02:00
Alejandro Celaya
617a3b767b Replace json-csv parsing library 2018-08-20 17:08:15 +02:00
Alejandro Celaya
b72a5d0a66 Improved ServerDropdown.text.js 2018-08-20 16:53:48 +02:00
Alejandro Celaya
2b373cc4af Added feature to export servers list 2018-08-20 16:40:33 +02:00
Alejandro Celaya
d84bf01937 Replaced anchor by span to prevent accessibility error 2018-08-20 10:04:17 +02:00
Alejandro Celaya
84d012d7af Fixed accessibility issue 2018-08-19 20:56:55 +02:00
Alejandro Celaya
96adb227d9 Added search bar to tags list 2018-08-19 20:52:33 +02:00
Alejandro Celaya
843c121285 Extracted SearchField from SearchBar component to its own component 2018-08-19 20:29:23 +02:00
Alejandro Celaya
03870c0c6f Ensured tags list keeps sorted after editing a tag 2018-08-19 20:11:43 +02:00
Alejandro Celaya
5d2de11615 Allowed tags color to be changed 2018-08-19 20:08:02 +02:00
Alejandro Celaya
71ead150a2 Added color picker to edit tag modal 2018-08-18 23:24:03 +02:00
Alejandro Celaya
d541543ab3 Implemented edition of tags 2018-08-18 22:59:53 +02:00
Alejandro Celaya
878e336ba1 Simplified ColorGenerator and exposed method to set colors for a key 2018-08-18 17:51:44 +02:00
Alejandro Celaya
2650027c40 Updated tags list, allowing to click on a tag to show the list filtered by that tag 2018-08-18 17:34:49 +02:00
Alejandro Celaya
680d80d753 Prevented short URLs list to be reloaded when tags are edited 2018-08-18 17:14:33 +02:00
Alejandro Celaya
b5de9bf523 Fixed wrong reducer being called 2018-08-18 16:51:02 +02:00
Alejandro Celaya
1dee478234 Implemented delete tag behavior 2018-08-18 16:39:47 +02:00
Alejandro Celaya
f480e34f67 Created TagCard and DeleteTagConfirmModal components 2018-08-18 14:38:36 +02:00
Alejandro Celaya
f1ee467af4 Finished design on tags list page 2018-08-18 11:15:00 +02:00
Alejandro Celaya
63ddef2d81 Removed titles from side menu 2018-08-18 10:47:45 +02:00
Alejandro Celaya
ec7b47fb32 Allowed MuttedMessage to define a margin 0 2018-08-16 19:22:54 +02:00
Alejandro Celaya
f7f0d8c7c1 Improved tags list section 2018-08-16 19:19:57 +02:00
Alejandro Celaya
49290b56ee Created tags list page 2018-08-16 18:59:00 +02:00
Alejandro Celaya
03113583f0 Updated behavior on tags modal so that the component handles all actions 2018-08-15 19:10:35 +02:00
Alejandro Celaya
a1eadf767e Updated short URL tags adding real behavior 2018-08-15 18:44:54 +02:00
Alejandro Celaya
854851fefc Created common component to handle tags and modal to edit tags 2018-08-15 11:14:44 +02:00
Alejandro Celaya
707c097ed9 Fixed title size in mobile devices 2018-08-15 10:16:53 +02:00
Alejandro Celaya
cb3186395d Added burguer icon to show sidebar on mobile devices 2018-08-15 08:51:20 +02:00
Alejandro Celaya
a00f59bab3 Added 'active' on Add server link 2018-08-14 20:51:38 +02:00
Alejandro Celaya
72f96a6d1d Ensured sidebar does not overlap header in mobile resolutions 2018-08-14 20:46:01 +02:00
Alejandro Celaya
cb9dc9d65e Added swipable menu 2018-08-14 20:28:46 +02:00
Alejandro Celaya
adec759579 Added workaround to add tags on blur on tags input which allows tags to be added on Android 2018-08-12 19:07:42 +02:00
Alejandro Celaya
f8eb5fb022 Creates shortUrlsListParams reducer test 2018-08-12 18:50:19 +02:00
Alejandro Celaya
e0ab67899d Created server reducer test 2018-08-12 10:17:13 +02:00
Alejandro Celaya
ec4c14e8de Created selectedServer reducer test 2018-08-12 09:22:18 +02:00
Alejandro Celaya
f23245a39c Created DateInput component test 2018-08-12 09:01:11 +02:00
Alejandro Celaya
34155aae58 Refactored some components 2018-08-12 08:45:48 +02:00
Alejandro Celaya
86eb963176 Simplified AsideMenu component removing unneeded checks 2018-08-12 08:26:36 +02:00
Alejandro Celaya
073703ef5b Created Home component tests 2018-08-12 08:20:35 +02:00
Alejandro Celaya
49f0109d20 Renamed home-container CSS class to just home 2018-08-12 08:01:35 +02:00
Alejandro Celaya
f9773dbebe Added servers list to home page 2018-08-11 22:06:36 +02:00
Alejandro Celaya
c920403d5f Deleted no longer needed styles sheet 2018-08-11 21:41:01 +02:00
Alejandro Celaya
e1008fcff1 Replaced tags input component by a simpler one 2018-08-11 21:39:27 +02:00
Alejandro Celaya
7efc09d73c Improved badge color 2018-08-11 18:27:51 +02:00
Alejandro Celaya
b3be7df890 Improved tags filtering control 2018-08-10 22:27:50 +02:00
Alejandro Celaya
c80fea2877 Added ordering control to short URLs list in mobile resolutions 2018-08-10 22:16:50 +02:00
Alejandro Celaya
e4d5424c07 Fixed short URLs ordering in desktop resolutions 2018-08-10 21:38:24 +02:00
Alejandro Celaya
3821735a89 Updated DateInput to be clearable 2018-08-09 20:13:46 +02:00
Alejandro Celaya
6f38538dea Improved responsiveness in visits page 2018-08-09 19:50:22 +02:00
Alejandro Celaya
ca4365d820 Ensured toggle menu is hidden on route change 2018-08-05 11:27:26 +02:00
Alejandro Celaya
ec6b11d9c9 Created component to scroll to top 2018-08-05 11:20:09 +02:00
Alejandro Celaya
554779a173 Fixed pagination control not being properly wrapped in mobile devices 2018-08-05 10:12:55 +02:00
Alejandro Celaya
14b98fd833 Improved context menu in mobile devices 2018-08-05 10:08:17 +02:00
Alejandro Celaya
ce8888ce5d Replaced double quotes with single quotes in sass imports 2018-08-05 10:01:17 +02:00
Alejandro Celaya
b25cb6c170 Added more responsive improvements 2018-08-05 08:49:07 +02:00
Alejandro Celaya
c1880125b3 Fixed left menu responsiveness 2018-08-05 08:29:52 +02:00
Alejandro Celaya
9575107848 Configured redux dev tools 2018-08-05 08:13:12 +02:00
Alejandro Celaya
3c0f1716aa Fixed responsive properties 2018-08-04 17:52:56 +02:00
Alejandro Celaya
ee6193ace8 Added support to filter by multiple tags 2018-08-04 17:07:44 +02:00
Alejandro Celaya
1562f7ef35 Fixed padding 2018-08-04 08:38:25 +02:00
Alejandro Celaya
7f9744cef2 Fixed default servers object value 2018-08-04 08:29:40 +02:00
Alejandro Celaya
5517fcdde5 Fixed changing selected server 2018-08-04 08:24:58 +02:00
Alejandro Celaya
daf67e1d43 Fixed typo 2018-08-01 19:15:45 +02:00
Alejandro Celaya
bbeaf01319 Created filtering by tag feature 2018-08-01 19:04:58 +02:00
Alejandro Celaya
eef1946243 Used setState callback to ensure no race conditions occur 2018-08-01 18:32:21 +02:00
Alejandro Celaya
0b15fba640 Added filtering by date range to visit stats page 2018-07-31 22:04:20 +02:00
Alejandro Celaya
a7bd66827a Created reusable DateInput component 2018-07-31 21:24:34 +02:00
Alejandro Celaya
1abcb2e1d7 Fixed visits graphs styles 2018-07-31 20:36:27 +02:00
Alejandro Celaya
0f34d473b9 Ensured regular data for a short URL is loaded if defined 2018-07-30 21:34:06 +02:00
Alejandro Celaya
13004f6d57 Removed duplicated code from ShortUrlVisits 2018-07-30 21:12:06 +02:00
Alejandro Celaya
1b97877ecf Improved styles by using Cards 2018-07-30 20:54:06 +02:00
Alejandro Celaya
d97cbdde5d Defined how to parse visit stats and how to render them 2018-07-30 20:31:48 +02:00