feat(ui): Credentials + OpenWrtGateway render from cached resources — B4 complete
Demo images / Build & push demo images (push) Failing after 2m10s
Demo images / Build & push demo images (push) Failing after 2m10s
- Credentials: identity.list + identity.list-credentials become useCachedResource entries; explicit reloads still toast on failure. - OpenWrtGateway: openwrt.get-status caches in the shared store (revisits paint the last router state instantly); the connect flow's params/No-router-configured semantics are preserved on top of the entry. - ContainerApps assessed and left as-is: its Pinia store already persists across navigation, keeps last data on error, and gates the spinner on empty — same class as Apps/Marketplace/Fleet. This closes the B4 rollout list from docs/FIPS-UPTIME-AND-UI-STATE-PLAN.md. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
8fd72b947a
commit
8907cc47d9
@@ -1,5 +1,6 @@
|
||||
import { flushPromises, mount } from '@vue/test-utils'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { createPinia } from 'pinia'
|
||||
import Credentials from '../Credentials.vue'
|
||||
import { rpcClient } from '@/api/rpc-client'
|
||||
|
||||
@@ -42,6 +43,8 @@ describe('Credentials', () => {
|
||||
|
||||
const wrapper = mount(Credentials, {
|
||||
global: {
|
||||
// The cached-resource layer pulls the Pinia resources store in setup.
|
||||
plugins: [createPinia()],
|
||||
mocks: {
|
||||
$router: { push: vi.fn() },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user