threshold is opt-in now
This commit is contained in:
@@ -6,12 +6,15 @@ import { FounderStatistics, MultiplicatorsService } from '../api';
|
||||
* Founder-potential statistics for the dashboard (KPIs, funnel, career-stage
|
||||
* and research-area breakdowns). Re-resolved when the `threshold` query param
|
||||
* changes, so the shortlist counts always match the slider in the URL.
|
||||
*
|
||||
* The threshold is opt-in. When the param is absent there is no shortlist cut,
|
||||
* so 0 is used: every scored profile counts, matching the unfiltered list.
|
||||
*/
|
||||
export const founderStatisticsResolver: ResolveFn<FounderStatistics> = (
|
||||
route,
|
||||
) => {
|
||||
const service = inject(MultiplicatorsService);
|
||||
const threshold = toNumber(route.queryParamMap.get('threshold')) ?? 90;
|
||||
const threshold = toNumber(route.queryParamMap.get('threshold')) ?? 0;
|
||||
// Remaining cutoffs mirror the backend defaults; only the threshold is
|
||||
// exposed to the user for now.
|
||||
return service.getFounderStatistics(threshold, 7, 0.7, 40, 40);
|
||||
|
||||
Reference in New Issue
Block a user