Skip to content
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

Move snippets to sidepanel #15595

Open
wants to merge 18 commits into
base: BUDI-9068/type-sidepanel
Choose a base branch
from

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Feb 20, 2025

Description

Moving snippets section in bindings in order to match the UX of helpers and other bindings. We discussed keeping the existing section for crud, but this made it harder to understand and to reuse some logic. Happy to discuss improvements and different approaches.

Screenshots

Snippets will be moved to the bindings side panel

image

Snippets will not appear on the text section

Screen.Recording.2025-02-21.at.12.25.46.mov

Snippets can be added from the side panel

Screen.Recording.2025-02-21.at.12.27.19.mov

Snippets can be edited from the side panel

Screen.Recording.2025-02-21.at.12.27.44.mov

Snippets can be deleted from the side panel

Screen.Recording.2025-02-21.at.12.28.29.mov

Upgrade flow will still be in there for non-licenced users

Screen.Recording.2025-02-21.at.12.36.11.mov

Launchcontrol

Moving snippets section to the binding side panel

Feature branch env

Feature Branch Link

Copy link

linear bot commented Feb 20, 2025

Copy link

qa-wolf bot commented Feb 20, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/l labels Feb 20, 2025
@@ -1,5 +0,0 @@
export enum SidePanel {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is only used in a file, not worth having it in types

{/if}
</Layout>
</div>

{#if showSnippetDrawer}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is done as it was the easier way to clean the state. Otherwise, when creating multiple snippets, the state would be persisted instead of starting from a clean slate everytime

@adrinr adrinr marked this pull request as ready for review February 21, 2025 11:36
@adrinr adrinr requested review from aptkingston and mike12345567 and removed request for aptkingston February 21, 2025 11:36
@adrinr adrinr added the feature-branch Release this PR code into a feature branch label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-branch Release this PR code into a feature branch firestorm Data/Infra/Revenue Team size/l
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant