Skip to content

Refactor default UML content to shared constant#16

Open
7sg56 wants to merge 1 commit intomainfrom
refactor/default-uml-content-constant-5514271596484522253
Open

Refactor default UML content to shared constant#16
7sg56 wants to merge 1 commit intomainfrom
refactor/default-uml-content-constant-5514271596484522253

Conversation

@7sg56
Copy link
Owner

@7sg56 7sg56 commented Feb 13, 2026

This PR addresses a code health issue by refactoring the default UML diagram content into a single constant.

Changes:

  • Extracted the default class diagram string into lib/constants.ts.
  • Replaced duplicate strings in components/SimpleEditor.tsx, app/page.tsx, and components/UMLTemplates.tsx with DEFAULT_UML_CONTENT.

Verification:

  • Ran npm run lint and npm run build successfully.
  • Verified that the application loads with the correct default content using a Playwright script and visual inspection.

PR created automatically by Jules for task 5514271596484522253 started by @7sg56

- Created `lib/constants.ts` to store `DEFAULT_UML_CONTENT`.
- Updated `components/SimpleEditor.tsx` to use the constant.
- Updated `app/page.tsx` to use the constant.
- Updated `components/UMLTemplates.tsx` to use the constant.
- This removes code duplication and improves maintainability.

Co-authored-by: 7sg56 <102475617+7sg56@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 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.

@netlify
Copy link

netlify bot commented Feb 13, 2026

Deploy Preview for colduml ready!

Name Link
🔨 Latest commit a6eef1a
🔍 Latest deploy log https://app.netlify.com/projects/colduml/deploys/698ec11db301820008508a55
😎 Deploy Preview https://deploy-preview-16--colduml.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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