GithubHelp home page GithubHelp logo

Ability to delete a prompt about pezzo HOT 6 CLOSED

pezzolabs avatar pezzolabs commented on May 21, 2024
Ability to delete a prompt

from pezzo.

Comments (6)

alceil avatar alceil commented on May 21, 2024

Can I work on this @arielweinberger ?

from pezzo.

ItayElgazar avatar ItayElgazar commented on May 21, 2024

@alceil Of course! Go for it.

from pezzo.

arielweinberger avatar arielweinberger commented on May 21, 2024

Since there's no progress with this one, I'll leave it to somebody else from the community for now.

from pezzo.

arielweinberger avatar arielweinberger commented on May 21, 2024

@AyanDas348 would you like to take this?

It's quite simply - add a service method to prompts.service.ts to delete the prompt. You'l use Prisma to delete it (look at the other methods in the service).

Then add a deletePrompt mutation to the prompts.resolver.ts.

The Delete button should be displayed as follows:
image

There's already a prompt deletion confirmation modal implemened (check out apps/console/src/app/pages/prompts/[promptId]/index.tsx line 69). So all in all it's a fun task.

p.s. you'll need to adjust the Prisma Schema to cascade delete all dependants of a Prompt when you delete it. You can see how to do that here.

from pezzo.

AyanDas348 avatar AyanDas348 commented on May 21, 2024

@arielweinberger Sure I'll give it a try. Thanks!

from pezzo.

arielweinberger avatar arielweinberger commented on May 21, 2024

Fixed in #84, to be released very soon in v0.3.0

from pezzo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.