feat(ui): simplify fleet cards by moving edit/delete into detail

Hide instance IDs and config/delete controls on overview cards; keep
service/system restart only, with edit still available from detail.
This commit is contained in:
chick
2026-07-22 00:20:32 +08:00
parent 3c7018a792
commit bbd94b5672
6 changed files with 21 additions and 161 deletions
@@ -60,6 +60,9 @@ describe('InstanceDetail', () => {
expect(screen.getByText('已认证')).toBeTruthy();
expect(screen.getByText('数据最新')).toBeTruthy();
expect(links.map((link) => link.textContent)).toEqual(['仪表盘', '短信']);
expect(screen.getByRole('link', { name: '编辑实例' }).getAttribute('href')).toBe(
'/settings/instances/owner',
);
});
it('uses the business titles for both primary pages', () => {