Move PRIORITY constants to catalog module #892
Merged
+15
−23
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.
Summary
Consolidates priority constants by moving them from
js/hang/src/publish/priority.tsto the catalog module (js/hang/src/catalog/priority.ts), making them centrally available and reducing import complexity across the codebase.Key Changes
priority.tsfile in the catalog module to house priority constantsindex.tsto export the new priority modulepublish/priority.tsmoduleCatalog.PRIORITYinstead of importing frompublish/prioritytype * as Catalogto* as Catalogin files that now need to accessCatalog.PRIORITYFiles Modified
js/hang/src/catalog/index.ts- Added priority exportjs/hang/src/publish/audio/encoder.ts- Updated to useCatalog.PRIORITY.audiojs/hang/src/publish/chat/message.ts- Updated to useCatalog.PRIORITY.chatjs/hang/src/publish/chat/typing.ts- Updated to useCatalog.PRIORITY.typingjs/hang/src/publish/location/peers.ts- Updated to useCatalog.PRIORITY.locationjs/hang/src/publish/location/window.ts- Updated to useCatalog.PRIORITY.locationjs/hang/src/publish/preview.ts- Updated to useCatalog.PRIORITY.previewjs/hang/src/publish/video/index.ts- Updated to useCatalog.PRIORITY.videojs/hang/src/watch/broadcast.ts- Updated to useCatalog.PRIORITY.catalogjs/hang/src/watch/video/source.ts- Updated to useCatalog.PRIORITY.videoBenefits
https://claude.ai/code/session_01CGDphxgmpsYeXa4ynKvjGg