Closed minetoblend closed 8 months ago
The update involves enhancing components, refining data structures, and optimizing asset management across the client and server packages. New components are introduced, data access patterns are streamlined, and global caching is implemented for efficient asset retrieval. The transformation of beatmap entities to information objects is now handled by dedicated transformers, improving clarity and maintainability.
Files | Change Summary |
---|---|
packages/client/components.d.ts |
Added BeatmapAccessRequestDialog , NotificationsDropdown components. |
.../client/src/components/beatmap/MapsetCard.vue |
Removed optional chaining for thumbnailSmall , edit properties. |
.../client/src/editor/components/ShareDialog.vue |
Updated shareUrl construction by removing .href . |
packages/common/src/types/beatmap.ts |
Simplified links in MapsetInfo and BeatmapInfo interfaces. |
packages/server/src/admin/admin.controller.ts |
Added assetsService for async room data processing. |
packages/server/src/admin/admin.module.ts , .../src/app.module.ts |
Imported AssetsModule , CacheModule respectively. |
packages/server/src/assets/assets.service.ts |
Injected CACHE_MANAGER for caching S3 assets. |
.../server/src/beatmap/beatmap.controller.ts ,.../mapset.controller.ts |
Added transformers, replaced getInfo() with transformer methods. |
.../server/src/beatmap/beatmap.entity.ts ,.../mapset.entity.ts |
Removed getInfo() method, updated shareId generation, removed MapsetInfo usage. |
.../server/src/beatmap/beatmap.module.ts |
Added MapsetTransformer , BeatmapTransformer services. |
.../server/src/beatmap/beatmapTransformer.ts ,.../mapset.transformer.ts |
Introduced methods to transform entities into information objects. |
"In the world of code and bits, where rabbits hop and logic fits,
🌟 Changes bloom like spring's first light, enhancing features, making bright.
With transformers sleek and caching swift,
Across the land, our spirits lift.
🐰 So here's a cheer from CodeRabbit's heart,
For every change, a brand new start!"
🚀🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Now sending presigned links directly instead of relying on redirects. Also added caching cuz presigning takes a while.
Summary by CodeRabbit
New Features
BeatmapAccessRequestDialog
andNotificationsDropdown
components for enhanced user interaction.Bug Fixes
shareUrl
construction in the Share Dialog.MapsetCard
component to ensure reliable thumbnail and edit link display.Refactor
links
structure in beatmap types for clarity and ease of use.Chores
AssetsModule
andCacheModule
for improved asset management and caching capabilities.