[PLUGINS] Add metadata lint rules for missing field help text and ambiguous categories#717
[PLUGINS] Add metadata lint rules for missing field help text and ambiguous categories#717Pcmhacker-piro wants to merge 6 commits into
Conversation
…ecycle - Add workflow.spec.ts with mocked API routes for GET/POST/DELETE /workflows - Cover creation via CreateSheet, manual run with queued task display, and delete with grid removal confirmation - Include full lifecycle scenario combining create, run, and delete - Set up API key in localStorage before navigation to bypass auth gate Fixes utksh1#563
…sed sidebar sync - Remove 100ms polling interval from AppShell that was polling localStorage to detect sidebar state changes - Sidebar now dispatches a 'sidebar-state-changed' CustomEvent on window whenever isExpanded changes - AppShell listens for the CustomEvent instead of polling - Preserves localStorage persistence for cross-tab scenarios - No external dependencies or context providers needed
…guous categories - Add VALID_CATEGORIES constant with all 12 recognized plugin categories - Add _check_category() validator that rejects unknown categories - Add help text lint check in _check_fields() to flag fields without user-facing description - Update valid test fixture to include help text on fields - Add comprehensive tests for both new lint rules - Document the new lint rules in PLUGINS.md under Plugin Validation Fixes utksh1#551
|
heyy @utksh1 |
utksh1
left a comment
There was a problem hiding this comment.
This needs changes before merge. The formatting-hygiene check is failing and the PR is stacked with unrelated workflow/sidebar/plugin changes. Please rebase on main, split the metadata lint work into a focused PR, and make the new lint rules pass in CI.
test_valid_categories_accepted creates multiple plugin directories under the same tmp_path in a loop, causing FileExistsError without exist_ok=True.
|
hey @utksh1 |
|
heyy @utksh1 |
utksh1
left a comment
There was a problem hiding this comment.
Re-reviewed the latest update. This is still not focused enough to merge.
The PR still includes unrelated AppShell/Sidebar frontend changes alongside plugin-validator lint work. Please split those out and keep this PR limited to plugin metadata lint rules, fixture updates, and validator tests. Once the frontend files are removed and the validator-only diff stays green, I can re-review.
Add quality gates for plugin metadata to help contributors write consistent, user-friendly plugin definitions. - VALID_CATEGORIES set + _check_category() validation - Help text lint check (warning-level, non-blocking) - warnings list on ValidationResult for incremental compliance - Cross-owner BOLA regression tests Closes utksh1#551, Closes utksh1#717
Add quality gates for plugin metadata to help contributors write consistent, user-friendly plugin definitions. - VALID_CATEGORIES set + _check_category() validation - Help text lint check (warning-level, non-blocking) - warnings list on ValidationResult for incremental compliance - Cross-owner BOLA regression tests Closes utksh1#551, Closes utksh1#717
* feat(plugins): add metadata lint rules Add quality gates for plugin metadata to help contributors write consistent, user-friendly plugin definitions. - VALID_CATEGORIES set + _check_category() validation - Help text lint check (warning-level, non-blocking) - warnings list on ValidationResult for incremental compliance - Cross-owner BOLA regression tests Closes #551, Closes #717 * feat(plugins): add metadata lint rules Add quality gates for plugin metadata to help contributors write consistent, user-friendly plugin definitions. - VALID_CATEGORIES set + _check_category() validation - Help text lint check (warning-level, non-blocking) - warnings list on ValidationResult for incremental compliance - Cross-owner BOLA regression tests Closes #551, Closes #717
Closing in favor of the clean PR #789 which contains only the plugin metadata lint changes (no unrelated AppShell/e2e commits).