-
Notifications
You must be signed in to change notification settings - Fork 168
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
CSE Machine: Remove old components and make compact components the default #2848
Conversation
…e old components. Also removes the experimental button toggle.
Is this PR ready @CZX123 ? I got the email for the review but the status is still draft. |
Yup, it's ready, was just waiting for the checks first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we getting rid of the old grid system with ArrayLevel
, ArrowLane
, FrameLevel
, and Grid
entirely?
arrayUnit: ReferenceType | ReferenceType; | ||
referencedBy: (ReferenceType | ReferenceType)[]; | ||
|
||
constructor(referencedBy: ReferenceType[]) { | ||
constructor(referencedBy: (ReferenceType | ReferenceType)[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReferenceType | ReferenceType
is just ReferenceType
. Could you clean this up? Thanks!
Layout.values.clear(); | ||
Layout.compactValues.forEach((v, d) => { | ||
v.reset(); | ||
}); | ||
Layout.compactValues.clear(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we not need the .forEach
in the new Layout.values
anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the loop seems to be unnecessary, I'll remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
…fault (#2848) * Make compact components the new default and remove any mentions to the old components. Also removes the experimental button toggle. * Update test snapshots * Clean up testing code a little * Formatting changes * Fix some minor issues
…fault (#2848) * Make compact components the new default and remove any mentions to the old components. Also removes the experimental button toggle. * Update test snapshots * Clean up testing code a little * Formatting changes * Fix some minor issues
Description
This PR refactors the components inside the CSE Machine, such that the compact components are now the default components. Fixes #2845
Changes
compact
.Grid
component.SideContentCseMachine
component.