Browse Source

reduce heat map bubbles to 10

imwald
Silberengel 1 month ago
parent
commit
7e3dc77ef4
  1. 6
      package-lock.json
  2. 2
      src/pages/primary/SpellsPage/RelayThreadHeatMap.tsx

6
package-lock.json generated

@ -10503,9 +10503,9 @@
} }
}, },
"node_modules/ip-address": { "node_modules/ip-address": {
"version": "10.1.0", "version": "10.2.0",
"resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.2.0.tgz",
"integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", "integrity": "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==",
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"engines": { "engines": {

2
src/pages/primary/SpellsPage/RelayThreadHeatMap.tsx

@ -36,7 +36,7 @@ import { useTranslation } from 'react-i18next'
const HEAT_WINDOW_SEC = 72 * 3600 const HEAT_WINDOW_SEC = 72 * 3600
/** REQ without `since`: many relays return nothing for kind 1+`since`; we clip by `created_at` client-side. */ /** REQ without `since`: many relays return nothing for kind 1+`since`; we clip by `created_at` client-side. */
const HEAT_REQ_LIMIT = 1500 const HEAT_REQ_LIMIT = 1500
const MAX_BUBBLES = 48 const MAX_BUBBLES = 10
const SESSION_HEAT_LIMIT = 2500 const SESSION_HEAT_LIMIT = 2500
/** Cap rows scanned so the heat map stays responsive on large archives. */ /** Cap rows scanned so the heat map stays responsive on large archives. */
const ARCHIVE_HEAT_MAX_SCAN = 30_000 const ARCHIVE_HEAT_MAX_SCAN = 30_000

Loading…
Cancel
Save