Repository navigation
v0.3.25
v0.3.25 ~ "Resource view registries, 100% test coverage, and the fixes it turned up"
Highlights
- Resource view registries. Extensions can add columns, row actions, bulk actions and toolbar buttons to any engine's table views, and header buttons and menu items to its details views. Names follow
<extension>:<resource>:<surface>:<slot>, for examplefleet-ops:driver:table:columnsorledger:invoice:details:menu.- New contracts:
TableColumn,ResourceActionandActionButton. - New service:
universe/resource-view-service, reached asuniverse.getService('resource-view'). - New
ResourceActionServicehelpers:tableRegistry,detailsRegistry,mergeRegisteredColumns()andqueryParamsFor(). - Guide: Resource views.
- Rendering ships in fleetbase/ember-ui v0.4.5.
- New contracts:
- Verified 100% test coverage. Statements, branches, functions and lines are all at 100%, checked per file by a CI gate, with results on Codecov. Writing the tests turned up a number of defects; the fixes are listed below.
- Fixes found while writing the tests:
crud:- bulk-action messages no longer print the count twice;
- the import dialog accepts files;
- a
modelNameoption now overrides the model's own name.
fetch:- a bare
Content-Typesuch astext/csvis read correctly; - a filename the caller passes wins over the
content-dispositionheader; cachedGetexpires a month-old cache.
- a bare
filtersunderstand Ember's mapped query params.- The organization and user account menus no longer show each other's items.
- Sign-in failures abort and invalidate once, and the session's seconds remaining is positive until it expires.
- The user is warned when their location cannot be detected.
- Reopening a chat keeps the other open chats.
- Menu items registered by title no longer replace each other.
MenuItem's chaining click setter is nowwithOnClick().loadSubjectCustomFieldsrejects when loading fails, so callers can tell a failure from a subject with no custom fields.
- Header shortcuts keep their permission.
registerHeaderMenuItemnow carriespermissiononto each shortcut, or inherits the parent's, so the header can hide shortcuts a user cannot open. - Fix: a required file custom field rejected a file uploaded in the same session. A freshly staged
file:<uuid>value now counts as present. - Fix: the universe registry facade.
getRegistry,registerInRegistry,lookupFromRegistry,getMenuItemsFromRegistryandgetMenuPanelsFromRegistrypassed the wrong arguments and returned nothing.- Panels that read registered tabs through them now see those tabs.
virtualRouteRedirect(used by the console's login route) now redirects hiddenauth:loginpages on direct load.
Need help?
What's Changed
- ci(release): tag automatically when a dev-v* branch merges to main by @roncodes in #91
- ci(release): adopt the release/v* branch convention by @roncodes in #93
- Add test coverage tooling, real tests, and Codecov reporting by @roncodes in #90
- fix(custom-fields): treat a freshly uploaded file as present by @roncodes in #92
- fix(menu): carry permission onto registered header shortcuts by @roncodes in #94
- feat: resource view registries for table and details views by @roncodes in #95
- Release v0.3.25 by @roncodes in #96
Full Changelog: v0.3.24...v0.3.25