[Developer] #424 add loading state for LLM explanation

This commit is contained in:
devmrko
2026-06-25 13:35:52 +09:00
parent f1e20f2769
commit edf20f10b8
2 changed files with 49 additions and 3 deletions

View File

@@ -72,13 +72,20 @@
<span class="ms-2">Long: <strong th:text="${policy.longPredicate()}">NO</strong></span>
</td>
<td>
<button class="btn btn-sm rw-btn-primary"
<div class="action-stack">
<button class="btn btn-sm rw-btn-primary"
type="button"
th:hx-get="@{/vpd-policies/policy-explanation(objectOwner=${policy.objectOwner()},objectName=${policy.objectName()},policyName=${policy.policyName()})}"
th:hx-target="${'#policy-source-' + iter.index}"
th:hx-indicator="${'#policy-loading-' + iter.index}"
hx-swap="innerHTML">
LLM 설명
</button>
LLM 설명
</button>
<span th:id="${'policy-loading-' + iter.index}" class="htmx-indicator loading-pill">
<span class="loading-spinner" aria-hidden="true"></span>
분석 중
</span>
</div>
</td>
</tr>
<tr>