-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react-components): cogs fixups and bump to 0.60.2 (#4803)
* chore: fix smaller things in UI - Hide empty model lists - Make "Select cover overlay" a section header - Add padding to the right side of icons in flex list * fix: enable closing toolbar button menus * chore: make more improvements to SettingsButton et al. * chore: lint fix * chore: some cleanup and de-bold the label * chore: lint fix * feat: support dividers in BaseSettings * fixup! feat: support dividers in BaseSettings * fixup! feat: support dividers in BaseSettings * chore: begin small rewrite * chore: create divider command * chore: suggested solution to show selected label * chore: update visual test image * chore: lint fix * chore: remove unused file * chore: move files, remove superfluous divider * fix: Select box in option dropdown and filter button * chore: Change chevron direction on open and refactor slightly * chore: remove unused import --------- Co-authored-by: Nils Petter Fremming <[email protected]>
- Loading branch information
1 parent
940b87e
commit c493c61
Showing
18 changed files
with
384 additions
and
173 deletions.
There are no files selected for viewing
This file contains 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
10 changes: 10 additions & 0 deletions
10
react-components/src/architecture/base/commands/DividerCommand.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*! | ||
* Copyright 2024 Cognite AS | ||
*/ | ||
import { RenderTargetCommand } from './RenderTargetCommand'; | ||
|
||
export class DividerCommand extends RenderTargetCommand { | ||
public override get isVisible(): boolean { | ||
return true; | ||
} | ||
} |
This file contains 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
15 changes: 15 additions & 0 deletions
15
react-components/src/architecture/base/concreteCommands/PointCloudDividerCommand.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/*! | ||
* Copyright 2024 Cognite AS | ||
*/ | ||
import { type BaseCommand } from '../commands/BaseCommand'; | ||
import { DividerCommand } from '../commands/DividerCommand'; | ||
|
||
export class PointCloudDividerCommand extends DividerCommand { | ||
public override get isVisible(): boolean { | ||
return this.renderTarget.getPointClouds().next().value !== undefined; | ||
} | ||
|
||
public override equals(other: BaseCommand): boolean { | ||
return this === other; | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.