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
36 lines
990 B
JavaScript
36 lines
990 B
JavaScript
//.CommonJS
|
|
var CSSOM = {
|
|
CSSRule: require("./CSSRule").CSSRule,
|
|
CSSGroupingRule: require("./CSSGroupingRule").CSSGroupingRule,
|
|
CSSConditionRule: require("./CSSConditionRule").CSSConditionRule
|
|
};
|
|
///CommonJS
|
|
|
|
|
|
/**
|
|
* @constructor
|
|
* @see https://drafts.csswg.org/css-conditional-3/#the-csssupportsrule-interface
|
|
*/
|
|
CSSOM.CSSSupportsRule = function CSSSupportsRule() {
|
|
CSSOM.CSSConditionRule.call(this);
|
|
};
|
|
|
|
CSSOM.CSSSupportsRule.prototype = new CSSOM.CSSConditionRule();
|
|
CSSOM.CSSSupportsRule.prototype.constructor = CSSOM.CSSSupportsRule;
|
|
CSSOM.CSSSupportsRule.prototype.type = 12;
|
|
|
|
Object.defineProperty(CSSOM.CSSSupportsRule.prototype, "cssText", {
|
|
get: function() {
|
|
var cssTexts = [];
|
|
|
|
for (var i = 0, length = this.cssRules.length; i < length; i++) {
|
|
cssTexts.push(this.cssRules[i].cssText);
|
|
}
|
|
|
|
return "@supports " + this.conditionText + " {" + cssTexts.join("") + "}";
|
|
}
|
|
});
|
|
|
|
//.CommonJS
|
|
exports.CSSSupportsRule = CSSOM.CSSSupportsRule;
|
|
///CommonJS
|