|
|
|
|
@@ -4,7 +4,7 @@
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
<title>Admin Operations Center</title>
|
|
|
|
|
<link rel="stylesheet" href="/style.css?v=10" />
|
|
|
|
|
<link rel="stylesheet" href="/style.css?v=12" />
|
|
|
|
|
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
|
|
|
|
<script src="https://alcdn.msauth.net/browser/2.37.0/js/msal-browser.min.js" crossorigin="anonymous"></script>
|
|
|
|
|
</head>
|
|
|
|
|
@@ -305,7 +305,7 @@
|
|
|
|
|
accessToken: null,
|
|
|
|
|
authScopes: [],
|
|
|
|
|
filters: {
|
|
|
|
|
actor: '', selectedServices: [], search: '', operation: '', result: '', start: '', end: '', limit: 25, includeTags: '', excludeTags: '',
|
|
|
|
|
actor: '', selectedServices: [], search: '', operation: '', result: '', start: '', end: '', limit: 24, includeTags: '', excludeTags: '',
|
|
|
|
|
},
|
|
|
|
|
options: { actors: [], services: [], operations: [], results: [] },
|
|
|
|
|
savedSearches: [],
|
|
|
|
|
@@ -398,6 +398,8 @@
|
|
|
|
|
this.aiFeaturesEnabled = featBody.ai_features_enabled !== false;
|
|
|
|
|
if (featBody.default_page_size) {
|
|
|
|
|
this.filters.limit = featBody.default_page_size;
|
|
|
|
|
} else {
|
|
|
|
|
this.filters.limit = 24;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.aiFeaturesEnabled = true;
|
|
|
|
|
@@ -567,9 +569,8 @@
|
|
|
|
|
|
|
|
|
|
const saved = localStorage.getItem('aoc_filters');
|
|
|
|
|
if (!saved && this.options.services.length) {
|
|
|
|
|
// Default: exclude noisy high-volume services
|
|
|
|
|
const noisy = ['Exchange', 'SharePoint', 'Teams'];
|
|
|
|
|
this.filters.selectedServices = this.options.services.filter((s) => !noisy.includes(s));
|
|
|
|
|
// Default: show all services (privacy controls handle exclusions server-side)
|
|
|
|
|
this.filters.selectedServices = [...this.options.services];
|
|
|
|
|
} else if (saved) {
|
|
|
|
|
try {
|
|
|
|
|
const parsed = JSON.parse(saved);
|
|
|
|
|
@@ -663,8 +664,7 @@
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
clearFilters() {
|
|
|
|
|
const noisy = ['Exchange', 'SharePoint', 'Teams'];
|
|
|
|
|
this.filters = { actor: '', selectedServices: this.options.services.filter((s) => !noisy.includes(s)), search: '', operation: '', result: '', start: '', end: '', limit: 25, includeTags: '', excludeTags: '' };
|
|
|
|
|
this.filters = { actor: '', selectedServices: [...this.options.services], search: '', operation: '', result: '', start: '', end: '', limit: 24, includeTags: '', excludeTags: '' };
|
|
|
|
|
this.saveFilters();
|
|
|
|
|
this.resetPagination();
|
|
|
|
|
this.loadEvents();
|
|
|
|
|
@@ -672,11 +672,7 @@
|
|
|
|
|
|
|
|
|
|
filterByService(service) {
|
|
|
|
|
if (!service) return;
|
|
|
|
|
if (!this.filters.selectedServices.includes(service)) {
|
|
|
|
|
this.filters.selectedServices = [service];
|
|
|
|
|
} else {
|
|
|
|
|
this.filters.selectedServices = this.filters.selectedServices.filter((s) => s !== service);
|
|
|
|
|
}
|
|
|
|
|
this.filters.selectedServices = [service];
|
|
|
|
|
this.saveFilters();
|
|
|
|
|
this.resetPagination();
|
|
|
|
|
this.loadEvents();
|
|
|
|
|
|