-
Notifications
You must be signed in to change notification settings - Fork 33
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
refactor(packages): simplify and clarify overlay-related types and constants #92
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #92 +/- ##
==========================================
- Coverage 81.48% 81.40% -0.08%
==========================================
Files 11 11
Lines 243 242 -1
Branches 49 49
==========================================
- Hits 198 197 -1
Misses 43 43
Partials 2 2
|
Description
this pull request refactors and standardizes the overlay store and event handling logic for improved type safety, maintainability, and clarity. the following changes have been applied across multiple files to ensure consistent usage of types and improve the developer experience.
Changes
general improvements
overlayItem['id']
for overlayid across all relevant files. this ensures type consistency and eliminates redundant type definitions.file-specific changes
store.ts
overlayId
tooverlayItemId
for better semantic clarity.overlayData
tooverlayState
to align with its usage as the application’s overlay state.overlayOrderList
→orderIds
overlayData
→data
registerOverlaysStore
→registerOverlayStore
use-sync-overlay-store.ts
registerOverlaysStore
toregisterOverlayStore
.event.ts
overlayId
type tooverlayItem['id']
in all related function definitions:open
openAsync
close
unmount
Motivation and Context
this refactor improves the overall maintainability and type safety of the overlay system:
overlayItem['id']
ensures that all references to id maintain a single source of truth.overlayData
→overlayState
andoverlayOrderList
→orderIds
make the codebase easier to understand and navigate.this change is part of a larger effort to enhance code quality and maintainability across the project.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist
Further Comments
this refactor does not introduce new functionality but focuses on improving the maintainability and readability of the overlay system. any future changes to the overlay store or related logic will benefit from the increased type safety and consistency established in this pr.