From 3e59dc2cdcf1fd6963e32eba776af5bc14d8b1db Mon Sep 17 00:00:00 2001 From: Sadiq Khoja Date: Fri, 28 Feb 2025 15:40:01 -0500 Subject: [PATCH] Feature getodk/central#824: Redesign top section of Entities and Submissions pages --- src/assets/scss/app.scss | 37 ++++++++++ src/components/audit/filters.vue | 4 +- src/components/audit/filters/action.vue | 4 +- src/components/audit/list.vue | 4 +- src/components/dataset/entities.vue | 55 ++++++++++----- src/components/date-range-picker.vue | 44 +++++++++--- src/components/entity/download-button.vue | 17 +---- src/components/entity/filters.vue | 2 +- src/components/entity/filters/conflict.vue | 12 +++- src/components/entity/list.vue | 29 ++------ src/components/form/submissions.vue | 70 ++++++++++++------- src/components/multiselect.vue | 30 ++++++-- src/components/odata/data-access.vue | 14 ++-- src/components/submission/download-button.vue | 27 +------ src/components/submission/field-dropdown.vue | 4 +- src/components/submission/filters.vue | 4 +- .../submission/filters/review-state.vue | 11 ++- .../submission/filters/submitter.vue | 12 +++- src/components/submission/list.vue | 28 +++++--- src/components/table-freeze.vue | 2 +- src/locales/en.json5 | 6 +- test/components/date-range-picker.spec.js | 22 +----- .../components/entity/download-button.spec.js | 6 +- test/components/entity/list.spec.js | 13 ++-- test/components/form-draft/testing.spec.js | 2 +- test/components/form/submissions.spec.js | 2 +- .../submission/download-button.spec.js | 6 +- test/components/submission/download.spec.js | 12 ++++ test/components/submission/list.spec.js | 21 ++++-- test/util/entity.js | 3 + transifex/strings_en.json | 36 ++++------ 31 files changed, 318 insertions(+), 221 deletions(-) diff --git a/src/assets/scss/app.scss b/src/assets/scss/app.scss index 4fe0de654..3abffbc52 100644 --- a/src/assets/scss/app.scss +++ b/src/assets/scss/app.scss @@ -336,7 +336,17 @@ a { > .btn-default + .btn-default { border-left: 1px solid #ccc; } } +.btn-outlined { + background-color: #fff; + color: $color-action-background; + border: 1px solid $color-action-background; + &:hover, &:focus, &:active:focus { + color: #fff; + background-color: $color-action-background; + &[aria-disabled="true"], &.disabled, fieldset[disabled] & { background-color: #ddd; } + } +} //////////////////////////////////////////////////////////////////////////////// // DROPDOWN MENUS @@ -535,6 +545,7 @@ select { .icon-filter { color: #999; margin-right: $margin-right-icon; + font-size: 20px; } } @@ -927,4 +938,30 @@ becomes more complicated. .odk-form :not(svg|*) { all: revert; +} + +//////////////////////////////////////////////////////////////////////////////// +// The action bar shown above the data table + +.table-actions-bar { + background-color: $color-subpanel-background; + padding: 10px 20px; + + .form-inline { + margin-bottom: 0; + padding-bottom: 0; + } + + .form-label { + height: auto; + cursor: pointer; + } + + .form-group .form-control { + border-bottom: none; + } + + .form-group + .form-group { + margin-left: 30px; + } } \ No newline at end of file diff --git a/src/components/audit/filters.vue b/src/components/audit/filters.vue index a0a42a7d3..7ec4cc494 100644 --- a/src/components/audit/filters.vue +++ b/src/components/audit/filters.vue @@ -12,12 +12,12 @@ except according to the terms contained in the LICENSE file. diff --git a/src/components/audit/filters/action.vue b/src/components/audit/filters/action.vue index 0047acd69..f5c7f5708 100644 --- a/src/components/audit/filters/action.vue +++ b/src/components/audit/filters/action.vue @@ -10,8 +10,8 @@ including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the LICENSE file. -->