-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bug/vizro_ai/missing_argument
- Loading branch information
Showing
19 changed files
with
180 additions
and
69 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
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
47 changes: 47 additions & 0 deletions
47
...core/changelog.d/20240103_170310_huong_li_nguyen_replace_selected_components.md
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,47 @@ | ||
<!-- | ||
A new scriv changelog fragment. | ||
Uncomment the section that is right (remove the HTML comment wrapper). | ||
--> | ||
|
||
<!-- | ||
### Highlights ✨ | ||
- A bullet item for the Highlights ✨ category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Removed | ||
- A bullet item for the Removed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Added | ||
- A bullet item for the Added category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Changed | ||
- A bullet item for the Changed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Deprecated | ||
- A bullet item for the Deprecated category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
|
||
### Fixed | ||
|
||
- Add CSS for `dmc.Switch` and fix CSS when toggle-switch is turned on ([#244](https://github.com/mckinsey/vizro/pull/244)) | ||
|
||
<!-- | ||
### Security | ||
- A bullet item for the Security category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> |
48 changes: 48 additions & 0 deletions
48
vizro-core/changelog.d/20240109_111254_alexey_snigir_fix_running_status.md
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,48 @@ | ||
<!-- | ||
A new scriv changelog fragment. | ||
Uncomment the section that is right (remove the HTML comment wrapper). | ||
--> | ||
|
||
<!-- | ||
### Highlights ✨ | ||
- A bullet item for the Highlights ✨ category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Removed | ||
- A bullet item for the Removed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Added | ||
- A bullet item for the Added category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Changed | ||
- A bullet item for the Changed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Deprecated | ||
- A bullet item for the Deprecated category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Fixed | ||
- A bullet item for the Fixed category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> | ||
<!-- | ||
### Security | ||
- A bullet item for the Security category with a link to the relevant PR at the end of your entry, e.g. Enable feature XXX ([#1](https://github.com/mckinsey/vizro/pull/1)) | ||
--> |
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
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
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
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 |
---|---|---|
@@ -1,48 +1,43 @@ | ||
/* Toggle Container */ | ||
#theme_selector .jAjsxw { | ||
.toggle-switch { | ||
width: 32px; | ||
} | ||
|
||
/* Toggle */ | ||
#theme_selector .gJuplL, | ||
#theme_selector .cmSQpo { | ||
background: var(--fill-subtle); | ||
border: 1px solid var(--border-enabled); | ||
border-radius: 16px; | ||
display: flex; | ||
flex-shrink: 0; | ||
height: 16px; | ||
#page-container .mantine-Switch-track { | ||
min-width: 32px; | ||
width: 32px; | ||
height: 16px; | ||
background-color: var(--fill-subtle); | ||
border-radius: 16px; | ||
border: 1px solid var(--border-enabled); | ||
} | ||
|
||
#page-container .mantine-Switch-track:focus { | ||
border: 2px solid var(--focus-focus); | ||
} | ||
|
||
#theme_selector .gJuplL:active, | ||
#theme_selector .cmSQpo:active { | ||
background: var(--fill-high-emphasis); | ||
#page-container .mantine-Switch-input { | ||
margin: 0; | ||
} | ||
|
||
#theme_selector .gJuplL:focus, | ||
#theme_selector .cmSQpo:focus { | ||
border: 2px solid var(--focus-focus); | ||
#page-container .mantine-Switch-trackLabel { | ||
margin: 0; | ||
width: 32px; | ||
height: 16px; | ||
} | ||
|
||
/* Switch */ | ||
#theme_selector .dlqMgb, | ||
#theme_selector .igrnnx { | ||
background: var(--fill-medium-emphasis); | ||
#page-container .mantine-Switch-thumb { | ||
border: none; | ||
border-radius: 10px; | ||
flex-shrink: 0; | ||
height: 10px; | ||
transform: translateX(1px); | ||
width: 10px; | ||
height: 10px; | ||
background-color: var(--fill-medium-emphasis); | ||
} | ||
|
||
#theme_selector .igrnnx { | ||
transform: translateX(16px); | ||
#page-container input:checked + * > .mantine-11dx59s { | ||
left: calc(100% - 12px); | ||
background: var(--text-contrast-primary); | ||
} | ||
|
||
#theme_selector .dlqMgb:active, | ||
#theme_selector .igrnnx:active { | ||
background: var(--fill-contrast-hover-selected); | ||
border: 1px solid var(--border-contrast-selected); | ||
#page-container input:checked + * > .mantine-69c9zd { | ||
background: var(--text-primary); | ||
border-color: var(--border-enabled); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export function _update_dashboard_theme(on) { | ||
return on ? "vizro_dark" : "vizro_light"; | ||
export function _update_dashboard_theme(checked) { | ||
return checked ? "vizro_light" : "vizro_dark"; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { _update_dashboard_theme } from "../../../src/vizro/static/js/models/dashboard.js"; | ||
|
||
test("true returns vizro_dark and false vizro_light", () => { | ||
expect(_update_dashboard_theme(true)).toBe("vizro_dark"); | ||
expect(_update_dashboard_theme(false)).toBe("vizro_light"); | ||
test("true returns vizro_light and false vizro_dark", () => { | ||
expect(_update_dashboard_theme(true)).toBe("vizro_light"); | ||
expect(_update_dashboard_theme(false)).toBe("vizro_dark"); | ||
}); |
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
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.