• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sebnitu / vrembem / 20550461801
94%
main: 100%

Build:
Build:
LAST BUILD BRANCH: next
DEFAULT BRANCH: main
Ran 28 Dec 2025 07:13AM UTC
Jobs 1
Files 63
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Dec 2025 07:12AM UTC coverage: 94.132% (-0.7%) from 94.847%
20550461801

push

github

web-flow
Refactor and add documentation for Collection and CollectionEntry API (#2598)

This PR primarily refactored the `Collection` and `CollectionEntry` classes so that they're more intuitive in their use by reducing the complexity of their APIs. Types have also been improved so that they're more strongly typed and reduced the use of `any` where possible. 

**Refactoring Changes**

- Collection `module` property has been renamed to `name`
- Options can now only be passed in via instantiation
- CollectionEntry no longer accepts a config object on instantiation. Instead, configuration of entries should be entirely handled by the `ConfigManager` class which is implemented on the entries `config` property.
- Collection `applyConfig` has been renamed to `updateConfig` and is now the recommended way to update the collection config object.
- Collection `register`, `deregister`, and `destroyEntry` methods not take the collection entry as an argument
- Collection `mount` and `unmount` methods now take a callback function to hook into the collection entry creation and register flow
- `ConfigManager` API has been simplified so that:
  - `apply` and `addConfigSource` logic has been combined into a single `set` method
  - `removeConfigSource` has been renamed to `remove`
- Collection now uses a generic for its config typing
- CollectionEntry has had all of its methods removed such as `init` and `destroy`

**Additional Changes**
- Drawer, Modal and Popover configs now extend `CollectionConfig`
- Improved `Plugin` interface type
- New `CollectionEntryConstructor` type has been added for use in Collection `entryClass` property
- CollectionEntry has had parent collection generic removed in favor of the `any` use to remove the need for recursive dependency typing
- (Docs): Added documentation pages for the `Collection` and `CollectionEntry` classes to better document their API
- (Docs): Added `order` property to the modules collection
- (Docs): Created the `ReferenceBar.astr... (continued)

564 of 614 branches covered (91.86%)

Branch coverage included in aggregate %.

69 of 80 new or added lines in 17 files covered. (86.25%)

2 existing lines in 2 files now uncovered.

928 of 971 relevant lines covered (95.57%)

29.11 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.81
-3.9% packages/core/src/js/Collection.ts
1
0.0
0.0% packages/core/src/js/helpers/getCustomProps.ts
2
12.5
0.0% packages/core/src/js/plugins/attrConfig.ts
3
8.33
0.0% packages/core/src/js/plugins/cssConfig.ts
4
62.26
10.09% packages/core/src/js/modules/ConfigManager.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.67
-5.0% packages/popover/src/js/handlers.ts
1
93.02
-4.65% packages/popover/src/js/open.ts
Jobs
ID Job ID Ran Files Coverage
1 20550461801.1 28 Dec 2025 07:13AM UTC 63
94.13
GitHub Action Run
Source Files on build 20550461801
  • Tree
  • List 63
  • Changed 29
  • Source Changed 28
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #20550461801
  • a5600796 on github
  • Prev Build on next (#20548692076)
  • Next Build on next (#20586336434)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc