AI Fix Prompts for Opensource Ready2Spray

Copy any prompt below into Claude, ChatGPT, or your AI coding assistant to automatically fix the issue. Each prompt includes full context, code location, and step-by-step fix instructions.

2
Total Prompts
0
Critical (P0)
1
High (P1)
1
Medium (P2)
0
Low (P3)
Download All (Markdown) Download All (JSON) Feed these prompts to any AI coder: Claude Code, Cursor, Copilot, GPT, Ollama
HIGH ⚙ moderate #1

Review high-risk license: Elastic-2.0

license legal compliance
Expected outcome: License risk assessed and documented
Files to modify: LICENSE
Prompt (copy this into your AI assistant)
Repository 'wbaguley__opensource-ready2spray' uses Elastic-2.0 which is classified as high-risk (copyleft/proprietary). Review whether this is intentional. If distributing commercially, consider re-licensing or isolating copyleft dependencies.
Want this analysis on your repo? https://repobility.com/scan/
MEDIUM ⚒ significant #2

Simplify 5 high-complexity files

complexity refactoring quality
Expected outcome: All listed files reduced to medium or low complexity
Files to modify: client/src/pages/CustomerDetail.tsx, client/src/pages/Sites.tsx, client/src/pages/SettingsGeneral.tsx, client/src/pages/Maps.tsx, client/src/components/PropertyFormDialog.tsx
Prompt (copy this into your AI assistant)
These files in 'wbaguley__opensource-ready2spray' have high cyclomatic complexity:

- **client/src/pages/CustomerDetail.tsx**: complexity=110, max nesting=6, longest function=513 lines
- **client/src/pages/Sites.tsx**: complexity=86, max nesting=5, longest function=609 lines
- **client/src/pages/SettingsGeneral.tsx**: complexity=82, max nesting=7, longest function=207 lines
- **client/src/pages/Maps.tsx**: complexity=71, max nesting=7, longest function=223 lines
- **client/src/components/PropertyFormDialog.tsx**: complexity=68, max nesting=6, longest function=282 lines

For each file:
1. Break large functions into smaller, focused functions
2. Reduce nesting depth (extract early returns, use guard clauses)
3. Simplify conditional logic
4. Extract complex expressions into named variables