[improvement][headless-fe] Optimized the logic for initializing indicators in dimension value settings. (#929)

* [improvement][semantic-fe] Add model alias setting & Add view permission restrictions to the model permission management tab.
[improvement][semantic-fe] Add permission control to the action buttons for the main domain; apply high sensitivity filtering to the authorization of metrics/dimensions.
[improvement][semantic-fe] Optimize the editing mode in the dimension/metric/datasource components to use the modelId stored in the database for data, instead of relying on the data from the state manager.

* [improvement][semantic-fe] Add time granularity setting in the data source configuration.

* [improvement][semantic-fe] Dictionary import for dimension values supported in Q&A visibility

* [improvement][semantic-fe] Modification of data source creation prompt wording"

* [improvement][semantic-fe] metric market experience optimization

* [improvement][semantic-fe] enhance the analysis of metric trends

* [improvement][semantic-fe] optimize the presentation of metric trend permissions

* [improvement][semantic-fe] add metric trend download functionality

* [improvement][semantic-fe] fix the dimension initialization issue in metric correlation

* [improvement][semantic-fe] Fix the issue of database changes not taking effect when creating based on an SQL data source.

* [improvement][semantic-fe] Optimizing pagination logic and some CSS styles

* [improvement][semantic-fe] Fixing the API for the indicator list by changing "current" to "pageNum"

* [improvement][semantic-fe] Fixing the default value setting for the indicator list

* [improvement][semantic-fe] Adding batch operations for indicators/dimensions/models

* [improvement][semantic-fe] Replacing the single status update API for indicators/dimensions with a batch update API

* [improvement][semantic-fe] Redesigning the indicator homepage to incorporate trend charts and table functionality for indicators

* [improvement][semantic-fe] Optimizing the logic for setting dimension values and editing data sources, and adding system settings functionality

* [improvement][semantic-fe] Upgrading antd version to 5.x, extracting the batch operation button component, optimizing the interaction for system settings, and expanding the configuration generation types for list-to-select component.

* [improvement][semantic-fe] Adding the ability to filter dimensions based on whether they are tags or not.

* [improvement][semantic-fe] Adding the ability to edit relationships between models in the canvas.

* [improvement][semantic-fe] Updating the datePicker component to use dayjs instead.

* [improvement][semantic-fe] Fixing the issue with passing the model ID for dimensions in the indicator market.

* [improvement][semantic-fe] Fixing the abnormal state of the popup when creating a model.

* [improvement][semantic-fe] Adding permission logic for bulk operations in the indicator market.

* [improvement][semantic-fe] Adding the ability to download and transpose data.

* [improvement][semantic-fe] Fixing the initialization issue with the date selection component in the indicator details page when switching time granularity.

* [improvement][semantic-fe] Fixing the logic error in the dimension value setting.

* [improvement][semantic-fe] Fixing the synchronization issue with the question and answer settings information.

* [improvement][semantic-fe] Optimizing the canvas functionality for better performance and user experience.

* [improvement][semantic-fe] Optimizing the update process for drawing model relationship edges in the canvas.

* [improvement][semantic-fe] Changing the line type for canvas connections.

* [improvement][semantic-fe] Replacing the initialization variable from "semantic" to "headless".

* [improvement][semantic-fe] Fixing the missing migration issue for default drill-down dimension configuration in model editing. Additionally, optimizing the data retrieval method for initializing fields in the model.

* [improvement][semantic-fe] Updating the logic for the fieldName.

* [improvement][semantic-fe] Adjusting the position of the metrics tab.

* [improvement][semantic-fe] Changing the 字段名称 to 英文名称.

* [improvement][semantic-fe] Fix metric measurement deletion.

* [improvement][semantic-fe] UI optimization for metric details page.

* [improvement][semantic-fe] UI optimization for metric details page.

* [improvement][semantic-fe] UI adjustment for metric details page.

* [improvement][semantic-fe] The granularity field in the time type of model editing now supports setting it as empty.

* [improvement][semantic-fe] Added field type and metric type to the metric creation options.

* [improvement][semantic-fe] The organization structure selection feature has been added to the permission management.

* [improvement][semantic-fe] Improved user experience for the metric list.

* [improvement][semantic-fe] fix update the metric list.

* [improvement][headless-fe] Added view management functionality.

* [improvement][headless-fe] The view management functionality has been added. This feature allows users to create, edit, and manage different views within the system.

* [improvement][headless-fe] Added model editing side effect detection.

* [improvement][headless-fe] Fixed the logic error in view editing.

* [improvement][headless-fe] Fixed the issue with initializing dimension associations in metric settings.

* [improvement][headless-fe] Added the ability to hide the Q&A settings entry point.

* [improvement][headless-fe] Fixed the issue with selecting search results in metric field creation.

* [improvement][headless-fe] Added search functionality to the field list in model editing.

* [improvement][headless-fe] fix the field list in model editing

* [improvement][headless-fe] Restructured the data for the dimension value settings interface.

* [improvement][headless-fe] Added dynamic variable functionality to model creation based on SQL scripts.

* [improvement][headless-fe] Added support for passing dynamic variables as parameters in the executeSql function.

* [improvement][headless-fe] Resolved the issue where users were unable to select all options for dimensions, metrics, and fields in the metric generation process.

* [improvement][headless-fe] Replaced the term "view" with "dataset"

* [improvement][headless-fe] Added the ability to export metrics and dimensions to a specific target.

* [improvement][headless-fe] Enhanced dataset creation to support the tag mode.

* [improvement][headless-fe] Added tag value setting.

* [improvement][headless-fe] Optimized the tag setting system.

* [improvement][headless-fe] Optimized the tag setting system.

* [improvement][headless-fe] Updated the data initialization for model editing to use API requests instead.

* [improvement][headless-fe] Added search functionality to model management.

* [improvement][headless-fe] Removed field null validation during model editing.

* [improvement][headless-fe] Updated the batch operation button component.

* [improvement][headless-fe] Optimized the logic for initializing indicators in dimension value settings.

* [improvement][headless-fe] Adjusted the length of the input field for model editing names.

* [improvement][headless-fe]  Lock the version of the @ant-design/pro-table component and replace it with @ant-design/pro-components.

* [improvement][headless-fe] Optimized the style of the metrics market and tags market.
This commit is contained in:
tristanliu
2024-04-22 15:38:59 +08:00
committed by GitHub
parent f9dd6d8c26
commit 4238927b82
10 changed files with 785 additions and 784 deletions

View File

@@ -1,422 +1,422 @@
.metricFilterWrapper {
margin: 20px;
padding: 20px;
border-radius: 10px;
padding-bottom: 5px;
background: #fff;
margin: 20px;
padding: 20px;
padding-bottom: 5px;
background: #fff;
border-radius: 10px;
}
.metricTable {
margin: 20px;
margin: 20px;
:global {
.ant-pro-card-body {
padding: 0;
}
}
}
.table {
overflow: auto;
overflow: auto;
}
.metricBasicInfo {
.label {
font-size: 14px;
color: rgb(95, 116, 141);
}
div {
min-width: 300px;
font-size: 15px;
margin-bottom: 10px;
color: rgb(18, 31, 67);
}
}
.caliberTitle {
font-weight: 500;
font-size: 16px;
margin-bottom: 20px;
.label {
color: rgb(95, 116, 141);
font-size: 14px;
}
div {
min-width: 300px;
margin-bottom: 10px;
color: rgb(18, 31, 67);
font-size: 15px;
}
}
.caliberTitle {
margin-bottom: 20px;
color: rgb(18, 31, 67);
font-weight: 500;
font-size: 16px;
}
.caliberSubTitle {
font-weight: 500;
font-size: 14px;
color: rgb(33, 43, 54);
color: rgb(33, 43, 54);
font-weight: 500;
font-size: 14px;
}
.defineDataTable{
width: 600px;
background-color: rgb(255, 255, 255);
color: rgb(67, 71, 75);
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
border-radius: 6px;
box-shadow: rgba(114, 117, 120, 0.14) 0px 9px 16px, rgba(179, 181, 183, 0.38) 0px 0px 2px;
overflow: hidden;
:global {
.ant-table-thead {
font-size: 13px;
}
.defineDataTable {
width: 600px;
overflow: hidden;
color: rgb(67, 71, 75);
background-color: rgb(255, 255, 255);
border-radius: 6px;
box-shadow: rgba(114, 117, 120, 0.14) 0px 9px 16px, rgba(179, 181, 183, 0.38) 0px 0px 2px;
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
:global {
.ant-table-thead {
font-size: 13px;
}
}
}
.caliberDesc {
font-size: 14px;
color: #bdbdbd;
color: #bdbdbd;
font-size: 14px;
}
.searchBox {
// margin-bottom: 12px;
background: #fff;
width: 740px;
margin: 0 auto;
// margin-bottom: 12px;
background: #fff;
border-radius: 10px;
.searchInput {
width: 100%;
border: 1px solid rgba(35, 104, 184, 0.6);
border-radius: 10px;
width: 740px;
margin: 0 auto;
.searchInput {
width: 100%;
border: 1px solid rgba(35, 104, 184, 0.6);
border-radius: 10px;
}
:global {
.ant-select-auto-complete {
width: 100%;
}
:global {
.ant-input {
height: 50px;
padding: 0 15px;
color: #515a6e;
font-size: 14px;
line-height: 50px;
background: hsla(0, 0%, 100%, 0.2);
border: none;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
caret-color: #296df3;
.ant-select-auto-complete {
width: 100%;
}
.ant-input {
height: 50px;
padding: 0 15px;
color: #515a6e;
font-size: 14px;
line-height: 50px;
background: hsla(0, 0%, 100%, 0.2);
border: none;
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
caret-color: #296df3;
&:focus {
border-right-width: 0 !important;
box-shadow: none;
}
}
.ant-input-group-addon {
left: 0 !important;
padding: 0;
background: hsla(0, 0%, 100%, 0.2);
border: none;
border-top-left-radius: 0;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 0;
.ant-btn {
width: 72px;
height: 50px;
margin: 0;
color: rgba(35, 104, 184, 0.6);
font-size: 16px;
background-color: transparent;
background-color: transparent;
border: none;
box-shadow: none !important;
&::after {
box-shadow: none !important;
}
.anticon {
font-size: 28px;
&:hover {
color: @primary-color;
}
}
}
}
&:focus {
border-right-width: 0 !important;
box-shadow: none;
}
}
.ant-input-group-addon {
left: 0 !important;
padding: 0;
background: hsla(0, 0%, 100%, 0.2);
border: none;
border-top-left-radius: 0;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 0;
.ant-btn {
width: 72px;
height: 50px;
margin: 0;
color: rgba(35, 104, 184, 0.6);
font-size: 16px;
background-color: transparent;
background-color: transparent;
border: none;
box-shadow: none !important;
&::after {
box-shadow: none !important;
}
.anticon {
font-size: 28px;
&:hover {
color: @primary-color;
}
}
}
}
}
}
.overviewExtraContainer {
display: flex;
font-size: 14px;
.extraWrapper {
display: flex;
font-size: 14px;
.extraWrapper {
display: flex;
width: 100%;
.extraStatistic {
display: inline-flex;
color: rgba(42, 46, 54, 0.65);
box-sizing: border-box;
margin: 0;
padding: 0;
font-size: 14px;
line-height: 1.5714285714285714;
list-style: none;
.extraTitle {
// font-size: 12px;
min-width: 50px;
margin-inline-end: 6px;
margin-block-end: 0;
margin-bottom: 4px;
color: rgba(42, 46, 54, 0.45);
}
.extraValue {
font-size: 12px;
color: rgba(42, 46, 54, 0.65);
display: inline-block;
direction: ltr;
}
}
width: 100%;
.extraStatistic {
display: inline-flex;
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(42, 46, 54, 0.65);
font-size: 14px;
line-height: 1.5714285714285714;
list-style: none;
.extraTitle {
// font-size: 12px;
min-width: 50px;
margin-bottom: 4px;
color: rgba(42, 46, 54, 0.45);
margin-inline-end: 6px;
margin-block-end: 0;
}
.extraValue {
display: inline-block;
color: rgba(42, 46, 54, 0.65);
font-size: 12px;
direction: ltr;
}
}
}
}
.metricDetailWrapper {
height: calc(100vh - 56px);
overflow: scroll;
.metricDetailTab {
:global {
.ant-tabs-nav {
background-color: rgb(255, 255, 255);
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
margin: 10px 20px 0 20px;
padding: 0 20px;
border-radius: 8px;
}
.ant-tabs-tab {
padding: 12px 0;
color: #344767;
font-weight: 500;
}
}
height: calc(100vh - 56px);
overflow: scroll;
.metricDetailTab {
:global {
.ant-tabs-nav {
margin: 10px 20px 0 20px;
padding: 0 20px;
background-color: rgb(255, 255, 255);
border-radius: 8px;
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.ant-tabs-tab {
padding: 12px 0;
color: #344767;
font-weight: 500;
}
}
.metricDetail {
display: flex;
padding: 0px;
width: 100%;
background-color: transparent;
}
.metricDetail {
position: relative;
display: flex;
flex-direction: row;
width: 100%;
padding: 0px;
background-color: transparent;
.tabContainer {
width: calc(100vw - 450px);
background-color: rgb(240, 242, 245);
}
.metricInfoContent {
padding: 25px;
.title {
position: relative;
flex-direction: row;
.tabContainer {
background-color: rgb(240, 242, 245);
width: calc(100vw - 450px);
}
.metricInfoContent {
padding:25px;
.title {
margin-bottom: 12px;
font-size: 16px;
color: #0e73ff;
font-weight: bold;
position: relative;
&::before {
display: block;
position: absolute;
content: "";
left: -10px;
top: 10px;
height: 14px;
width: 3px;
font-size: 0;
background: #0e73ff;
border-radius: 2px;
border: 1px solid #0e73ff;
}
}
}
.siderContainer {
background-color: rgb(255, 255, 255);
width: 450px;
min-height: calc(100vh - 78px);
margin: 10px 20px 20px 0;
border-radius: 6px;
box-shadow: rgba(0, 0, 0, 0.08) 6px 0px 16px 0px, rgba(0, 0, 0, 0.12) 3px 0px 6px -4px, rgba(0, 0, 0, 0.05) 9px 0px 28px 8px;
margin-bottom: 12px;
color: #0e73ff;
font-weight: bold;
font-size: 16px;
&::before {
position: absolute;
top: 10px;
left: -10px;
display: block;
width: 3px;
height: 14px;
font-size: 0;
background: #0e73ff;
border: 1px solid #0e73ff;
border-radius: 2px;
content: '';
}
}
}
.siderContainer {
width: 450px;
min-height: calc(100vh - 78px);
margin: 10px 20px 20px 0;
background-color: rgb(255, 255, 255);
border-radius: 6px;
box-shadow: rgba(0, 0, 0, 0.08) 6px 0px 16px 0px, rgba(0, 0, 0, 0.12) 3px 0px 6px -4px,
rgba(0, 0, 0, 0.05) 9px 0px 28px 8px;
}
}
}
.sectionBox {
margin: 20px;
padding: 10px;
box-shadow: #888888 0px 0px 1px, rgba(29, 41, 57, 0.08) 0px 1px 3px;
background-color: rgb(255, 255, 255);
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
border-radius: 6px;
background-image: none;
overflow: hidden;
position: relative;
position: relative;
margin: 20px;
padding: 10px;
overflow: hidden;
background-color: rgb(255, 255, 255);
background-image: none;
border-radius: 6px;
box-shadow: #888888 0px 0px 1px, rgba(29, 41, 57, 0.08) 0px 1px 3px;
transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}
.metricInfoSider{
padding: 24px;
color: #344767;
.gotoMetricListIcon {
color: #3182ce;
cursor: pointer;
&:hover {
color: #5493ff;
}
.metricInfoSider {
padding: 24px;
color: #344767;
.gotoMetricListIcon {
color: #3182ce;
cursor: pointer;
&:hover {
color: #5493ff;
}
.title {
.name {
font-size: 18px;
font-weight: 600;
}
.bizName {
margin: 5px 0 0 25px;
color: #7b809a;
font-weight: 400;
}
}
.title {
.name {
font-weight: 600;
font-size: 18px;
}
.desc {
font-size: 14px;
font-weight: 500;
line-height: 1.9;
margin-top: 8px;
display: block;
color: #7b809a;
.bizName {
margin: 5px 0 0 25px;
color: #7b809a;
font-weight: 400;
}
.subTitle {
margin: 0px;
font-size: 14px;
line-height: 1.25;
letter-spacing: 0.03333em;
}
.desc {
display: block;
margin-top: 8px;
color: #7b809a;
font-weight: 500;
font-size: 14px;
line-height: 1.9;
}
.subTitle {
margin: 0px;
color: rgb(123, 128, 154);
font-weight: 700;
font-size: 14px;
line-height: 1.25;
letter-spacing: 0.03333em;
text-transform: uppercase;
text-decoration: none;
vertical-align: unset;
opacity: 1;
}
.sectionContainer {
margin-top: 20px;
overflow: hidden;
// box-shadow: #888888 0px 0px 1px, rgba(29, 41, 57, 0.08) 0px 1px 3px;
background-image: none;
// transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
border-radius: 6px;
.section {
padding: 16px;
color: rgb(52, 71, 103);
line-height: 1.25;
background: transparent;
box-shadow: none;
opacity: 1;
.sectionTitleBox {
padding: 8px 0;
color: rgb(52, 71, 103);
background: transparent;
box-shadow: none;
opacity: 1;
text-transform: uppercase;
vertical-align: unset;
text-decoration: none;
color: rgb(123, 128, 154);
font-weight: 700;
}
.sectionContainer{
// transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
border-radius: 6px;
// box-shadow: #888888 0px 0px 1px, rgba(29, 41, 57, 0.08) 0px 1px 3px;
background-image: none;
margin-top: 20px;
overflow: hidden;
.section {
padding: 16px;
line-height: 1.25;
opacity: 1;
background: transparent;
color: rgb(52, 71, 103);
box-shadow: none;
.sectionTitleBox {
padding: 8px 0;
opacity: 1;
background: transparent;
color: rgb(52, 71, 103);
box-shadow: none;
.sectionTitle {
margin: 0px;
font-size: 16px;
line-height: 1.625;
letter-spacing: 0.0075em;
opacity: 1;
text-transform: capitalize;
vertical-align: unset;
text-decoration: none;
color: rgb(52, 71, 103);
font-weight: 600;
}
}
.sectionTitle {
margin: 0px;
color: rgb(52, 71, 103);
font-weight: 600;
font-size: 16px;
line-height: 1.625;
letter-spacing: 0.0075em;
text-transform: capitalize;
text-decoration: none;
vertical-align: unset;
opacity: 1;
}
}
.item {
display: flex;
padding-top: 8px;
padding-bottom: 8px;
padding-right: 16px;
opacity: 1;
background: transparent;
color: rgb(52, 71, 103);
box-shadow: none;
.itemLable {
margin: 0px;
font-size: 14px;
line-height: 1.5;
letter-spacing: 0.02857em;
opacity: 1;
text-transform: capitalize;
vertical-align: unset;
text-decoration: none;
color: #344767;
margin-right: 10px;
min-width: fit-content;
font-weight: 700;
}
.itemValue{
margin: 0px;
font-size: 14px;
line-height: 1.5;
letter-spacing: 0.02857em;
opacity: 1;
text-transform: none;
vertical-align: unset;
text-decoration: none;
color: #7b809a;
font-weight: 400;
}
}
.item {
display: flex;
padding-top: 8px;
padding-right: 16px;
padding-bottom: 8px;
color: rgb(52, 71, 103);
background: transparent;
box-shadow: none;
opacity: 1;
.itemLable {
min-width: fit-content;
margin: 0px;
margin-right: 10px;
color: #344767;
font-weight: 700;
font-size: 14px;
line-height: 1.5;
letter-spacing: 0.02857em;
text-transform: capitalize;
text-decoration: none;
vertical-align: unset;
opacity: 1;
}
.hr {
margin: 0px;
flex-shrink: 0;
// border-width: 0px 0px thin;
border-style: solid;
border-color: rgb(242, 244, 247);
}
.ctrlBox{
.ctrlList{
list-style: none;
margin: 0px;
padding: 8px 0px;
position: relative;
background-color: rgb(249, 250, 251);
li {
-webkit-tap-highlight-color: transparent;
background-color: transparent;
outline: 0px;
border: 0px;
margin: 4px;
border-radius: 0px;
cursor: pointer;
user-select: none;
vertical-align: middle;
appearance: none;
color: inherit;
display: flex;
-webkit-box-flex: 1;
flex-grow: 1;
-webkit-box-pack: start;
justify-content: flex-start;
-webkit-box-align: center;
align-items: center;
position: relative;
text-decoration: none;
min-width: 0px;
box-sizing: border-box;
text-align: left;
padding: 4px 16px;
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
&:hover {
text-decoration: none;
background-color: rgba(16, 24, 40, 0.04);
color: #3182ce;
}
}
.ctrlItemIcon {
flex-shrink: 0;
font-size: 14px;
margin-right: 5px;
min-width: unset;
}
.styles.ctrlItemLable {
margin: 0px;
line-height: 1.6;
font-weight: 400;
font-size: 14px;
display: block;
}
}
.itemValue {
margin: 0px;
color: #7b809a;
font-weight: 400;
font-size: 14px;
line-height: 1.5;
letter-spacing: 0.02857em;
text-transform: none;
text-decoration: none;
vertical-align: unset;
opacity: 1;
}
}
}
}
.hr {
flex-shrink: 0;
margin: 0px;
border-color: rgb(242, 244, 247);
// border-width: 0px 0px thin;
border-style: solid;
}
.ctrlBox {
.ctrlList {
position: relative;
margin: 0px;
padding: 8px 0px;
list-style: none;
background-color: rgb(249, 250, 251);
li {
position: relative;
display: flex;
flex-grow: 1;
align-items: center;
justify-content: flex-start;
box-sizing: border-box;
min-width: 0px;
margin: 4px;
padding: 4px 16px;
color: inherit;
text-align: left;
text-decoration: none;
vertical-align: middle;
background-color: transparent;
border: 0px;
border-radius: 0px;
outline: 0px;
cursor: pointer;
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
appearance: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
-webkit-box-flex: 1;
-webkit-box-pack: start;
-webkit-box-align: center;
&:hover {
color: #3182ce;
text-decoration: none;
background-color: rgba(16, 24, 40, 0.04);
}
}
.ctrlItemIcon {
flex-shrink: 0;
min-width: unset;
margin-right: 5px;
font-size: 14px;
}
.styles.ctrlItemLable {
display: block;
margin: 0px;
font-weight: 400;
font-size: 14px;
line-height: 1.6;
}
}
}
}
}