swarm ui: agents page opens an agent's details beside the list
Selecting an agent card opens its details in a column on the right of the agents list, at /agents/<name>, instead of unfolding the card in place. The list is full width until an agent is selected, then narrows and the details slide in. A narrow screen shows the details alone, with a back button. A card's message is cut to one line. The shell treats /agents/<name> as the agents page, so the nav tab stays lit and the page is not rebuilt on each selection.
This commit is contained in:
parent
2d3da56907
commit
7bdaea7954
1 changed files with 494 additions and 154 deletions
|
|
@ -54,7 +54,8 @@ export function App() {
|
|||
<MovedTo from={from} />
|
||||
</Route>
|
||||
))}
|
||||
<Route path="/agents" component={AgentsPage} />
|
||||
{/* `/agents/:name` is the same page with that agent selected. */}
|
||||
<Route path="/agents/:name?" component={AgentsPage} />
|
||||
<Route path="/agents/group/:id" component={AgentGroupPage} />
|
||||
<Route path="/agents/:name/terminal" component={AgentTerminalPage} />
|
||||
<Route
|
||||
|
|
|
|||
Loading…
Reference in a new issue