Closed ZenVoich closed 2 weeks ago
The changes involve significant updates to various components and modules, focusing on sorting packages by publication time, enhancing keyword validation, and improving the display of package information. New components were introduced, existing components were modified for better functionality, and the data structures for packages were updated to enhance clarity and maintainability.
Files | Change Summary |
---|---|
backend/main/main-canister.mo |
Renamed _sortByUpdated to _sortByPublicationTime and updated sorting logic in getNewPackages . |
backend/main/registry/packagesByCategory.mo |
Changed package category representation from tuples to objects for improved clarity. |
backend/main/utils/validateConfig.mo |
Enhanced keyword validation logic to enforce stricter formatting rules. |
blog/blog/0-unlisted.md |
Introduced keywords validation and search by owner principal ID. |
frontend/components/Home.svelte |
Added RecentlyUpdatedPackages component and modified TopPackages to display newly added packages. |
frontend/components/PackagesByCategory.svelte |
Implemented sorting by quality points and added functions for category descriptions and keywords. |
frontend/components/RecentlyUpdatedPackages.svelte |
Created a new component to display recently updated packages with loading states. |
frontend/components/TopPackages.svelte |
Expanded type property to include 'new' and updated fetching logic accordingly. |
frontend/components/package/Keywords.svelte |
Introduced a component to display keywords as clickable links. |
frontend/components/package/Package.svelte |
Modularized keyword rendering and added package description display. |
frontend/components/package/PackageCard.svelte |
Added showFirstPublished property for conditional display of publication date. |
frontend/components/package/PackageQualityIcon.svelte |
Refactored quality points calculation to use getQualityPoints function. |
frontend/components/package/PackageVersionSummary.svelte |
Added showName property to control visibility of package name. |
frontend/logic/get-quality-points.ts |
Introduced a new function to calculate quality points based on package attributes. |
sequenceDiagram
participant User
participant Home
participant TopPackages
participant MainActor
User->>Home: View Home Page
Home->>TopPackages: Load Packages
TopPackages->>MainActor: getNewPackages()
MainActor-->>TopPackages: Return New Packages
TopPackages-->>Home: Display New Packages
🐰 "In the meadow, packages bloom,
With keywords bright, they chase the gloom.
Sorting by time, the new ones shine,
A hop and a skip, all's now divine!
Clickable links, oh what a treat,
In this garden, life is sweet!" 🌼
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?
Summary by CodeRabbit
New Features
Improvements
Bug Fixes