+ai update

This commit is contained in:
2026-02-26 17:54:23 +03:00
parent f4612c0737
commit 4ff6d307f8
14 changed files with 97 additions and 409 deletions

View File

@@ -5,7 +5,7 @@
* @PURPOSE: Dashboard Hub - Central hub for managing dashboards with Git status and task actions
* @LAYER: UI
* @RELATION: BINDS_TO -> sidebarStore, taskDrawerStore
* @INVARIANT: Always shows environment selector and dashboard grid
* @INVARIANT: Always shows dashboards for the active environment from context store
*
* @UX_STATE: Loading -> Shows skeleton loader
* @UX_STATE: Loaded -> Shows dashboard grid with status badges
@@ -29,7 +29,6 @@
import {
environmentContextStore,
initializeEnvironmentContext,
setSelectedEnvironment,
} from "$lib/stores/environmentContext.js";
// State
@@ -160,15 +159,6 @@
}
}
// Handle environment change
function handleEnvChange(event) {
selectedEnv = event.target.value;
setSelectedEnvironment(selectedEnv);
currentPage = 1;
selectedIds.clear();
loadDashboards();
}
// Handle search input
function handleSearch(event) {
debouncedSearch(event.target.value);
@@ -724,15 +714,6 @@
{$t.nav?.dashboards }
</h1>
<div class="flex items-center space-x-4">
<select
class="px-4 py-2 border border-gray-300 rounded-lg bg-white focus:outline-none focus:ring-2 focus:ring-blue-500"
bind:value={selectedEnv}
on:change={handleEnvChange}
>
{#each environments as env}
<option value={env.id}>{env.name}</option>
{/each}
</select>
<button
class="inline-flex items-center justify-center rounded-lg bg-primary px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-primary-hover"
on:click={loadDashboards}