Skip to content

feat(editor): Add auto-pairing for curly braces in Concerto model #281

Merged
DianaLease merged 3 commits intoaccordproject:mainfrom
surya4419:surya4419/i280/Auto-Pairing-Curly-Braces-in-Concerto-Model
Mar 27, 2025
Merged

feat(editor): Add auto-pairing for curly braces in Concerto model #281
DianaLease merged 3 commits intoaccordproject:mainfrom
surya4419:surya4419/i280/Auto-Pairing-Curly-Braces-in-Concerto-Model

Conversation

@surya4419
Copy link
Contributor

Closes #280

This PR adds an automatic pairing feature for curly braces {} in the Concerto model section within the Monaco Editor. This improves the editing experience by reducing syntax errors and ensuring balanced brace structures.

Changes

  • Implemented auto-insertion of closing braces when an opening brace { is typed
  • Ensured proper indentation and cursor positioning for multi-line brace pairs
  • Supported nested brace structures in the Concerto model section
  • Prevented auto-pairing inside strings and comments
  • Added a configuration option to enable/disable this feature

Screenshots or Video

After Changes

Template.Playground.-.Google.Chrome.2025-03-17.20-11-25.mp4

Related Issues

Author Checklist

it-works) for your commits using the --signoff option of git commit.

  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

@surya4419 surya4419 requested a review from a team as a code owner March 17, 2025 14:44
@netlify
Copy link

netlify bot commented Mar 17, 2025

Deploy Preview for ap-template-playground ready!

Name Link
🔨 Latest commit 9230ad2
🔍 Latest deploy log https://app.netlify.com/sites/ap-template-playground/deploys/67e4e91158ded50008985b73
😎 Deploy Preview https://deploy-preview-281--ap-template-playground.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 site configuration.

@surya4419
Copy link
Contributor Author

Hey @DianaLease , when you have some time, could you please review my PR? I'd love to get your feedback. Thanks!

Copy link
Member

@sanketshevkar sanketshevkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for the contribution. Can you please rebase your branch?

@surya4419 surya4419 force-pushed the surya4419/i280/Auto-Pairing-Curly-Braces-in-Concerto-Model branch from 1cfc302 to 0b28208 Compare March 17, 2025 17:33
@surya4419
Copy link
Contributor Author

You're welcome! I've rebased my branch as requested. Please review my PR when you get a chance and let me know if any further changes are needed.

LGTM. Thanks for the contribution. Can you please rebase your branch?

You're welcome! @sanketshevkar I've rebased my branch as requested. Please review my PR when you get a chance and let me know if any further changes are needed.

@surya4419 surya4419 force-pushed the surya4419/i280/Auto-Pairing-Curly-Braces-in-Concerto-Model branch from 0b28208 to 0d95a91 Compare March 19, 2025 11:05
@surya4419
Copy link
Contributor Author

@sanketshevkar Thank you for reviewing my PR! Since you've approved my changes, could you please merge it when you get a chance?

@DianaLease
Copy link
Member

@surya4419 Can you fix the merge conflict? thank you!

@surya4419
Copy link
Contributor Author

@surya4419 Can you fix the merge conflict? thank you!

I’ve fixed the merge conflict. Please review and merge my PR when you get a chance. Thanks!

…tion

Signed-off-by: surya4419 <suryaa4419@gmail.com>
…tion

Signed-off-by: surya4419 <suryaa4419@gmail.com>
…tion

Signed-off-by: surya4419 <suryaa4419@gmail.com>
@surya4419 surya4419 force-pushed the surya4419/i280/Auto-Pairing-Curly-Braces-in-Concerto-Model branch from b155cee to 9230ad2 Compare March 27, 2025 05:58
Copy link
Member

@DianaLease DianaLease left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@DianaLease DianaLease merged commit 4ccf264 into accordproject:main Mar 27, 2025
7 checks passed
@surya4419 surya4419 deleted the surya4419/i280/Auto-Pairing-Curly-Braces-in-Concerto-Model branch March 27, 2025 13:59
surya4419 added a commit to surya4419/template-playground that referenced this pull request Mar 27, 2025
…cordproject#281)

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

---------

Signed-off-by: surya4419 <suryaa4419@gmail.com>
surya4419 added a commit to surya4419/template-playground that referenced this pull request Mar 27, 2025
…cordproject#281)

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

---------

Signed-off-by: surya4419 <suryaa4419@gmail.com>
DianaLease pushed a commit that referenced this pull request Mar 27, 2025
…ng (#256)

* fix(ui): add proper margin to error notification for consistent spacing

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model  (#281)

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

---------

Signed-off-by: surya4419 <suryaa4419@gmail.com>

---------

Signed-off-by: surya4419 <suryaa4419@gmail.com>
sanketshevkar pushed a commit that referenced this pull request Mar 29, 2025
* feat(editor): add resizable editor/preview panes for improved flexibility

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model  (#281)

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): Add auto-pairing for curly braces in Concerto model section

Signed-off-by: surya4419 <suryaa4419@gmail.com>

---------

Signed-off-by: surya4419 <suryaa4419@gmail.com>

* feat(editor): add resizable editor/preview panes for improved flexibility

Signed-off-by: surya4419 <suryaa4419@gmail.com>

---------

Signed-off-by: surya4419 <suryaa4419@gmail.com>
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.

Feature Request 🛍️: Auto-Pairing Curly Braces in Concerto Model Section

3 participants