Detects when user changes same config setting 3+ times within 24 hours. Shows non-intrusive prompt offering help with guided calibration flow. Guided calibration features: - Test for false positives (walk around room) - Test for missed motion (sit still) - Suggest optimal value based on diurnal baseline SNR and link health - Apply suggested value button Files: - dashboard/js/proactive.js: Complete implementation with localStorage tracking Acceptance: - Help prompt fires after 3+ changes in 24h - Calibration flow tests both directions - Suggests value based on system data - Apply button works
23 lines
665 B
TypeScript
23 lines
665 B
TypeScript
type GeneratedColumn = number;
|
|
type SourcesIndex = number;
|
|
type SourceLine = number;
|
|
type SourceColumn = number;
|
|
type NamesIndex = number;
|
|
|
|
type GeneratedLine = number;
|
|
|
|
export type SourceMapSegment =
|
|
| [GeneratedColumn]
|
|
| [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn]
|
|
| [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
|
|
|
export type ReverseSegment = [SourceColumn, GeneratedLine, GeneratedColumn];
|
|
|
|
export const COLUMN = 0;
|
|
export const SOURCES_INDEX = 1;
|
|
export const SOURCE_LINE = 2;
|
|
export const SOURCE_COLUMN = 3;
|
|
export const NAMES_INDEX = 4;
|
|
|
|
export const REV_GENERATED_LINE = 1;
|
|
export const REV_GENERATED_COLUMN = 2;
|