Release 1.0.0#56
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several updates across multiple files to improve code consistency, enhance functionality, and simplify maintenance. Key changes include replacing hardcoded border colors with default styles, integrating reusable utilities for formatting, adding new features like Google Maps integration, and updating dependencies. Below is a breakdown of the most significant changes:
Codebase Consistency and Cleanup:
borderColorproperties in input components across multiple pages (branches,categories,coupons) to rely on default styles for improved maintainability. (src/app/(dashboard)/branches/[id]/edit/page.tsxL206, src/app/(dashboard)/categories/[id]/edit/page.tsxL155, src/app/(dashboard)/coupons/new/page.tsxL188)Feature Enhancements:
NewBranchPageto allow users to set coordinates interactively by dragging a marker. [1] [2]Loadercomponents inBranchesPageandBranchDetailsPagefor a more consistent user experience. (src/app/(dashboard)/branches/[id]/page.tsxL168-R169, src/app/(dashboard)/branches/page.tsxR166-L170)Utility Functions:
formatDateSafe,formatPrice) inCouponDetailsPageandEditCouponPage. This ensures consistent formatting across the application. (src/app/(dashboard)/coupons/[code]/page.tsxL11-R16, src/app/(dashboard)/coupons/[code]/edit/page.tsxL58-R59, src/app/(dashboard)/coupons/[code]/page.tsxL178-R171)Dependency Updates:
@pharmatech/sdkto version^0.4.21and added@react-google-maps/apito enable new features like Google Maps integration.Build and Pre-commit Improvements:
npm run precommitwithnpx lint-stagedin.husky/pre-commitand updated.lintstagedrcto usenpm runcommands for formatting and linting, aligning with modern practices. [1] [2]