Add Gitea remote info to CLAUDE.md; implement vendor integrations and remove FortiGate modules
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,10 +26,19 @@ export async function checkStatus() {
|
||||
const status = mapStatusCode(overall.status_code);
|
||||
|
||||
const incidents = result.incidents ?? [];
|
||||
let message;
|
||||
|
||||
if (incidents.length > 0) {
|
||||
message = incidents
|
||||
// Only surface incidents still being actively investigated or identified.
|
||||
// State 300 = Monitoring (fix deployed), 400 = Resolved — exclude both.
|
||||
const activeIncidents = incidents.filter((i) => {
|
||||
const messages = i.messages ?? [];
|
||||
if (messages.length === 0) return true;
|
||||
const latestState = messages[messages.length - 1].state;
|
||||
return latestState < 300;
|
||||
});
|
||||
|
||||
let message;
|
||||
if (activeIncidents.length > 0) {
|
||||
message = activeIncidents
|
||||
.map((i) => {
|
||||
const components = (i.containers_affected ?? [])
|
||||
.map((c) => c.name)
|
||||
|
||||
Reference in New Issue
Block a user