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

(fix) subscription schema #15

Closed
wants to merge 16 commits into from
Closed

(fix) subscription schema #15

wants to merge 16 commits into from

Conversation

teetangh
Copy link
Member

@teetangh teetangh commented Dec 7, 2024

BRANCH WAS DELETE. DO NOT REPOEN THE PR.

@teetangh teetangh self-assigned this Dec 7, 2024
Copy link

netlify bot commented Dec 7, 2024

Deploy Preview for consultxlabs ready!

Name Link
🔨 Latest commit a652985
🔍 Latest deploy log https://app.netlify.com/sites/consultxlabs/deploys/675b0f930692170008cb2b87
😎 Deploy Preview https://deploy-preview-15--consultxlabs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

This commit refactors the code in the `defaults.ts` file in the `app/explore/experts/[consultantId]` directory. It introduces two interfaces, `PricingOption` and `defaultConsultationOptions`, and adds default pricing and subscription options. The pricing options include different durations and prices, while the subscription options provide access to a full suite of services for different durations, with additional features and discounts.
…lot times

- Refactored the timezone detection and formatting functions in the utils.ts file to improve code readability and maintainability.
- Added new utility functions `normalizeUTCTime`, `normalizeWeeklySlot`, and `normalizeCustomSlot` to ensure all times are in UTC format.
- Updated the `convertUTCToLocalDate` function to always parse the UTC time as a string.
- Adjusted the `convertUTCToLocalDate` function to handle cases where the local time is on the previous day.
- Added the `isSlotRelevantForDay` function to determine if a slot is relevant for a specific day.
- Created the `createWeeklySlot` and `createCustomSlot` functions to generate slot timings based on selected dates and times.
- Updated the `mergeOverlappingSlots` function to handle overlapping slots correctly.
@teetangh teetangh force-pushed the fix/subscriptions/schema branch from e280b98 to 2e5bd85 Compare December 12, 2024 15:00
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
25.3% Duplication on New Code (required ≤ 3%)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@teetangh teetangh closed this Dec 12, 2024
@teetangh teetangh deleted the fix/subscriptions/schema branch December 12, 2024 16:36
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.

1 participant