Carnival
LMSCloudPaulD
released this
20 Nov 02:20
·
32 commits
to master
since this release
Release Notes
These commits involve various changes and improvements to the codebase, including refactoring, feature additions, and code organization. Some notable changes include:
Summary:
-
Refactoring:
- Removing unused elements and consolidating dynamic breadcrumbs.
- Updating to use ES2021 features like
replaceAll
. - Simplifying and separating
RequestHandler
components. - Introducing an abstract view class for code consistency.
- Making properties optional and using directives for conditional rendering.
-
New Features:
- Adding a new feature called "skeleton-floating-menu."
-
Bug Fixes:
- Fixing issues like accidental bottom margins in mobile views.
- Using the context API to prevent prop drilling.
- Adding a new component to handle open-API errors.
-
Code Organization:
- Modularizing the code for better organization.
- Updating components and views to use the new
requestHandler
interface.
Refactoring
refactor: initial refactor
refactor: remove unused elements and consolidate dynamic breadcrumbs
refactor: remove legacy type declaration
refactor: clean up opac events view template
- Remove legacy type declaration.
- Include active link to current breadcrumb for resetting state.
refactor: replace regex replacements w/ 'replaceAll' call
refactor: simplify and separate RequestHandler components
- Add a config file for
ENDPOINTS
andBASE_PATH
. - Move common types into a shared declaration file.
- Simplify the library by using pattern matching in the individual, now commented, steps of an actual request.
- Use names that map to the names used in native requests to avoid confusion.
- Use the logic of the
requestInit
interface instead of reinventing it.
- Add a config file for
refactor: introduce abstract view class
- This is intended to prevent logical divergences in future refactors of the views used in the application.
- The abstraction allows for more concise view declarations.
refactor: use abstract view class in views
- Initialize the components in their
connectedCallback
calls. - Use pattern matching on the current state to render the appropriate template.
- Initialize the components in their
refactor: make properties optional in LMSDropdown
- Handle potentially undefined property.
refactor: update LMSStaffEventCard subcomponents
- Use refactored
requestHandler
version. - Use directives where applicable.
- Make properties optional and remove properties passed via context from components.
- Use refactored
refactor: modularize the render method in LMSTable
- Move optionally renderable content into sub-render methods.
refactor: update requestHandler calls to use new interface
refactor: update extensions to use new requestHandler interface
refactor: adjust opac events filter to new interfaces
refactor: export abstract view and open API errors classes
refactor: adjust opac events view to new interfaces
New Features
feat: add skeleton-floating-menu
- Correct border-radii to reflect daisyUI's settings.
feat: show active entry in floating menu bars
- Use map directives instead of plain array iterations.
- Add a prototypical
isActive
method meant to be implemented in extensions of theLMSFloatingMenu
component. - Make all properties optional.
- Extend the refactored component in
LMSEventManagementMenu
.
feat: introduce new component to communicate open-API errors
Bug Fixes
fix: accidental bottom margin in mobile view
fix: correct request body format in staff events view
fix: adjust field name in detail to refactored standard
Code Organization
chore: remove unused LMSView component
chore: reformat after change in Prettier's sorting order
chore: reformat after change in prettier's sorting order
chore: stage removal of submodule sfrom root for git
follow-up: add the submodules previously removed again
chore: add hash store class
follow-up(656bcfcc92fcae83091343e9b216888b06fb0d41): update logfile name
chore: update package scripts to reflect new symlinks
refactor: add a class field for optional parameters
chore: build new package