refactor(media): improve image URL handling and add cleanup workflow
Some checks failed
Deploy to Coolify / deploy (push) Failing after 12m45s
Some checks failed
Deploy to Coolify / deploy (push) Failing after 12m45s
- Enhance ImageMedia component to properly handle absolute and relative URLs, avoiding ENV mismatches - Update next.config.js to filter invalid URLs and add error handling for image remote patterns - Add new workflow to remove AI-generated inconsistencies from branch diffs
This commit is contained in:
11
.agent/workflows/remove-slop.md
Normal file
11
.agent/workflows/remove-slop.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: Check the diff against main and remove all AI generated slop introduced in this branch.
|
||||
---
|
||||
1. Run `git diff --name-only main...HEAD` to identify the files modified in the current branch.
|
||||
2. For each modified file, compare it against the version in `main` to identify changes.
|
||||
3. Review the changes and remove the following "AI slop":
|
||||
- Extra comments that a human wouldn't add or that are inconsistent with the rest of the file.
|
||||
- Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted/validated codepaths).
|
||||
- Casts to `any` used to get around type issues.
|
||||
- Any other style that is inconsistent with the file.
|
||||
4. Report at the end with only a 1-3 sentence summary of what you changed.
|
||||
Reference in New Issue
Block a user