Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(Component UI): lazy load component logs #7346

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

luvkapur
Copy link
Member

@luvkapur luvkapur commented May 1, 2023

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

davidfirst
davidfirst previously approved these changes May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants