mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
* refactor(ui): colocate agents and guardrails views, keeping shared selectors and types The last two group-1 colocation splits. Both are file-plus-folder combos: the page view is a top-level file (agents.tsx / guardrails.tsx) sitting beside a supporting folder of the same name, and part of that folder is shared. agents: agents/types (imported by the agents hook) stays in @/components/agents; agents.tsx and the rest of the agents/ folder move into agents/_components (the view file becomes _components/index.tsx). guardrails: GuardrailSelector (imported by the Playground, the key edit view, and the agents add-guardrail form) and types stay in @/components/guardrails; guardrails.tsx and the other 47 folder files (including the tool_permission, custom_code, content_filter, and llm_judge subfolders) move into guardrails/_components. Moved files' imports of the retained shared files become @/components paths, other escaping relative imports are absolutized against @/, and moved test files have their from/vi.mock/vi.importActual paths rewritten to match. Lint suppressions are re-keyed for moved files only (the staying selector/types keep their src/components keys). The shared selectors did not move, so their external consumers are untouched. No behavior change. * fix(ui): move the orphaned agents/guardrails view tests and drop dead GuardrailItem Greptile follow-ups on the agents/guardrails colocation: - agents.tsx and guardrails.tsx moved to their _components/index.tsx, but their sibling test files (src/components/agents.test.tsx, guardrails.test.tsx) were left behind still importing ./agents and ./guardrails, which broke a full vitest run. Move them to the matching _components/index.test.tsx and rewrite their view import to ./index, folder mocks to local ./ siblings, and networking to @/components/networking. - Remove the unused GuardrailItem interface and its GuardrailDefinitionLocation import from the guardrails view (dead code carried over from before the move; state is typed as Guardrail[]). |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||