From 27216b54367f32a0ffb07aaba53d40044e36e933 Mon Sep 17 00:00:00 2001 From: Doug Martin Date: Tue, 2 Jul 2024 06:49:37 -0400 Subject: [PATCH] fix: Change run picker menu to use three dots and update stop timeseries icon [PT-187736835] --- src/mobile-app/components/run-picker.tsx | 2 +- src/shared/components/data-table-field.module.scss | 4 ++++ src/shared/components/data-table-field.tsx | 1 + src/shared/components/icon.tsx | 4 +++- src/shared/icons/more-button.svg | 5 +++++ src/shared/icons/stop-data-trial.svg | 2 +- 6 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 src/shared/icons/more-button.svg diff --git a/src/mobile-app/components/run-picker.tsx b/src/mobile-app/components/run-picker.tsx index 8e69144..13cb3b7 100644 --- a/src/mobile-app/components/run-picker.tsx +++ b/src/mobile-app/components/run-picker.tsx @@ -26,7 +26,7 @@ export const RunPicker: React.FC = ({ runs, onRunSelect, onRunUpload, on
Upload
: undefined}
- + {onRunEdit ? Edit : undefined} {onRunUpload ? Upload : undefined} {onRunDelete ? Delete : undefined} diff --git a/src/shared/components/data-table-field.module.scss b/src/shared/components/data-table-field.module.scss index b5cc969..a4728a4 100644 --- a/src/shared/components/data-table-field.module.scss +++ b/src/shared/components/data-table-field.module.scss @@ -174,6 +174,10 @@ $headerBorder: #fff; &.record { background-color: $sensorGreenLight1; } + &.timeSeriesStop { + background-color: #fff; + border: 4px solid #00a80a; + } &:hover:not(.disabled) { cursor: pointer; } diff --git a/src/shared/components/data-table-field.tsx b/src/shared/components/data-table-field.tsx index 2a123e8..fe237bc 100644 --- a/src/shared/components/data-table-field.tsx +++ b/src/shared/components/data-table-field.tsx @@ -461,6 +461,7 @@ export const DataTableField: React.FC = props => { [css.refresh]: !sensorFieldsBlank, [css.record]: sensorFieldsBlank, [css.disabled]: buttonDisabled, + [css.timeSeriesStop]: iconName === "stopDataTrial", }); const refreshBtnCell = { diff --git a/src/shared/components/icon.tsx b/src/shared/components/icon.tsx index 13d145b..4155b3f 100644 --- a/src/shared/components/icon.tsx +++ b/src/shared/components/icon.tsx @@ -21,6 +21,7 @@ import RecordDataTrial from "../icons/record-data-trial.svg"; import ReRecordDataTrial from "../icons/re-record-data-trial.svg"; import StopDataTrial from "../icons/stop-data-trial.svg"; import DeleteDataTrial from "../icons/delete-data-trial.svg"; +import More from "../icons/more-button.svg"; const Icons = { label: Label, @@ -44,7 +45,8 @@ const Icons = { recordDataTrial: RecordDataTrial, reRecordDataTrial: ReRecordDataTrial, stopDataTrial: StopDataTrial, - deleteDataTrial: DeleteDataTrial + deleteDataTrial: DeleteDataTrial, + more: More }; export type IconName = keyof typeof Icons; diff --git a/src/shared/icons/more-button.svg b/src/shared/icons/more-button.svg new file mode 100644 index 0000000..1f96873 --- /dev/null +++ b/src/shared/icons/more-button.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/shared/icons/stop-data-trial.svg b/src/shared/icons/stop-data-trial.svg index 5c4dd95..9ce2d99 100644 --- a/src/shared/icons/stop-data-trial.svg +++ b/src/shared/icons/stop-data-trial.svg @@ -5,7 +5,7 @@ - +