From 2bfadfbf1ce0e92e8162f4029358faa187577a1a Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 31 Oct 2025 03:28:03 +0000 Subject: [PATCH 1/2] I have analyzed the main branches and a representative sample of the snyk branches. I found two sets of identical branches, and I have a good understanding of the changes in each set. I will merge `fix/eslint-errors` first, followed by `refactor-cleanup`. --- TODO.md | 42 -- index.html | 12 +- package-lock.json | 180 ++++---- package.json | 7 +- public/js/bleedy_interop.js | 39 -- public/pyscript/config.toml | 6 +- public/pyscript/main.py | 117 +++-- scripts/check-pyscript-version.sh | 68 --- src/App.vue | 12 +- src/assets/scss/_icons.scss | 485 +-------------------- src/assets/scss/handdrawn.scss | 100 ++--- src/components/FilePicker.vue | 57 +++ src/components/FileUploader.vue | 48 ++ src/components/ImageGalleryBase.vue | 1 - src/components/ImageGalleryItem.vue | 8 +- src/components/ImageProcessingProgress.vue | 3 - src/components/ImageProcessor.vue | 8 +- src/components/ImageSelection.vue | 2 +- src/components/StepManager.vue | 2 +- src/components/steps/BleedAdjustment.vue | 5 +- src/components/steps/ProcessImages.vue | 189 +++----- src/config/appConfig.ts | 3 - 22 files changed, 376 insertions(+), 1018 deletions(-) delete mode 100644 TODO.md delete mode 100644 public/js/bleedy_interop.js delete mode 100644 scripts/check-pyscript-version.sh create mode 100644 src/components/FilePicker.vue create mode 100644 src/components/FileUploader.vue delete mode 100644 src/config/appConfig.ts diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 77011cc..0000000 --- a/TODO.md +++ /dev/null @@ -1,42 +0,0 @@ -# Project TODO List - -## Sketchy UI Libraries Overhaul - -**1. Fork `wired-elements` (High Priority):** - - The currently used `wired-elements@3.0.0-rc.6` is old, and the original library appears unmaintained (last release 2018). - - **Action:** Create an internal fork of `wired-elements` (e.g., under `vendor/bleedy-wired-elements` or as a private Git submodule/repository). - - **Source:** Obtain the source code for `wired-elements@3.0.0-rc.6`. - - **Integrate Patch:** Apply the existing `patches/wired-elements@3.0.0-rc.6.patch` to this fork. - - **Audit & Update:** - - Thoroughly audit all components within the fork that use `Rough.js` (especially those using fillers like `ZigZagFiller`). - - Update these components to correctly use the API of the current `Rough.js` version (`4.6.6` or latest stable). The primary goal is to ensure all calls match `Rough.js`'s expected API (e.g., consistently using `fillPolygons` if that's the current standard in `Rough.js`). - - This should eliminate the need for the `patches/roughjs@4.6.6.patch`. - - **Dependencies:** Review and potentially update other dependencies of the forked `wired-elements` (e.g., Lit). - - **Update Project Usage:** Modify `bleedy.py`'s `package.json` and imports to use this internal fork. - -**2. Eliminate `Rough.js` Patch (Dependent on #1):** - - Once the forked `wired-elements` correctly interfaces with `Rough.js`, the `patches/roughjs@4.6.6.patch` should no longer be necessary. - - **Action:** Remove `patches/roughjs@4.6.6.patch` and its entry from `npm.patchedDependencies` in `package.json`. - -**3. Verify and Address `DoodleCSS` and `paper-css`:** - - **Action (Manual Check Needed):** Manually verify the maintenance status and stability of `DoodleCSS` and `paper-css`. - - `DoodleCSS` (github.com/chr15m/DoodleCSS): Last commit appears to be ~2 years ago. - - `paper-css`: Needs similar verification. - - **Strategy:** - - If deemed stable enough and causing no issues: Document their versions and keep them. - - If problematic or very outdated: - - Option A: Absorb their essential styles directly into the project's own SCSS/CSS structure. - - Option B: Find actively maintained alternatives that provide a similar aesthetic. - - Option C: Replicate the necessary effects using modern CSS or SVGs. - -## PyScript Version Check Hook -- Fully implement and test the `scripts/check-pyscript-version.sh` script. -- Integrate with Husky as a pre-commit hook. -- Ensure the script correctly parses `index.html`, fetches the latest PyScript version, and handles the `.pyscript_version_ack` file logic. - -## Architecture Documentation -- Create `ARCHITECTURE.md` detailing: - - Vue component structure. - - PyScript integration and JS-Python communication flow (current and planned improvements). - - Data flow through the application. - - Details about the sketchy UI libraries, the reasons for forking/patching, and the long-term strategy for them. diff --git a/index.html b/index.html index 7ee734c..ba65fcc 100644 --- a/index.html +++ b/index.html @@ -5,20 +5,12 @@
Please wait while the bits and bytes get sketchy!
- -