| 1 | using AgentForge.Abstractions; |
| 2 | using AgentForge.Contracts; |
| 3 | using AgentForge.Plugin.View; |
| 4 | using AgentForge.Plugin.View.Components.Layout; |
| 5 | |
| 6 | namespace AgentForge.Plugin.Org.Web.Components; |
| 7 | |
| 8 | internal static class ForgeViewOrgUngroupedNode |
| 9 | { |
| 10 | internal static string Render( |
| 11 | IReadOnlyList<RepoResponse> repos, |
| 12 | IForgeOrgCatalogGrouping? grouping, |
| 13 | in ForgeOrgCatalogViewContext groupingContext) |
| 14 | { |
| 15 | var summary = ForgeHtml.Fragment( |
| 16 | ForgeHtml.Strong("Ungrouped"), |
| 17 | ForgeHtml.Text(" "), |
| 18 | ForgeHtml.Span("meta", ForgeHtml.Text($"{repos.Count} repos"))); |
| 19 | |
| 20 | var body = ForgeViewOrgRepoList.RenderBody(repos, grouping, groupingContext); |
| 21 | var details = ForgeViewDisclosure.Render( |
| 22 | summary, |
| 23 | body, |
| 24 | open: false, |
| 25 | "org-group-details", |
| 26 | "org-group-head"); |
| 27 | |
| 28 | return ForgeHtml.Li(null, details); |
| 29 | } |
| 30 | } |
| 31 | |
View only · write via MCP/CIDE