Skip to content

Feat/10 service tab actions 2#55

Merged
RenaudBernier merged 28 commits intodevelopfrom
feat/10-service-tab-actions-2
Apr 23, 2026
Merged

Feat/10 service tab actions 2#55
RenaudBernier merged 28 commits intodevelopfrom
feat/10-service-tab-actions-2

Conversation

@achneerov
Copy link
Copy Markdown

@achneerov achneerov commented Apr 18, 2026

Closes #10
Closes #9

Overview

Implemented the admin services management tab, including the ability to create, edit, archive, and manage services (private lessons and programs). Services were built under the authenticated shell (app/(authenticated)/dashboard/services/) with server actions, queries, and form components.

Testing

Manual testing: created several services/products, verified properties updated correctly, confirmed API endpoints worked as expected, and observed changes reflected in both Stripe and Supabase dashboards. Unit test passing (jest --ci).

Screenshots / Screencasts

{Screenshots or screen recording of your changes if this issue involves any frontend components or affects any frontend functionality.}

image image

Checklist

  • Code is neat, readable, and works
  • Code is commented where appropriate and well-documented
  • Commit messages follow our guidelines
  • Issue number is linked
  • Branch is linked
  • Reviewers are assigned (one of your tech leads)

Notes

@martin0024 martin0024 force-pushed the feat/10-service-tab-actions-2 branch from 9edd24b to d6c4437 Compare April 19, 2026 00:12
@Berny-ft Berny-ft force-pushed the feat/10-service-tab-actions-2 branch from ddad362 to 6cbf876 Compare April 19, 2026 17:44
@Berny-ft Berny-ft requested a review from martin0024 April 19, 2026 20:29
@Berny-ft Berny-ft changed the title {DRAFT} Feat/10 service tab actions 2 Feat/10 service tab actions 2 Apr 19, 2026
@Berny-ft Berny-ft requested a review from RenaudBernier April 19, 2026 20:39
achneerov and others added 7 commits April 19, 2026 17:19
… functions

- Updated `next.config.ts` to enable component caching.
- Refactored `app/page.tsx` to use React's Suspense for loading state management.
- Introduced new functions in `lib/stripe.ts` for product and price management.
- Added `lib/money.ts` for currency conversion utility.
- Implemented admin role validation in `lib/auth/require-admin.ts`.
- Expanded database schema in `lib/db/schema.ts` to include service status management.
…or handling

- Fixed bugs in product and price management functions in `lib/stripe.ts`.
- Improved error handling for currency conversion in `lib/money.ts`.
- Updated validation logic in `lib/auth/require-admin.ts` to ensure proper access control.
@martin0024 martin0024 force-pushed the feat/10-service-tab-actions-2 branch from a288051 to 26307ca Compare April 19, 2026 21:22
Comment thread app/(authenticated)/services/actions.ts
Comment thread app/dashboard/services/page.tsx Outdated
Comment thread app/dashboard/services/service-forms.tsx Outdated
Copy link
Copy Markdown
Contributor

@RenaudBernier RenaudBernier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything works, code is clean. Good job

@achneerov achneerov mentioned this pull request Apr 20, 2026
6 tasks
@RenaudBernier RenaudBernier merged commit 466614f into develop Apr 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin Services tab: create/edit services (name, desc, price, scheduling type)

4 participants