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

Recipes: Drag & drop, user can customize recipe order based on preference #230

Closed
st0nebreaker opened this issue Jul 13, 2023 · 1 comment · Fixed by #314
Closed

Recipes: Drag & drop, user can customize recipe order based on preference #230

st0nebreaker opened this issue Jul 13, 2023 · 1 comment · Fixed by #314
Labels

Comments

@st0nebreaker
Copy link
Contributor

st0nebreaker commented Jul 13, 2023

The VS Code extension icons are draggable for the user to re-order to their preference. As we add more recipes & have custom recipes now, it would be a great enhancement to allow the same sort of behavior for recipe chips.

Imagine an "Edit" or "Re-order" button on the top right, once clicked the recipe chips have a vertical 3 dot icon on the side to indicate they're clickable. The user can drag the items to the order of their choice & save their preference.

Screen.Recording.2023-07-13.at.8.48.45.AM.mov
@deepak2431
Copy link
Contributor

@st0nebraker @abeatrix I have created a PR for this issue as the initial version for the pre-defined recipes. If this looks good to you, I can try extending it to the Workspace recipes and the User defined recipes.

@abeatrix Also, what's the BEST way to store the state of the reordered recipe? I tried using the VSCode getState and setState, but it didn't work. It would be great if you could share any references for this.

st0nebreaker pushed a commit that referenced this issue Jul 31, 2023
This PR closes #230. 

## Test plan

Tested it manually.
Run the extension, head over to the recipes section and try to drag and
reorder the recipes.



https://github.com/sourcegraph/cody/assets/44617923/b1e491f8-40eb-4ba2-b1c3-09a7d80e0282
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants