Skip to content

Consolidate graph visualization logic into sitegraphExport.ts#45

Closed
saurabhsharma2u wants to merge 2 commits into
mainfrom
refactor/consolidate-html-generation-5047483803518301596
Closed

Consolidate graph visualization logic into sitegraphExport.ts#45
saurabhsharma2u wants to merge 2 commits into
mainfrom
refactor/consolidate-html-generation-5047483803518301596

Conversation

@saurabhsharma2u

Copy link
Copy Markdown
Contributor

Addressed the code health issue "Duplicated Graph Visualization Code" by consolidating the HTML generation logic into sitegraphExport.ts and renaming the function to renderSitegraphHtml. This unifies the sitegraph export logic (HTML, CSV, Markdown) into a single module and removes the single-purpose html.ts file. Verified with tests in both core and cli packages.


PR created automatically by Jules for task 5047483803518301596 started by @saurabhsharma2u

- Moved `generateHtml` from `plugins/core/src/report/html.ts` to `plugins/core/src/report/sitegraphExport.ts`.
- Renamed `generateHtml` to `renderSitegraphHtml` for consistency with other export functions.
- Moved `safeJson` helper to `sitegraphExport.ts`.
- Deleted `plugins/core/src/report/html.ts`.
- Updated `plugins/cli` and tests to use the new function name and import path.
- Updated `@crawlith/core` exports.
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Added `packageManager` field to `package.json` with `pnpm@9.15.4`.
- Removed explicit `version: 10` from `.github/workflows/ci.yml` to allow `pnpm/action-setup` to use the pinned version.
- This resolves `ERR_PNPM_FETCH_403` errors seen in CI when attempting to install unstable/problematic pnpm v10 versions.
@saurabhsharma2u

Copy link
Copy Markdown
Contributor Author

Closing as a duplicate of PR 46 which addresses the exact same refactoring task, but PR 46 has a cleaner history.

@saurabhsharma2u
saurabhsharma2u deleted the refactor/consolidate-html-generation-5047483803518301596 branch February 25, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant