This repository has been archived by the owner on Nov 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Style: Dark mode palette for select dropdown #1549
Merged
jeremyphilemon
merged 1 commit into
covid19india:master
from
Binu42:select-darkmode-style
Apr 26, 2020
Merged
Style: Dark mode palette for select dropdown #1549
jeremyphilemon
merged 1 commit into
covid19india:master
from
Binu42:select-darkmode-style
Apr 26, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/covid19india/covid19india-react/5n55gtio9 |
* Adjust height of select of date-picker to fit native select consistency * Removed !important from select styling
358b153
to
6e565b5
Compare
4 tasks
cooldashing24
added a commit
to cooldashing24/covid19india-react
that referenced
this pull request
May 8, 2020
* Update pull_request_template.md * Fix: Always scroll to top on routing between pages. (covid19india#1457) * Fix: Switch to react-tooltip (covid19india#1465) * Remove unused variables * Add react-tooltip in package.json * Update package-lock.json * Style: Allow navbar's expanded state to overflow. (covid19india#1441) * Feat: Add maps based on active, recovered, and deceased counts (covid19india#1407) * Add statistics for active, recovered and deaths * Add separate maps for different type of cases * Fix bugs related to deaths/deceased usage * Switch border to appropriate colors. * Remove unnecessary useCallback * Add styling to district/state text above map * Fix unknown district information not showing * Add comma formatting to numbers on legend * Fix flexbox height; make map boundary strokes thinner * Add map switcher. * Add prop to MapExplorer for switching map type * Fix alignments for map switcher. * Use useEffect hook to update mapOption from prop Co-authored-by: jeremyphilemon <jeremyphilemon@outlook.com> * Fix: Add disclaimer to state maps for which district data is unreliable * Fix: Prevent Essentials search bar from freezing (covid19india#1468) * Improv: Fetch IST time instead of local time. (covid19india#1444) * Create claim.yml * Update claim.yml * Update claim.yml * Update claim.yml * Fix typo * Docs: Update contributing.md (covid19india#1505) * Docs: Add code of conduct. * Docs: Update readme. * Docs: Update contributing guideline. * Feat: Tooltips for district rows. (covid19india#1476) * Feat: Highlight currently selected row in table. (covid19india#1482) * Docs: Format them. * Fix: Show remove icon even for zero search results. (covid19india#1489) * Improv: Add legends for daily confirmed chart in DeepDive. (covid19india#1424) * Chore: Update claim response. * Chore: Remove type label. * Chore: Remove type label. * Create mod.yml * Update mod.yml typo * Chore: Apply formatting. * Update mod.yml * Chore: Update mod.yml response. * Improv: Make disclaimer more explicit by showing it over the map * Fix: Last updated text overlapping with visit state button (covid19india#1528) * Fix: Remove last updated time for districts * Fix: Last updated text overlapping with back button * Fix: Map count not resetting to total on clicking empty space * Feat: Add testing timeseries graph (covid19india#1360) * Add testing timeseries graph * Add testing timeseries to state pages * Move TimeSeriesTesting component inside TimeSeries * Fix NaN errors * Improv: Persist timeseries scale mode for state pages (covid19india#1539) * Feat: Toggle to show all districts in state page. (covid19india#1520) * Fix: Debounce input events on search in home page. (covid19india#1532) * Fix the issue of home page search bar blocking using debounce in react-hooks way * Clear the results after clearing the input * Added comment & changed timer * Changed comment * Changed timer * Added name export * Added in built debounce Co-authored-by: Chinmay Dalvi <chimay.dalvi@here.com> * Feat: Add breadcrumb navigation between state pages. (covid19india#1522) * Support dark mode palette Co-authored-by: karan.kiri <karankiri.96@gmail.com> * Fix: Debounce input events in essentials search. * Suggestion updates limited through debounce covid19india#1468 * Updated infinite scroll hasMore and endMessage * Improv: Adjust white balance of map in dark mode (covid19india#1548) * Fix: Remove extra whitespace * Fix: Tweak colours of testing timeseries chart to make it legible in dark mode * Style: Wrap timeseries with timeSeriesExplorer in state page. (covid19india#1550) * Style: Moved yesterday label in timeseries. * Fix: Maps not showing up on Firefox * Update claim.yml using sender username from context. remove env variable. * Update claim.yml * Refactor: Reuse TimeSeriesExplorer in state.js (covid19india#1568) - Code reduction in state.js using timeseriesexplorer - Changed things as requested * Fix: Remove extra div from state.js * Improv: Set two yBuffer values for timeseries. * Refactor: Removed yesterday label in timeseries. * Feat: Add positive indicator on state page. (covid19india#1561) * Style: Abstracted alert component. * Improv: Set height dynamically on district expansion. (covid19india#1555) * Style: Correct spelling of positive indicator in state. * Fix: Support box-shadow property in all browsers. (covid19india#1562) * Improv: Remove uniform scaling for testing charts. (covid19india#1565) * Remove rotation of axis labels * Fix: Make navbar responsive on window resize using hook. (covid19india#1512) * Improv: Redirect to homepage for invalid state params. (covid19india#1584) * Style: Add dark mode palette for select dropdown. (covid19india#1549) * Adjust height of select of date-picker to fit native select consistency * Removed !important from select styling * Style: Adjust CSS attribtutes - Saturate map colours and increase width of map on phone - Fix tested chart alert overlapping with pills - Fix Cluster colors in dark mode * Style: Add dark mode palette for switch. (covid19india#1552) * Fix: Remove arrow icon from total row. (covid19india#1534) * Feat: Add PWA Functionality. (covid19india#1542) * Refactor: Reword title tags and description. * Fix: Change path of thumbnail. * Improv: Hide view all button for states having less districts. (covid19india#1589) * Fix: Temporarily disable PWA. * Fix: Increase margin of map legend * Improv: Change testing numbers for India to reflect total samples tested * Style: Shift info icon to bottom right * add card labeller * Improv: Add SEO Schema markup and meta tags. (covid19india#1586) * Fix: Change max value of domain to fix y-axis of log scale (covid19india#1605) * Fix: Support search using keywords. (covid19india#1554) * Improv: Use preconnect tags to improve speed on slow networks. (covid19india#1615) * Style: Align essentials page. (covid19india#1435) * Style: Make dislaimer in TimerSeries look nice again. * Improv: Use 'prefers-color-scheme' query to set dark mode. (covid19india#1569) * Fix: Don't show date twice in updates. (covid19india#1622) * Refactor: Replace moment with date-fns. (covid19india#1581) * Fix: Use moment everywhere to handle dates * Fix: Don't use moment anywhere * Fix: Timezone conversion * Feat: Extend MapExplorer to show CPM (covid19india#1258) * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * densitymaps * Refactor: Remove redundant code * Improv: Update populations based on final 2011 Census count - Refer to http://censusindia.gov.in/DigitalLibrary/Archive_home.aspx * Improv: Switch to 2016 population projections * Fix: Add population data source * Fix: Show non-integer ticks in legend for per million * Improv: Add a disclaimer about population data * Fix: Revert to earlier code design * Improv: Replace population projections with 2019 values * Style: Tweak CSS; adjust flexbox attributes Co-authored-by: Ayush Shukla <shuklaayush247@gmail.com> * Feat: Add active, recovered, deceased to district table. (covid19india#1637) * Fix: Add sort arrow to district table recovered column. (covid19india#1677) * Feat: Add d3 transitions to map (covid19india#1683) * Refactor: Use d3 selction joins to plot map * Style: Add d3 transitions to map strokes * Feat: Add transitions to map legend * Improv: Rerender only when map changes * Fix: Update district names to common/local names. (covid19india#1704) Co-authored-by: guneetnarula <guneetnarula@sputznik.com> * Update Kutch in gujrat.json * Feat: Add daily testing timeseries chart (covid19india#1676) * Feat: Add daily testing timeseries * Style: Fix daily tested graph colours * Style: Increase visibility of tooltip in DeepDive (covid19india#1463) * navbar icon made clickable * changes to remove img-link class * tooltip fixes for states-growth trend * tooltip appearance changes for patients by nationality graph * Fix : Update Jalore district name in Rajasthan * Fix : Saraikela-Kharsawan district spelling * Improv: Reduce states. * Refactor: Memoize static children components. * Refactor: Break down row component. * Improv: Add intersection observer in Home. * Feat: Add district level zones. * Feat: Add sorting info to local storage. * Test: Rewrite specs after performance optimization. (covid19india#1737) * Fix: Use deceased instead of deaths for districts. * Fix: Abbreviate headers instead of stripping vowels. * Fix: Sort tables descending by default. * Improv: Add support for lazy loading & code splitting. (covid19india#1653) * Fix: Get rid of extra render on state pages * Fix: Ensure all resources are loaded before rendering MapExplorer * Fix: Remove text from lazy loader. * Fix: Add string comparison for state name sorting. (covid19india#1749) * Refactor: Use consistent district table sorting. * Feat: Close patient modal by escape button. (covid19india#1742) * Style: Disable expand switch for zero cases in demographics. (covid19india#1754) * Feat: Add statistics section in state page. #(1513) * Style: Add descriptions to statistics cards. * Feat: Auto suggest on search field. (covid19india#1656) * Fix : Purba and Paschim Medinipur. Closes covid19india#1767 * Fix: Remove intersection observer. * Feat: Add containment zones to map (covid19india#1712) * Add district maps for whole India * Feat: Add containment zones to map * Fix multiple districts highlighting across different states * Update district names * Add separate buttons to switch between state/district view * Revert to earlier buttons; fix percentages on tooltips * Fix map switching * Fix district names * Add state borders * Scale zone legend based on number of zones * Add transitions to zone legend * Improv: Use single map file for Indian states and districts * Refactor: Combine states which are updated concurrently * Refactor: Remove redundant states in MapExplorer * Improv: Remove test data state * Fix: District counts not showing up * Fix: Use single state for highlighting districts/states * Also fix India district map rendering * Fix multiple renders and crash * Add zones to state pages * Memoized breadcrumbs in state page. * Remove unnecessary undefined district value * Update timeseries only when it's in view * Used intersection observer to check if timeseries is in view * Fix synchronization issues * Fix nasty synchronization bug * Lighten colours of zone map * Fix map transitions * Add click to expand in India district view * Fix colours of district names in zone map * Colour district name text based on zone * Keep original colours for zone map in dark mode * Add intersection observer polyfill * Invert zone map colours in the middle of fill transition * Fix typo Co-authored-by: jeremyphilemon <jeremyphilemon@outlook.com> * Fix: Show India stats on boxes for zone map * Fix: Stop click propagation on tooltips (covid19india#1777) * stop propagation for all other tooltips * Revert "stop propagation for all other tooltips" This reverts commit cbd94e2. * stop propagation for all other tooltips * Feat: Support localization. (covid19india#1627) * Feat: Localization support. (covid19india#357) * Updated config and rendered LanguageSwitcher * Removed unused components * Disabled i18n debug for the production env * Enabled i18nNext saveMissing with a script to catch the results With `saveMissing` option enabled the i18nNext library sends POST request to the mentioned endpoint with the missing locales. We need this is because static parsers can not detect dynamic data we are receiving from APIs. During the development the server can be started using `node utility/missingLocaleServer.js` The server will write missing locales to `missing_locales.json` file" Then we need to replace public/locales/en.json file with missing_locales/json. The server is not directly editing public/locales/en.json file because the create-react-app then keeps restarting the app in the development * Locale changes - Renamed: public/locales/en.json -> public/locales/en_old.json - With utility/localeMissingServer.js gathered missing_locales.json - Copied missing_locales.json -> public/locales/en.json * Added useTranslation hook to Row.js * Add t to dependency array. * Added more t tags * Added t tags to menu entries * Add missing keys to en.json. * Translation tags for the right side of the page * Renamed missing_locales.json to all_locales.json * Translation tags for left side of page. * Resovled remaining conflicts * Removed the tag because i18next was throwing error * Created and used isDevelopmentOrTest function * Added missing tags in table * Added missing locales from all_locales.json Co-authored-by: Harsh Zalavadiya <harshzalavadiya@users.noreply.github.com> Co-authored-by: jeremyphilemon <jeremyphilemon@outlook.com> * Fix: Default to India stats on India zone map * Fix: Hide language switcher. * Style: Colour district names based on zone * Fix: Correct usage of hoveredRegion and panelRegion - Ensures testing data tooltip doesn't disappear * Feat: Add DNHDD map and state page * Fix: District borders not updating on map * Improv: Delete unused DNH topojson * Feat: Add bar graphs for other categories on state pages (covid19india#1626) * active, recovered graph * change of delta graph acc. to arraykey * render deltabargraph without animation * showing graph for -ve active cases * rounded border for -ve delta active case graph * removed happy-msg from recovered and active * changed stylling for deceased happy-msg * requested changes for memo and using state * break loop when -ve value found * Fix: Move labels above axis for negative valued bars * Feat: Add transitions to state bar graphs Co-authored-by: Ayush Shukla <shuklaayush247@gmail.com> * Improv: Delay rendering of map districts * Style: Remove district strokes from India zone map Co-authored-by: Jeremy <jeremyphilemon@outlook.com> Co-authored-by: Binu kumar <45959932+Binu42@users.noreply.github.com> Co-authored-by: Rahul Nayak <rahulnk521@gmail.com> Co-authored-by: Binu42 <kbinu42@gmail.com> Co-authored-by: Ayush Shukla <shuklaayush247@gmail.com> Co-authored-by: Gaurav Bhagwanani <gaurav.bhagwanani@gmail.com> Co-authored-by: Aniket Kaulavkar <aniket.kaulavkar@gmail.com> Co-authored-by: Jun <junaidvayoli@gmail.com> Co-authored-by: Abhinav Mani <abhinav1946@gmail.com> Co-authored-by: Aishwarya Mittal <aishwaryamittal2011@gmail.com> Co-authored-by: kousiksatish <kousiksatish@users.noreply.github.com> Co-authored-by: Jaibatrik Dutta <jaibatrik@gmail.com> Co-authored-by: Chinmay Dalvi <chinmaydalvi94@gmail.com> Co-authored-by: Chinmay Dalvi <chimay.dalvi@here.com> Co-authored-by: karan kiri <karan.kiri@rebelfoods.co> Co-authored-by: karan.kiri <karankiri.96@gmail.com> Co-authored-by: Rahul Ravindran <rahulravindran2605@gmail.com> Co-authored-by: lakshmi14 <lakshmi.shweta@gmail.com> Co-authored-by: Sudhanshu <perfectsudh@gmail.com> Co-authored-by: Raj Kapadia <rajkapadia247@gmail.com> Co-authored-by: Kartik <kartikv20@gmail.com> Co-authored-by: vandanachandola <vandana.chandola@gmail.com> Co-authored-by: nishcthulhu <nishthedevil@gmail.com> Co-authored-by: Krishna Pravin <krishnapravin1@gmail.com> Co-authored-by: guneetnarula <guneetnarula@sputznik.com> Co-authored-by: Sudev <sudevschiz@users.noreply.github.com> Co-authored-by: Prashant Jain <prashantjain.pro@gmail.com> Co-authored-by: Kartikey Tanna <tannakartikey@gmail.com> Co-authored-by: Abhishek K <abhishekakade@gmail.com> Co-authored-by: Kousik Satish <kousiksatish@gmail.com> Co-authored-by: Suyog <itssuyog96@gmail.com> Co-authored-by: Shubham Jain <jains1801@gmail.com> Co-authored-by: sudevschiz <> Co-authored-by: Harsh Zalavadiya <harshzalavadiya@users.noreply.github.com>
dgr8akki
added a commit
to dgr8akki/covid19india-react
that referenced
this pull request
May 30, 2020
* Test: Comparing data from the API and the public/maps file (covid19india#986) * covid19india#355 Comparing data from the API and the public/maps file * Corrected district name * Configured npm test to NOT to run map spec * Add Null Check to handle app crashes in state * Fix: Stop propagation of click on tooltip when active (covid19india#1229) * Fix: Dates of updates reflect the API's response (covid19india#1220) * Updates in notifications are now displayed datewise. * Updated notification panel for zero updates * Fix: Unknown text overlapping UP district map (covid19india#1161) * Update CONTRIBUTING.md * Update .gitignore * Fix order of top districts * Add trend chart for active cases (covid19india#1250) * Show active cases timeline - PR against issue covid19india#899 * Changed location of active cases timeline and added preprocessing logic in useCallback * change logic for -ve active cases * Bug fix - related active case timeline * Fix active calculation; preprocessing errors * Reorder charts; clean code Co-authored-by: Dhruv Patel <dhruvkumar.patel@sema4genomics.com> * Feat: Updates indicator now dynamic based on interaction. updated notification panelfor zero updates notification bell icon fixed state of bell icon will be now saved in local storage. Just fixed a very minor bug * Add link button for state page Add hyperlink to the buttons Add hover behaviour Add hyper link on map Css fixes for district unknown Change text from view to visit Update state-page-button view in state page * Cleaned up styles. * Fixed: know more! link should be different in color * same styling for district row (covid19india#1290) * Added the date-picker for dateannounced selection in demographic page Demographics - Datepicker - updated the min-date Demographics - Datepicker - updated the max-date Date Picker : Updated the input styles for date-picker Date Picker : Implemented react-date-picker on demographics page for day selection Date Picker : Implemented react-date-picker on demographics page for day selection - updated package json and lock Date Picker : Implemented react-date-picker on demographics page for day selection - removed extra border Added consistent styling. * Page stutters on transitioning to new page covid19india#1239 * fixing tooltip for agechart (covid19india#1307) * Deep-Dive : Updated the container width to fix left-nav overlapping (covid19india#1306) Looks Good! * The values for uniform and logarithmic settings to be remembered across refresh * styling change for datepicker elements * Home page console error * Hide Unknown from Top districts * Fix X-axis of timeseries charts - Move date axis to the bottom - Add secondary translucent axis to show zero line * Refactor: Handled performance bottlenecks. * Feat: Add support for anchors. * Refactor: Cleaned up codebase. * Fix: Add click event on navbar for mobile. * Fix#743 Dark Mode (without palette changes) * Feat: Added dark mode color palette. * Style: Padding to .reminder for phones. * Fix: Show current date on datepicker mount. * Prevent opening of keyboard in mobiles. * Fix: Resolve console errors on demographics. * Fix: Avoid pointer events over TimeSeries stats on scrub. (covid19india#1348) * Fix: Resolve bloodhound search on initial load or first remote query. (covid19india#1366) * Optimized code to set results only once Co-authored-by: Abdul Ghani <abdul.ghani@volteo.com> * Fix: Resolve (covid19india#1366) errors. * Fix: Prevent tooltip from going out of screen. * Improv: Hyperlink navbar icons. * Revert "Fix: Prevent tooltip from going out of screen." This reverts commit 44d0458. * Style: Dark mode for Essentials. * Improv: Add message for no results in Demographics. * Style: Improve upon UI/UX of DeepDive. * Fix: Close expanded navbar on clicking logo. * Feat: Add State wise growth trend in DeepDive. * Fix: Show the confirmed cases in DeepDive dailys. * Style: Use different dark-mode color for desktop navbar. * Style: Support dark mode for Essentials search input. * Style: Align Essentials. (covid19india#1341) * Style: Bring desktop navbar icons back. * Style: Expand charts to fit container in DeepDive. (covid19india#1423) * Refactor: Cleanup essentials. (covid19india#1383) - Refactor main Essentials' components - Highlight searched words, include more columns for search - Remove empty file and console log statements - Fix issue around infinite scroll and searching - Remove commented console logs - Fix number hyperlinking issue - Use feather icons - Add loader gif for infinite scroll - Change stick thing - Revert width for search bar - Change margins for mobile view - Change margins to fix desktop view - Support category sorting and Google Tag tracker (covid19india#1304) - Change pages to page in resourctable.js - Sort the categories - Tag code snippet for Google Tag management Co-authored-by: Samyak Mehta <sammehta@cimpress.com> Co-authored-by: Gaurav Bhagwanani <gaurav.bhagwanani@gmail.com> Co-authored-by: Aswaath Balasubramanian <aswaathb@gmail.com> Co-authored-by: samyakmehta <samyakmehta007@gmail.com> Co-authored-by: Aman Kulkarni <akulkarni@cimpress.com> Co-authored-by: Ashwin Kumar <ashwin06k@gmail.com> * Fix: Preload fonts (covid19india#993) * Move render blocking font-face declarations to index.html * Style: Resolve scss lint rules. (covid19india#997) * Fix pre-commit hook issue of prettier * Add scss auto fix and scss lint in precommit hook * Add eslint and scss-lint in CI flow * Add sass-lint-auto-fix config file path * Cache .npm * Improv: Render district rows on demand. (covid19india#1429) * Test: Support new district row render logic. * Style: Highlight active navbar icons. (covid19india#1437) * Fix: Turn font urls to absolute paths. (covid19india#1454) *Ft. @shuklaayush's big brain solution. * Update pull_request_template.md * Fix: Always scroll to top on routing between pages. (covid19india#1457) * Fix: Switch to react-tooltip (covid19india#1465) * Remove unused variables * Add react-tooltip in package.json * Update package-lock.json * Style: Allow navbar's expanded state to overflow. (covid19india#1441) * Feat: Add maps based on active, recovered, and deceased counts (covid19india#1407) * Add statistics for active, recovered and deaths * Add separate maps for different type of cases * Fix bugs related to deaths/deceased usage * Switch border to appropriate colors. * Remove unnecessary useCallback * Add styling to district/state text above map * Fix unknown district information not showing * Add comma formatting to numbers on legend * Fix flexbox height; make map boundary strokes thinner * Add map switcher. * Add prop to MapExplorer for switching map type * Fix alignments for map switcher. * Use useEffect hook to update mapOption from prop Co-authored-by: jeremyphilemon <jeremyphilemon@outlook.com> * Fix: Add disclaimer to state maps for which district data is unreliable * Fix: Prevent Essentials search bar from freezing (covid19india#1468) * Improv: Fetch IST time instead of local time. (covid19india#1444) * Create claim.yml * Update claim.yml * Update claim.yml * Update claim.yml * Fix typo * Docs: Update contributing.md (covid19india#1505) * Docs: Add code of conduct. * Docs: Update readme. * Docs: Update contributing guideline. * Feat: Tooltips for district rows. (covid19india#1476) * Feat: Highlight currently selected row in table. (covid19india#1482) * Docs: Format them. * Fix: Show remove icon even for zero search results. (covid19india#1489) * Improv: Add legends for daily confirmed chart in DeepDive. (covid19india#1424) * Chore: Update claim response. * Chore: Remove type label. * Chore: Remove type label. * Create mod.yml * Update mod.yml typo * Chore: Apply formatting. * Update mod.yml * Chore: Update mod.yml response. * Improv: Make disclaimer more explicit by showing it over the map * Fix: Last updated text overlapping with visit state button (covid19india#1528) * Fix: Remove last updated time for districts * Fix: Last updated text overlapping with back button * Fix: Map count not resetting to total on clicking empty space * Feat: Add testing timeseries graph (covid19india#1360) * Add testing timeseries graph * Add testing timeseries to state pages * Move TimeSeriesTesting component inside TimeSeries * Fix NaN errors * Improv: Persist timeseries scale mode for state pages (covid19india#1539) * Feat: Toggle to show all districts in state page. (covid19india#1520) * Fix: Debounce input events on search in home page. (covid19india#1532) * Fix the issue of home page search bar blocking using debounce in react-hooks way * Clear the results after clearing the input * Added comment & changed timer * Changed comment * Changed timer * Added name export * Added in built debounce Co-authored-by: Chinmay Dalvi <chimay.dalvi@here.com> * Feat: Add breadcrumb navigation between state pages. (covid19india#1522) * Support dark mode palette Co-authored-by: karan.kiri <karankiri.96@gmail.com> * Fix: Debounce input events in essentials search. * Suggestion updates limited through debounce covid19india#1468 * Updated infinite scroll hasMore and endMessage * Improv: Adjust white balance of map in dark mode (covid19india#1548) * Fix: Remove extra whitespace * Fix: Tweak colours of testing timeseries chart to make it legible in dark mode * Style: Wrap timeseries with timeSeriesExplorer in state page. (covid19india#1550) * Style: Moved yesterday label in timeseries. * Fix: Maps not showing up on Firefox * Update claim.yml using sender username from context. remove env variable. * Update claim.yml * Refactor: Reuse TimeSeriesExplorer in state.js (covid19india#1568) - Code reduction in state.js using timeseriesexplorer - Changed things as requested * Fix: Remove extra div from state.js * Improv: Set two yBuffer values for timeseries. * Refactor: Removed yesterday label in timeseries. * Feat: Add positive indicator on state page. (covid19india#1561) * Style: Abstracted alert component. * Improv: Set height dynamically on district expansion. (covid19india#1555) * Style: Correct spelling of positive indicator in state. * Fix: Support box-shadow property in all browsers. (covid19india#1562) * Improv: Remove uniform scaling for testing charts. (covid19india#1565) * Remove rotation of axis labels * Fix: Make navbar responsive on window resize using hook. (covid19india#1512) * Improv: Redirect to homepage for invalid state params. (covid19india#1584) * Style: Add dark mode palette for select dropdown. (covid19india#1549) * Adjust height of select of date-picker to fit native select consistency * Removed !important from select styling * Style: Adjust CSS attribtutes - Saturate map colours and increase width of map on phone - Fix tested chart alert overlapping with pills - Fix Cluster colors in dark mode * Style: Add dark mode palette for switch. (covid19india#1552) * Fix: Remove arrow icon from total row. (covid19india#1534) * Feat: Add PWA Functionality. (covid19india#1542) * Refactor: Reword title tags and description. * Fix: Change path of thumbnail. * Improv: Hide view all button for states having less districts. (covid19india#1589) * Fix: Temporarily disable PWA. * Fix: Increase margin of map legend * Improv: Change testing numbers for India to reflect total samples tested * Style: Shift info icon to bottom right * add card labeller * Improv: Add SEO Schema markup and meta tags. (covid19india#1586) * Fix: Change max value of domain to fix y-axis of log scale (covid19india#1605) * Fix: Support search using keywords. (covid19india#1554) * Improv: Use preconnect tags to improve speed on slow networks. (covid19india#1615) * Style: Align essentials page. (covid19india#1435) * Style: Make dislaimer in TimerSeries look nice again. * Improv: Use 'prefers-color-scheme' query to set dark mode. (covid19india#1569) * Fix: Don't show date twice in updates. (covid19india#1622) * Refactor: Replace moment with date-fns. (covid19india#1581) * Fix: Use moment everywhere to handle dates * Fix: Don't use moment anywhere * Fix: Timezone conversion * Feat: Extend MapExplorer to show CPM (covid19india#1258) * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * Statewise heat-map based on Population density covid19india#1007 * densitymaps * Refactor: Remove redundant code * Improv: Update populations based on final 2011 Census count - Refer to http://censusindia.gov.in/DigitalLibrary/Archive_home.aspx * Improv: Switch to 2016 population projections * Fix: Add population data source * Fix: Show non-integer ticks in legend for per million * Improv: Add a disclaimer about population data * Fix: Revert to earlier code design * Improv: Replace population projections with 2019 values * Style: Tweak CSS; adjust flexbox attributes Co-authored-by: Ayush Shukla <shuklaayush247@gmail.com> * Feat: Add active, recovered, deceased to district table. (covid19india#1637) * Fix: Add sort arrow to district table recovered column. (covid19india#1677) * Feat: Add d3 transitions to map (covid19india#1683) * Refactor: Use d3 selction joins to plot map * Style: Add d3 transitions to map strokes * Feat: Add transitions to map legend * Improv: Rerender only when map changes * Fix: Update district names to common/local names. (covid19india#1704) Co-authored-by: guneetnarula <guneetnarula@sputznik.com> * Update Kutch in gujrat.json * Feat: Add daily testing timeseries chart (covid19india#1676) * Feat: Add daily testing timeseries * Style: Fix daily tested graph colours * Style: Increase visibility of tooltip in DeepDive (covid19india#1463) * navbar icon made clickable * changes to remove img-link class * tooltip fixes for states-growth trend * tooltip appearance changes for patients by nationality graph * Fix : Update Jalore district name in Rajasthan * Fix : Saraikela-Kharsawan district spelling * Improv: Reduce states. * Refactor: Memoize static children components. * Refactor: Break down row component. * Improv: Add intersection observer in Home. * Feat: Add district level zones. * Feat: Add sorting info to local storage. * Test: Rewrite specs after performance optimization. (covid19india#1737) * Fix: Use deceased instead of deaths for districts. * Fix: Abbreviate headers instead of stripping vowels. * Fix: Sort tables descending by default. * Improv: Add support for lazy loading & code splitting. (covid19india#1653) * Fix: Get rid of extra render on state pages * Fix: Ensure all resources are loaded before rendering MapExplorer * Fix: Remove text from lazy loader. * Fix: Add string comparison for state name sorting. (covid19india#1749) * Refactor: Use consistent district table sorting. * Feat: Close patient modal by escape button. (covid19india#1742) * Style: Disable expand switch for zero cases in demographics. (covid19india#1754) * Feat: Add statistics section in state page. #(1513) * Style: Add descriptions to statistics cards. * Feat: Auto suggest on search field. (covid19india#1656) * Fix : Purba and Paschim Medinipur. Closes covid19india#1767 * Fix: Remove intersection observer. * Feat: Add containment zones to map (covid19india#1712) * Add district maps for whole India * Feat: Add containment zones to map * Fix multiple districts highlighting across different states * Update district names * Add separate buttons to switch between state/district view * Revert to earlier buttons; fix percentages on tooltips * Fix map switching * Fix district names * Add state borders * Scale zone legend based on number of zones * Add transitions to zone legend * Improv: Use single map file for Indian states and districts * Refactor: Combine states which are updated concurrently * Refactor: Remove redundant states in MapExplorer * Improv: Remove test data state * Fix: District counts not showing up * Fix: Use single state for highlighting districts/states * Also fix India district map rendering * Fix multiple renders and crash * Add zones to state pages * Memoized breadcrumbs in state page. * Remove unnecessary undefined district value * Update timeseries only when it's in view * Used intersection observer to check if timeseries is in view * Fix synchronization issues * Fix nasty synchronization bug * Lighten colours of zone map * Fix map transitions * Add click to expand in India district view * Fix colours of district names in zone map * Colour district name text based on zone * Keep original colours for zone map in dark mode * Add intersection observer polyfill * Invert zone map colours in the middle of fill transition * Fix typo Co-authored-by: jeremyphilemon <jeremyphilemon@outlook.com> * Fix: Show India stats on boxes for zone map * Fix: Stop click propagation on tooltips (covid19india#1777) * stop propagation for all other tooltips * Revert "stop propagation for all other tooltips" This reverts commit cbd94e2. * stop propagation for all other tooltips * Feat: Support localization. (covid19india#1627) * Feat: Localization support. (covid19india#357) * Updated config and rendered LanguageSwitcher * Removed unused components * Disabled i18n debug for the production env * Enabled i18nNext saveMissing with a script to catch the results With `saveMissing` option enabled the i18nNext library sends POST request to the mentioned endpoint with the missing locales. We need this is because static parsers can not detect dynamic data we are receiving from APIs. During the development the server can be started using `node utility/missingLocaleServer.js` The server will write missing locales to `missing_locales.json` file" Then we need to replace public/locales/en.json file with missing_locales/json. The server is not directly editing public/locales/en.json file because the create-react-app then keeps restarting the app in the development * Locale changes - Renamed: public/locales/en.json -> public/locales/en_old.json - With utility/localeMissingServer.js gathered missing_locales.json - Copied missing_locales.json -> public/locales/en.json * Added useTranslation hook to Row.js * Add t to dependency array. * Added more t tags * Added t tags to menu entries * Add missing keys to en.json. * Translation tags for the right side of the page * Renamed missing_locales.json to all_locales.json * Translation tags for left side of page. * Resovled remaining conflicts * Removed the tag because i18next was throwing error * Created and used isDevelopmentOrTest function * Added missing tags in table * Added missing locales from all_locales.json Co-authored-by: Harsh Zalavadiya <harshzalavadiya@users.noreply.github.com> Co-authored-by: jeremyphilemon <jeremyphilemon@outlook.com> * Fix: Default to India stats on India zone map * Fix: Hide language switcher. * Style: Colour district names based on zone * Fix: Correct usage of hoveredRegion and panelRegion - Ensures testing data tooltip doesn't disappear * Feat: Add DNHDD map and state page * Fix: District borders not updating on map * Improv: Delete unused DNH topojson * Feat: Add bar graphs for other categories on state pages (covid19india#1626) * active, recovered graph * change of delta graph acc. to arraykey * render deltabargraph without animation * showing graph for -ve active cases * rounded border for -ve delta active case graph * removed happy-msg from recovered and active * changed stylling for deceased happy-msg * requested changes for memo and using state * break loop when -ve value found * Fix: Move labels above axis for negative valued bars * Feat: Add transitions to state bar graphs Co-authored-by: Ayush Shukla <shuklaayush247@gmail.com> * Improv: Delay rendering of map districts * Style: Remove district strokes from India zone map * Fix: Show unknown disclaimer on top of map * Feat: Tree-shake primer components (covid19india#1837) * Bump @primer components to v19.0.0 (intoduces tree-shaking) * Chore: Add more locale strings. * Fix: Change /faq to /about. * Chore: Update locale strings. * Fix: Bump demographics to use raw_data v3. * Fix: Prevent crash if timeseries object contains bad state * Refactor: Remove redundant code * Fix: Change link from /faq to /about in navbar (covid19india#1824) * fail link to faq, updated to about * Fix: Change faq page link Co-authored-by: Ayush Shukla <shuklaayush247@gmail.com> * Chore: Updated locales. * Refactor: Use district wise remote data for search. (covid19india#1875) * Fix: Resolve eslint errors. * Feat: Show zones for districts on search. (covid19india#1876) * Chore: Add Rollup to minify map files. (covid19india#1623) Added a task `compress_maps` which calls Rollup. This task is added in `build` task so that the maps are compressed on each deploy. * Refactor: Move intersection observer to TimeSeriesExplorer * Fix: Parse empty values as 0 while assigning colour * Fix: Parse NaN state data values as 0 in MapExplorer * Feat: Support 'cache then network' service worker. (covid19india#1829) * Migrate to latest v5 of workox * Define basic caching strategies for various file types * Remove unused sw.js file * Add js and css to precache * Revert: Support 'cache then network' service worker. (covid19india#1829) This reverts commit c63699a. * Docs: Update link to API. (covid19india#1889) * Feat: Show relevant essentials nearby. (covid19india#1872) * Feat: Restyle essentials page. (covid19india#1872) * Feat: Add content loader for essentials. (covid19india#1872) * Feat: Support raw data partitions in demographics. (covid19india#1899) * Fix: Correct typo in essentials disclaimer. * Feat: Add translations. (covid19india#1862) * Style: Position language switcher appropriately. (covid19india#1862) * Feat: Localize x-axis in timeseries. (covid19india#1862) * Style: Adjust margins of demographics page. * Docs: Update bug report template. * Style: Adjust width of Essentials. * Feat: Add deltas for all case types in state bar graph * Feat: Add district wise bubble map for India (covid19india#1900) * Add bubble map * Add bubble map legend * Fix overflowing of tabs below map * Add highlighting of bubbles * Cleanup choropleth code * Fix: Correct timeseries not updating on hover * Style: Fix alignment of Demographics for small screens. (covid19india#1902) * Fix: Add fallback for testing data source link * Refactor: Only parse the required fields in state test data * Fix: Correct deceased data not showing in state pages * Chore: Switch api endpoint for essentials. * Style: Hover only for non-touch devices. (covid19india#1908) * Refactor: Map through suggestions list. (covid19india#1905) Previously, the search component had the suggestions hard coded. Now, it has been refactored to hold the suggestions in an array and map through them, decreasing its LOC as well. * Fix: Remove blank element from state dropdown * Refactor: Move localization files to subfolder. * Feat: Support 'cache then network' service worker. (covid19india#1829)" * Migrate to latest v5 of workox * Define basic caching strategies for various file types * Remove unused sw.js file * Add js and css to precache * Style: Move timeseries top margin to parent container * Fix: Population hyperlink not working * Fix: Update API json regex to match cross-origin requests * Fix: Handle unassigned states. * Chore: Add locale strings. * set GA sampling rate to 1 * Chore: Set GA sampling rate to 1 * Fix: Correct delta percentage change formula (covid19india#1942) * Fix: Deprecate Network of Transmission chart * Style: Use vw for fonts in level. * Fix: Correct bubble map legend scale * Fix: Add newlines to update logs * Feat: Add featured suggestion for Amphan Cyclone. * Refactor: Disable zones view for map * Feat: Clean up essentials search on home. * Feat: Add loader for search on home. * Feat: Categorize PAN State/India entries. (covid19india#1914) * Feat: Categorize PAN State/India entries. * Style: Change divider color. Co-authored-by: jeremyphilemon <jeremyphilemon@outlook.com> * Fix : Update Sikkim district names * Refactor: Drop support for zones. * Fix: Update Sikkim district names in india.json * Feat: Blog Co-authored-by: Kartikey Tanna <tannakartikey@gmail.com> Co-authored-by: Tarun Goel <tarun@grofers.com> Co-authored-by: Rahul Nayak <rahulnk521@gmail.com> Co-authored-by: shubham jain <jains1801@gmail.com> Co-authored-by: Chaitanya <yourchaitu@gmail.com> Co-authored-by: Jeremy <jeremyphilemon@outlook.com> Co-authored-by: Ayush Shukla <shuklaayush247@gmail.com> Co-authored-by: Dhruv Patel <dhruvkumar.patel@sema4genomics.com> Co-authored-by: Kousik Satish <kousiksatish@gmail.com> Co-authored-by: Ali Solanki <alisolanki123@gmail.com> Co-authored-by: Avneesh Gupta <avneesh156@gmail.com> Co-authored-by: lakshmi14 <lakshmi.shweta@gmail.com> Co-authored-by: gyanendrapatro <gyanendrapatro02@gmail.com> Co-authored-by: Jaibatrik Dutta <jaibatrik@gmail.com> Co-authored-by: Vishwa Chikate <vishwa.chikate@gmail.com> Co-authored-by: vandanachandola <vandana.chandola@gmail.com> Co-authored-by: Binu42 <kbinu42@gmail.com> Co-authored-by: Abdul Ghani <hackerghani007@gmail.com> Co-authored-by: Abdul Ghani <abdul.ghani@volteo.com> Co-authored-by: Ashish <ashishajr@gmail.com> Co-authored-by: Kautilya <kautilyasave@gmail.com> Co-authored-by: Shubham Kanodia <shubham.kanodia10@gmail.com> Co-authored-by: Arun Babu <arun.aspirant@gmail.com> Co-authored-by: Nitish Kumar Singh <nitishk72@gmail.com> Co-authored-by: Binu kumar <45959932+Binu42@users.noreply.github.com> Co-authored-by: nikita-11 <42666302+nikita-11@users.noreply.github.com> Co-authored-by: Samyak Mehta <sammehta@cimpress.com> Co-authored-by: Gaurav Bhagwanani <gaurav.bhagwanani@gmail.com> Co-authored-by: Aswaath Balasubramanian <aswaathb@gmail.com> Co-authored-by: samyakmehta <samyakmehta007@gmail.com> Co-authored-by: Aman Kulkarni <akulkarni@cimpress.com> Co-authored-by: Ashwin Kumar <ashwin06k@gmail.com> Co-authored-by: Abhishek K <abhishekakade@gmail.com> Co-authored-by: Krishna Pravin <krishnapravin1@gmail.com> Co-authored-by: Aniket Kaulavkar <aniket.kaulavkar@gmail.com> Co-authored-by: Jun <junaidvayoli@gmail.com> Co-authored-by: Abhinav Mani <abhinav1946@gmail.com> Co-authored-by: Aishwarya Mittal <aishwaryamittal2011@gmail.com> Co-authored-by: kousiksatish <kousiksatish@users.noreply.github.com> Co-authored-by: Chinmay Dalvi <chinmaydalvi94@gmail.com> Co-authored-by: Chinmay Dalvi <chimay.dalvi@here.com> Co-authored-by: karan kiri <karan.kiri@rebelfoods.co> Co-authored-by: karan.kiri <karankiri.96@gmail.com> Co-authored-by: Rahul Ravindran <rahulravindran2605@gmail.com> Co-authored-by: Sudhanshu <perfectsudh@gmail.com> Co-authored-by: Raj Kapadia <rajkapadia247@gmail.com> Co-authored-by: Kartik <kartikv20@gmail.com> Co-authored-by: nishcthulhu <nishthedevil@gmail.com> Co-authored-by: guneetnarula <guneetnarula@sputznik.com> Co-authored-by: Sudev <sudevschiz@users.noreply.github.com> Co-authored-by: Prashant Jain <prashantjain.pro@gmail.com> Co-authored-by: Suyog <itssuyog96@gmail.com> Co-authored-by: sudevschiz <> Co-authored-by: Harsh Zalavadiya <harshzalavadiya@users.noreply.github.com> Co-authored-by: Nitin Patel <nitinpatel278@gmail.com> Co-authored-by: RItesh Bucha <60898953+bucharitesh@users.noreply.github.com> Co-authored-by: bee-rickey <63364562+bee-rickey@users.noreply.github.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
Relevant Issues
Fixes #1421
Checklist
Screenshots
![Screenshot from 2020-04-26 02-55-16](https://user-images.githubusercontent.com/45959932/80291224-8facbe00-8769-11ea-883d-617745e76b78.png)
![Screenshot from 2020-04-26 03-14-34](https://user-images.githubusercontent.com/45959932/80291553-1ebad580-876c-11ea-84c0-b1690b66d1a3.png)
Before
After fix