Skip to content

Commit 207a291

Browse files
committed
Add 8-hour lookback option for pop changes page
* Use more standardized timezone on the barometer page that is supported by more browsers * Don't lazy-load the homepage
1 parent b2e5127 commit 207a291

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
"production": [
5656
">0.2%",
5757
"not dead",
58-
"not op_mini all"
58+
"not op_mini all",
59+
"safari >= 13"
5960
],
6061
"development": [
6162
"last 1 chrome version",

frontend/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { backgroundColor } from 'src/style';
1313
import Footer from 'src/components/Footer';
1414
import PageTracker from 'src/components/PageTracker';
1515
import Loading from 'src/components/Loading';
16+
import Home from 'src/screens/Home';
1617

17-
const Home = React.lazy(() => import('src/screens/Home'));
1818
const Leaderboard = React.lazy(() => import('src/screens/Leaderboard'));
1919
const SymbolDetails = React.lazy(() => import('src/screens/SymbolDetails'));
2020
const PopularityChanges = React.lazy(() => import('src/screens/PopularityChanges'));

frontend/src/screens/Barometer/Timeseries.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const fmtr = new Intl.DateTimeFormat('en-GB', {
2020
year: 'numeric',
2121
day: 'numeric',
2222
month: 'numeric',
23-
timeZone: 'US/Eastern',
23+
timeZone: 'America/New_York',
2424
});
2525
const formatDate = (input: string | null | Date) => {
2626
if (!input) {

frontend/src/screens/PopularityChanges.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ const Setting = withMobileProp({ maxDeviceWidth: 600 })(({ label, style = {}, fl
114114
const lookbackOptionLabels = {
115115
1: '~1-2 Hours',
116116
4: '4 Hours',
117+
8: '8 Hours',
117118
24: '24 Hours',
118119
[24 * 3]: '3 Days',
119120
[24 * 7]: '1 Week',
@@ -201,7 +202,7 @@ export const fetchPopularityChangesData = ({ config, requestLargestPopularityCha
201202
startIndex: config.startIndex || 0,
202203
});
203204

204-
const fetchAllData = ({ requestTotalSymbols, totalSymbols, selectedSymbol, ...props }, cb) => {
205+
const fetchAllData = ({ requestTotalSymbols, totalSymbols, selectedSymbol, ...props }) => {
205206
fetchPopularityChangesData(props);
206207

207208
R.isNil(totalSymbols) && requestTotalSymbols();

0 commit comments

Comments
 (0)