Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(marketplace): remove download counts
Miguelon Peluchon5084b1d3755e
diff --git a/control-ui/app/globals.css b/control-ui/app/globals.cssindex 3dfb3325f..3c89539b2 100644--- a/control-ui/app/globals.css+++ b/control-ui/app/globals.css@@ -2375,7 +2375,7 @@ textarea.cu-input {}.cu-marketplace-table {- min-width: 68rem;+ min-width: 60rem;--cu-expandable-inset-left: calc(3rem + 0.85rem);--cu-expandable-inset-right: 4.75rem;}@@ -2391,24 +2391,17 @@ textarea.cu-input {}.cu-marketplace-table th:nth-child(4),-.cu-marketplace-table td:nth-child(4),-.cu-marketplace-table th:nth-child(5),-.cu-marketplace-table td:nth-child(5) {+.cu-marketplace-table td:nth-child(4) {width: 8rem;}-.cu-marketplace-table th:nth-child(6),-.cu-marketplace-table td:nth-child(6) {+.cu-marketplace-table th:nth-child(5),+.cu-marketplace-table td:nth-child(5) {width: 7rem;}-.cu-marketplace-table th:nth-child(7),-.cu-marketplace-table td:nth-child(7) {- width: 5.25rem;-}--.cu-marketplace-table th:nth-child(8),-.cu-marketplace-table td:nth-child(8) {+.cu-marketplace-table th:nth-child(6),+.cu-marketplace-table td:nth-child(6) {width: 4.75rem;}@@ -2430,16 +2423,16 @@ textarea.cu-input {padding-left: 0.15rem;}-.cu-marketplace-table td:nth-child(7) {+.cu-marketplace-table td:nth-child(5) {text-align: center;}-.cu-marketplace-table td:nth-child(7) .cu-btn {+.cu-marketplace-table td:nth-child(5) .cu-btn {max-width: 100%;padding-inline: var(--cu-space-1);}-.cu-marketplace-table td:nth-child(8) {+.cu-marketplace-table td:nth-child(6) {text-align: left;}diff --git a/control-ui/components/RegistryCatalog.tsx b/control-ui/components/RegistryCatalog.tsxindex b2c4e2548..6038ccefe 100644--- a/control-ui/components/RegistryCatalog.tsx+++ b/control-ui/components/RegistryCatalog.tsx@@ -31,7 +31,6 @@ const REGISTRY_COLUMNS: TableHeaderColumn[] = [{ key: 'name', label: 'Name' },{ key: 'version', label: 'Version' },{ key: 'visibility', label: 'Visibility' },- { key: 'downloads', label: 'Downloads' },{ key: 'install', align: 'right', ariaLabel: 'Installation' },{ key: 'actions', align: 'right', ariaLabel: 'Edit or remove' },]@@ -409,7 +408,6 @@ export default function RegistryCatalog() {<span className="cu-muted">—</span>)}</td>- <td>{entry.downloads}</td><tdclassName="cu-table__cell-actions cu-marketplace-action-cell"onClick={event => event.stopPropagation()}diff --git a/control-ui/components/__tests__/RegistryCatalog.test.tsx b/control-ui/components/__tests__/RegistryCatalog.test.tsxindex 35fde9b86..4d223ea1f 100644--- a/control-ui/components/__tests__/RegistryCatalog.test.tsx+++ b/control-ui/components/__tests__/RegistryCatalog.test.tsx@@ -156,14 +156,14 @@ describe('RegistryCatalog tabs and columns', () => {render(<RegistryCatalog />)await screen.findByText('brave-search')- for (const heading of ['Name', 'Version', 'Visibility', 'Downloads']) {+ for (const heading of ['Name', 'Version', 'Visibility']) {expect(screen.getByRole('columnheader', { name: heading })).toBeInTheDocument()}for (const actionHeading of ['Installation', 'Edit or remove']) {expect(screen.getByRole('columnheader', { name: actionHeading })).toBeInTheDocument()}expect(screen.queryByRole('columnheader', { name: 'View details' })).not.toBeInTheDocument()- for (const removed of ['Type', 'Category', 'Trust', 'Quality']) {+ for (const removed of ['Type', 'Category', 'Trust', 'Quality', 'Downloads']) {expect(screen.queryByRole('columnheader', { name: removed })).not.toBeInTheDocument()}})