Skip to content

[Issue]: Add Service Tab backend actions #39

@RenaudBernier

Description

@RenaudBernier

Branch Name

feature/39-service-tab-actions

Task

  • Create app/dashboard/services/actions.ts
  • Create actions for adding, editing and removing, and getting services
  • Integrate Stripe using best practices (our tech lead sent docs on discord for that)
  • All changes should be reflected in both the db and stripe
  • When adding a service, it should be added to both stripe and the db. Same for editing the service.
  • Admins should also have the option to temporarily disable a services
  • Add new row is_offered to tell whether or not the service is currently offered to clients. The admin has the option to stop and restart offering services
    Note that is_active tells whether or not service is offered

Acceptance Criteria

  • Adding a service through the action creates a new service entry in the database with fields being filled appropriately
  • Changes when editing a service are reflected in the database
  • Active, disabled and archived services should have a service_status of "active", "disabled" and "archived" respectively

Checklist

  • I have checked for duplicate issues.
  • I have assigned the issue to the correct project board.
  • I have tagged the issue properly.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions