bit
bit copied to clipboard
perf(Component UI): lazy load component logs
Proposed Changes
Legacy Bit
- update
loadComponentLogsto accept a list of refs tostopAt - update
collectLogsonModelComponentto forwardstopAtref filter togetAllVersionsInfo
BIT
- update
getLogsonScopeMainto allow filtering logs withhead?: stringstartFrom?: stringstopAt?: stringstartFromOffset?: numberstopAtOffset?: numbertype?: 'snap' | 'tag' - add
findNodeByOffsetto find the closest node to an offset in a Version graph - update Component schema to allow filtering log graph with filters like;
until,startFrom,head,limit,type (snap or tag)
UI
- update
useComponentQueryto allow lazy loading component logs - extract lazy loading component log operations to
useComponentLogshook - update Component/ChangeLog with infinite scroll to lazy load the logs
- update Component VersionDropdown to lazy load logs
- fix:
ComponentComparefullScreen default mode -
LanesUIrefactor -
LanesSwitcherfix loading state -
CodeUIallow overriding css for code snippets