fix: restore scrolling and validator enforcement
ForgeFlow quality gate / quality (push) Canceled after 0s
ForgeFlow quality gate / quality (push) Canceled after 0s
This commit is contained in:
@@ -461,13 +461,15 @@ function createMockDeploymentBridge(context) {
|
||||
},
|
||||
async gitValidatorScan(fullName) {
|
||||
await wait(260);
|
||||
const policy = state.gitValidatorPolicy || { id: "standard", label: "Standard", requiredScore: 70 };
|
||||
const activeWarnings = 3;
|
||||
return {
|
||||
repository: fullName,
|
||||
checkedAt: iso(),
|
||||
score: 78,
|
||||
grade: "Good",
|
||||
policy: state.gitValidatorPolicy || { id: "standard", label: "Standard", requiredScore: 70 },
|
||||
ready: true,
|
||||
policy,
|
||||
ready: 78 >= policy.requiredScore && (policy.id === "minimal" || activeWarnings === 0),
|
||||
commitSha: "8cbaf303aa3bb9b4023a7c89aa13fb70ce612847",
|
||||
trend: { newlyFound: ["working-tree"], resolved: ["editorconfig"], regressions: [], suppressions: [] },
|
||||
expiredSuppressions: [],
|
||||
@@ -572,7 +574,12 @@ function createMockDeploymentBridge(context) {
|
||||
};
|
||||
},
|
||||
async gitValidatorSetPolicy(_fullName, policy) {
|
||||
state.gitValidatorPolicy = { id: policy.id, label: policy.id[0].toUpperCase() + policy.id.slice(1) };
|
||||
const requiredScores = { minimal: 55, standard: 70, strict: 82, production: 90 };
|
||||
state.gitValidatorPolicy = {
|
||||
id: policy.id,
|
||||
label: policy.id[0].toUpperCase() + policy.id.slice(1),
|
||||
requiredScore: requiredScores[policy.id] || 70,
|
||||
};
|
||||
return clone(state.gitValidatorPolicy);
|
||||
},
|
||||
async gitValidatorSuppress(_fullName, suppression) {
|
||||
|
||||
+17
-3
@@ -937,6 +937,21 @@ select:focus-visible {
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.repo-content > .tab-page,
|
||||
.repo-content > .validator-page {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
.repo-content > .validator-empty,
|
||||
.repo-content > .empty-state {
|
||||
max-height: 100%;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
.changes-layout {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
@@ -1286,7 +1301,7 @@ html[data-theme="light"] .diff-line.remove {
|
||||
padding: 18px;
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
overflow: auto;
|
||||
align-content: start;
|
||||
}
|
||||
.validator-empty {
|
||||
min-height: 360px;
|
||||
@@ -2572,9 +2587,8 @@ kbd {
|
||||
font: 11px var(--font-mono);
|
||||
}
|
||||
.tab-page {
|
||||
min-height: 100%;
|
||||
min-height: 0;
|
||||
padding: 18px 19px 42px;
|
||||
overflow: auto;
|
||||
}
|
||||
.git-tools-grid {
|
||||
display: grid;
|
||||
|
||||
Reference in New Issue
Block a user