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

Add Reclassify Asset Functionality #81

Open
3 tasks
jwafu opened this issue Feb 3, 2024 · 1 comment
Open
3 tasks

Add Reclassify Asset Functionality #81

jwafu opened this issue Feb 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jwafu
Copy link
Contributor

jwafu commented Feb 3, 2024

This should change the formatting of the snippet based on the language the user set. Each asset has an associated language stored on it that is automatically generated when a snippet is created. In order to adjust that language classification a button will need to be pressed after a selection is made from a set number of classification options.

We will need a few things:

  • a native html dropdown for containing the different classifications: heres a quick article on html dropdowns
  • populating that dropdown with different available classifications in the Pieces.ClassificationSpecificEnum
  • reclassifying the asset using Pieces.AssetApi().assetReclassify

Here is a light example of the reclassify functionality where Asset is the full Pieces.Asset that you would like to reclassify:

new Pieces.AssetApi().assetReclassify({assetReclassification: {ext: Pieces.ClassificationSpecificEnum.Bash, asset: Asset }})
@jwafu jwafu added the enhancement New feature or request label Feb 3, 2024
@VishalPawar1010
Copy link
Contributor

VishalPawar1010 commented Jul 18, 2024

Hey @Arindam200 , @shivay-at-pieces , can I please grab this issue?

If yes, can we use Tailwind CSS in this and implement it in rest of the code base slowly/iteratively, I analysed the codebase and I suggest, its good to add tailwind for CSS. I can implement Tailwind CSS Comboboxes for this issue.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants