Repository navigation
refactor(web): unify log naming conventions and optimize log list data structure - #930
Merged
Merged
Conversation
- Rename activeLogIds to filteredLogIds in WebGL renderer and timeline-chart component - Rename highlightLogIndices to highlightedLogIndices in selection manager, timeline, log, and diff components - Rename allLogsWithoutFilter to allLogs in timeline-frame and timeline-smart components - Update JSDoc descriptions and unit tests/stories accordingly
…e resolution - Change LogListComponent input from allLogs (Log[]) to logStore (LogStore) - Compute shownLogIds (number[]) instead of creating a full Log[] array - Resolve Log adapters on-demand per virtual-scroll row using store.getLog(logId) - Remove expensive allLogs signal from LogSmartComponent - Update unit tests and Storybook stories accordingly
- Rename shownLogIds to visibleLogIds - Rename shownLogsCount to visibleLogsCount - Align naming with visibleTimelines across the web UI
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
September 1, 2026 00:43
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the frontend log handling by introducing a centralized LogStore input and renaming several properties (such as highlightLogIndices to highlightedLogIndices and activeLogIds to filteredLogIds) for better consistency. Feedback on these changes highlights a potential performance issue in LogListComponent where retrieving logs dynamically within the virtual scroll loop creates new object instances on every change detection cycle, and suggests caching them. Additionally, it is recommended to refactor the invalidate signal in TimelineChartComponent to a plain boolean property to avoid writing to signals inside effects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses two main areas in the web frontend:
Log Naming Conventions Unification:
activeLogIdstofilteredLogIdsacross WebGL timeline renderers and chart components for consistency with CEL filter terminology.allLogsWithoutFilterand related caches toallLogsandallLogsHistogramCache.highlightLogIndicestohighlightedLogIndicesacross selection manager, components, and templates to follow standard past-participle adjective naming for state.shownLogs/shownLogIdstovisibleLogIdsandvisibleLogsCountinLogListComponentto align withvisibleTimelinessemantics.Log List Memory & Performance Optimization:
allLogs: Log[]object array inLogListComponentwith domainlogStore: LogStore.LogListComponentto computevisibleLogIds: number[](raw numeric IDs) instead of instantiating an entireLog[]adapter array.Logadapters on-demand per rendered row inside the CDK Virtual Scroll viewport viastore.getLog(logId).allLogscomputed signal fromLogSmartComponent.Verification
make pre-commit: PASSEDmake test-web: PASSED (1088/1088 tests passing)make build-storybook: PASSED