Repository navigation
refactor(web): clean up unused frontend store fields and worker remnants - #913
Merged
Merged
Conversation
Remove obsolete fields, methods, and types in the frontend store that were rendered redundant after moving search and body inspection handling to the backend: - Remove timeline severities buffer allocation, memory layout, and the O(T*(R+E)) initialization loop in TimelineStore. - Remove hasSeverity() from Timeline and _hasSeverities() from TimelineStore. - Remove SharedData interfaces, fromSharedData(), getSharedData(), mapMetadataViews(), and readOnly flags across LogStore, TimelineStore, InternPoolStore, and StyleStore. - Remove orphaned worker store files (worker-style-store.ts, worker-types.ts). - Update unit tests to reflect the removed methods and classes.
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
August 26, 2026 15:20
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes shared memory and WebWorker-related shared data structures, read-only modes, and their associated tests across several store classes, including InternPoolStore, LogStore, StyleStore, and TimelineStore. Feedback is provided on the InternPoolStore constructor, where an odd initialCapacity could cause a RangeError due to alignment mismatch when creating Uint32Array views; a code suggestion is included to dynamically align the capacity to an even number.
kyasbal
commented
Aug 27, 2026
…alization - Add align() memory utility to ensure TypedArray offsets meet alignment requirements - Unify TimelineStore, LogStore, and InternPoolStore initialization into static initialize() factories - Remove create(), obsolete initialCapacity, and unused bufferSabs - Rename metadataSab to metadataBuffer across stores - Update InspectionDataBuilder, mocks, tests, and stories to use the static initialize factories
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
Remove obsolete fields, methods, and types in the frontend store that were rendered redundant after moving search and body inspection handling to the backend:
TimelineStore.hasSeverity()fromTimelineand_hasSeverities()fromTimelineStore.SharedDatainterfaces,fromSharedData(),getSharedData(),mapMetadataViews(), andreadOnlyflags acrossLogStore,TimelineStore,InternPoolStore, andStyleStore.worker-style-store.ts,worker-types.ts).Testing
make format-webmake lint-webmake test-web(all 798 tests pass)make build-webmake pre-commit