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) explore experts #17

Merged
merged 22 commits into from
Dec 14, 2024
Merged

(fix) explore experts #17

merged 22 commits into from
Dec 14, 2024

Conversation

teetangh
Copy link
Member

No description provided.

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.
Copy link

netlify bot commented Dec 12, 2024

Deploy Preview for consultxlabs ready!

Name Link
🔨 Latest commit 12ccf6f
🔍 Latest deploy log https://app.netlify.com/sites/consultxlabs/deploys/675b5a3f6ae61b0008946fc0
😎 Deploy Preview https://deploy-preview-17--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.

@teetangh teetangh marked this pull request as ready for review December 12, 2024 18:04
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
20.7% 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
Copy link
Member Author

screenshot

  1. the slots are 30 minutes apart
  2. check for overlapping ones and merge overlapping intervals
Browser metadata
Path:      /explore/experts/a93c3690-981a-4da2-a7b4-fe0892c3301b
Browser:   Chrome 131.0.0.0 on Mac OS 10.15.7
Viewport:  1728 x 992 @2x
Language:  en-GB
Cookies:   Enabled

Open in BrowserStack

Open Deploy Preview · Mark as Resolved

@teetangh teetangh self-assigned this Dec 13, 2024
@teetangh teetangh merged commit 12ccf6f into dev Dec 14, 2024
6 of 7 checks passed
@teetangh teetangh added bug Something isn't working enhancement New feature or request labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant