pieces-app / example-typescript

A React example project showing how to get started with Pieces TS SDK.
MIT License
35 stars 45 forks source link

Add Reclassify Asset Functionality #81

Open jwafu opened 7 months ago

jwafu commented 7 months ago

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:

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 }})
VishalPawar1010 commented 1 month ago

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.