fix: harden stack label permissions (#1036)

* fix: harden stack label permissions

* fix: avoid test db init from debug logging
This commit is contained in:
Anso
2026-05-13 11:56:22 -04:00
committed by GitHub
parent 328a98439d
commit b52323036b
9 changed files with 295 additions and 27 deletions
@@ -73,4 +73,13 @@ describe('StackRow', () => {
expect(container.querySelector('.animate-spin')).not.toBeNull();
expect(screen.queryByText('UP')).not.toBeInTheDocument();
});
it('renders label indicators on community tier', () => {
const labels: Label[] = [
{ id: 1, node_id: 0, name: 'prod', color: 'teal' },
{ id: 2, node_id: 0, name: 'media', color: 'blue' },
];
const { container } = render(<StackRow {...base({ isPaid: false, labels })} />);
expect(container.querySelectorAll('[style*="--label-"]')).toHaveLength(2);
});
});