bit icon indicating copy to clipboard operation
bit copied to clipboard

perf(Component UI): lazy load component logs

Open luvkapur opened this issue 2 years ago • 0 comments

Proposed Changes

Legacy Bit

  • update loadComponentLogs to accept a list of refs to stopAt
  • update collectLogs on ModelComponent to forward stopAt ref filter to getAllVersionsInfo

BIT

  • update getLogs on ScopeMain to allow filtering logs with head?: string startFrom?: string stopAt?: string startFromOffset?: number stopAtOffset?: number type?: 'snap' | 'tag'
  • add findNodeByOffset to 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 useComponentQuery to allow lazy loading component logs
  • extract lazy loading component log operations to useComponentLogs hook
  • update Component/ChangeLog with infinite scroll to lazy load the logs
  • update Component VersionDropdown to lazy load logs
  • fix: ComponentCompare fullScreen default mode
  • LanesUI refactor
  • LanesSwitcher fix loading state
  • CodeUI allow overriding css for code snippets

luvkapur avatar May 01 '23 21:05 luvkapur