mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-23 23:37:05 +00:00
Add per-scope availability, duplication, active-profile status, and inline project selection while keeping the profile switcher synchronized with runtime state. Reconcile unavailable profiles at explicit disable, deletion, project-transition, and context-creation boundaries; polish validation, prompt layout, deletion, and completion states; and extend focused backend and WebUI coverage.
39 lines
1.2 KiB
HTML
39 lines
1.2 KiB
HTML
<script type="module">
|
|
import { store } from "/plugins/_agent_editor/webui/agent-editor-store.js";
|
|
</script>
|
|
|
|
<div x-data x-show="$store.agentEditor?.readyNoteVisible()" class="agent-ready-note" role="status" style="display:none">
|
|
<x-icon name="celebration" aria-hidden="true"></x-icon>
|
|
<span>Your agent is ready. You can refine it anytime from Edit agent.</span>
|
|
<button type="button" class="agent-ready-dismiss" aria-label="Dismiss agent ready note" @click="$store.agentEditor.dismissReadyNote()"><x-icon name="close"></x-icon></button>
|
|
</div>
|
|
|
|
<style>
|
|
.agent-ready-note {
|
|
display:flex;
|
|
align-items:center;
|
|
gap:.5rem;
|
|
width:min(100%,46rem);
|
|
margin:.25rem auto .45rem;
|
|
padding:.55rem .7rem;
|
|
border:1px solid color-mix(in srgb,var(--color-accent) 45%,var(--color-border));
|
|
border-radius:9px;
|
|
background:color-mix(in srgb,var(--color-accent) 8%,var(--color-panel));
|
|
color:var(--color-text);
|
|
font-size:.82rem;
|
|
}
|
|
.agent-ready-note > span { flex:1; }
|
|
.agent-ready-dismiss {
|
|
display:grid;
|
|
flex:0 0 2rem;
|
|
height:2rem;
|
|
place-items:center;
|
|
padding:0;
|
|
border:0;
|
|
background:transparent;
|
|
color:inherit;
|
|
cursor:pointer;
|
|
opacity:.75;
|
|
}
|
|
.agent-ready-dismiss:hover { opacity:1; }
|
|
</style>
|