feat(FN-1450): Add companies.sh catalog browse mode for agent import
- Add backend API routes for companies.sh catalog with pagination and search - Wire frontend API client with browse mode endpoints (search, list agents) - Build Agent Import modal with tabbed interface (URL input + browse mode) - Add browse mode styling with search results grid and agent cards - Include UI and route test coverage for browse flow - Update in-UI help text with browse mode usage instructions
This commit is contained in:
@@ -25264,6 +25264,163 @@ html .column.drag-over * {
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
/* Agent Import Browse Mode */
|
||||
.agent-import-browse {
|
||||
margin-bottom: var(--space-md);
|
||||
}
|
||||
|
||||
.agent-import-browse-header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
margin-bottom: var(--space-md);
|
||||
}
|
||||
|
||||
.agent-import-browse-search {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.agent-import-browse-search-icon {
|
||||
position: absolute;
|
||||
left: var(--space-sm);
|
||||
color: var(--text-muted);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.agent-import-browse-search-input {
|
||||
width: 100%;
|
||||
padding: var(--space-sm) var(--space-sm) var(--space-sm) calc(var(--space-sm) + 20px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface-elevated);
|
||||
color: var(--text);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.agent-import-browse-search-input:focus {
|
||||
outline: none;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.agent-import-browse-selected {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
padding: var(--space-sm);
|
||||
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.agent-import-browse-selected-label {
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.agent-import-browse-selected-name {
|
||||
flex: 1;
|
||||
font-weight: 500;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.agent-import-browse-loading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-sm);
|
||||
padding: var(--space-xl) 0;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.agent-import-browse-error {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
padding: var(--space-md);
|
||||
background: color-mix(in srgb, var(--state-error-text) 8%, transparent);
|
||||
border-radius: var(--radius);
|
||||
color: var(--state-error-text);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.agent-import-browse-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs);
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.agent-import-browse-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
padding: var(--space-sm);
|
||||
cursor: pointer;
|
||||
border-bottom: 1px solid var(--border);
|
||||
transition: background-color 0.15s ease;
|
||||
}
|
||||
|
||||
.agent-import-browse-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.agent-import-browse-item:hover {
|
||||
background: var(--surface-hover);
|
||||
}
|
||||
|
||||
.agent-import-browse-item:focus {
|
||||
outline: none;
|
||||
background: var(--surface-hover);
|
||||
}
|
||||
|
||||
.agent-import-browse-item--selected {
|
||||
background: color-mix(in srgb, var(--accent) 10%, transparent);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
.agent-import-browse-item-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.agent-import-browse-item-name {
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.agent-import-browse-item-installs {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.agent-import-browse-item-tagline {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.agent-import-browse-item-repo {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.agent-import-browse-empty {
|
||||
padding: var(--space-lg);
|
||||
text-align: center;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* Agent controls actions row */
|
||||
.agent-controls-actions {
|
||||
display: flex;
|
||||
@@ -27042,6 +27199,10 @@ html .column.drag-over * {
|
||||
gap: var(--space-sm);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.agent-import-browse-list {
|
||||
max-height: 250px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
|
||||
Reference in New Issue
Block a user