-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestrefactorCode refactoring with no behavior changeCode refactoring with no behavior change
Description
Problem
Three components exceed the 150-line guideline from the project coding standards:
FormField.svelte— 316 linesToolDetail.svelte— 352 linesResultView.svelte— 325 lines
Large components are harder to review, test, and maintain.
Proposed solution
- ToolDetail → extract
ToolHeader.svelte(name, badges, description, warnings) andInputModeSelector.svelte(form/json/schema tabs) - FormField → extract
ArrayField.svelteandUnionField.svelte(oneOf/anyOf handling) - ResultView → extract
TextResultBlock.svelte,ImageResultBlock.svelte,JsonResultBlock.svelte
Alternatives considered
Leaving as-is since they work. But smaller components are easier to unit test with Vitest and follow the project's own standards.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestrefactorCode refactoring with no behavior changeCode refactoring with no behavior change