feat(frontend): rules placeholder

This commit is contained in:
2025-12-06 13:36:17 +08:00
parent 55dd5f3722
commit 549d23fefe

View File

@@ -200,7 +200,13 @@ const RulesList: Component = () => {
<Show when={!rules.loading} fallback={ <Show when={!rules.loading} fallback={
<tr><td colspan="4" class="text-center py-4">Loading...</td></tr> <tr><td colspan="4" class="text-center py-4">Loading...</td></tr>
}> }>
<For each={rules()}> <For each={rules()} fallback={
<tr>
<td colspan="4" class="text-center py-8 text-gray-500">
No rules configured yet. Click "+ New Rule" to create one.
</td>
</tr>
}>
{(rule) => ( {(rule) => (
<tr> <tr>
<td class="px-6 py-4 text-sm font-medium text-gray-900"> <td class="px-6 py-4 text-sm font-medium text-gray-900">