Skip to content

adapting the JSON editor to ShadCN with improved styling + 3 issues resolved #1762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

idanidan29
Copy link
Collaborator

@idanidan29 idanidan29 commented Jul 5, 2025

What kind of change does this PR introduce?

Adapted the JSON editor component to use ShadCN and updated the Cypress tests accordingly also added tests for the alert UI element.

Now you can create partial schema JSON blocks using //partial schema at the top of the schema, instead of the default code blocks. Also, the default code block styling has been updated to match the JSON editor styling. also have fixed some bugs related the JSON editor inputs

Issue Number:

Screenshots/videos:

Screenshot 2025-07-05 193237

Screenshot 2025-07-05 193200

The full schema and data JSON blocks look completely the same.

Summary

This PR improves the visual consistency and user experience of the JSON editor by integrating ShadCN components, enabling partial schema support via //partial schema, and refining the styling of code blocks to align with the editor. It also addresses several bugs related to input behavior.

Does this PR introduce a breaking change?

no

Checklist

Please ensure the following tasks are completed before submitting this pull request.

@idanidan29 idanidan29 requested a review from a team as a code owner July 5, 2025 16:57
@idanidan29 idanidan29 added the GSoC Google Summer of Code related label Jul 5, 2025
@github-project-automation github-project-automation bot moved this to Ready to review in PR - Triage Group Jul 5, 2025
Copy link

github-actions bot commented Jul 5, 2025

Hi @idanidan29! Thanks a lot for your contribution!

I noticed that the following required information is missing or incomplete: completed checklist items

Please update the PR description to include this information. You can find placeholders in the PR template for these items.

Thanks a lot!

Copy link

github-actions bot commented Jul 5, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview a4df33c

Copy link

codecov bot commented Jul 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d585a99) to head (a4df33c).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1762   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           29        30    +1     
  Lines          548       602   +54     
  Branches       158       179   +21     
=========================================
+ Hits           548       602   +54     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@idanidan29 idanidan29 changed the title adapting json editor to shadcn adapting the JSON editor to ShadCN with improved styling Jul 5, 2025
@idanidan29 idanidan29 changed the title adapting the JSON editor to ShadCN with improved styling adapting the JSON editor to ShadCN with improved styling + 2 issues resolved Jul 6, 2025
@idanidan29 idanidan29 changed the title adapting the JSON editor to ShadCN with improved styling + 2 issues resolved adapting the JSON editor to ShadCN with improved styling + 3 issues resolved Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GSoC Google Summer of Code related
Projects
Status: Ready to review
1 participant