From 42d118aef2259a46951ff771b081d14e7bc3f116 Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Tue, 28 May 2024 10:37:47 +0700 Subject: [PATCH 01/15] MSP-3325 fix width applications-content --- src/components/ApplicationsContent/applications-content.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ApplicationsContent/applications-content.scss b/src/components/ApplicationsContent/applications-content.scss index aef6c57..64e8af8 100644 --- a/src/components/ApplicationsContent/applications-content.scss +++ b/src/components/ApplicationsContent/applications-content.scss @@ -3,7 +3,7 @@ .applications-content { height: 100%; display: grid; - grid-template-columns:300px 1fr; + grid-template-columns:min-content 1fr; width: 100%; .column-content { From 759f432e6c7c51598c3f998c22a5722dc9612c48 Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Tue, 28 May 2024 10:44:25 +0700 Subject: [PATCH 02/15] MSP-3325 remove word 'Configuration' from text --- src/components/ActiveConfigurationsTable/index.tsx | 2 +- src/components/CompareVersionModal/index.tsx | 2 +- src/components/ConfigSchemaModal/index.tsx | 2 +- src/pages/AllVersionsPage/index.tsx | 2 +- src/pages/ConfigurationsPage/index.tsx | 2 +- src/widgets/ActiveTableActionButtons/index.tsx | 8 +++++--- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/components/ActiveConfigurationsTable/index.tsx b/src/components/ActiveConfigurationsTable/index.tsx index 40e260f..dd20d70 100644 --- a/src/components/ActiveConfigurationsTable/index.tsx +++ b/src/components/ActiveConfigurationsTable/index.tsx @@ -151,7 +151,7 @@ const ActiveConfigurationsTable: FC = align: 'center' }, { - title: 'Статус конфигурации', + title: 'Статус', dataIndex: 'valid', key: 'version', align: 'center', diff --git a/src/components/CompareVersionModal/index.tsx b/src/components/CompareVersionModal/index.tsx index e11dddb..87d964d 100644 --- a/src/components/CompareVersionModal/index.tsx +++ b/src/components/CompareVersionModal/index.tsx @@ -45,7 +45,7 @@ const CompareVersionModal: FC = ({ const columns: ColumnsType = [ { key: 'configVersion', - title: 'Версия конфигурации', + title: 'Версия', dataIndex: 'configVersion' }, { diff --git a/src/components/ConfigSchemaModal/index.tsx b/src/components/ConfigSchemaModal/index.tsx index 0ba0b54..9731076 100644 --- a/src/components/ConfigSchemaModal/index.tsx +++ b/src/components/ConfigSchemaModal/index.tsx @@ -15,7 +15,7 @@ const ConfigSchemaModal: FC = ({ }) => { return (
- +
diff --git a/src/pages/AllVersionsPage/index.tsx b/src/pages/AllVersionsPage/index.tsx index 3a89b51..66a40fc 100644 --- a/src/pages/AllVersionsPage/index.tsx +++ b/src/pages/AllVersionsPage/index.tsx @@ -150,7 +150,7 @@ const AllVersionsPage = () => { const columns: ColumnsType = [ { key: 'configVersion', - title: 'Версия конфигурации', + title: 'Версия', dataIndex: 'configVersion' }, { diff --git a/src/pages/ConfigurationsPage/index.tsx b/src/pages/ConfigurationsPage/index.tsx index cb73230..fd02933 100644 --- a/src/pages/ConfigurationsPage/index.tsx +++ b/src/pages/ConfigurationsPage/index.tsx @@ -98,7 +98,7 @@ const Configurations = () => { className="configurations____buttons__show-schema-btn" onClick={() => setIsModalOpen(true)} > - Текущая схема конфигурации + Текущая схема diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 635dc2d..10f0f79 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -72,7 +72,7 @@ const LayoutComponent = () => { icon: }, { - label: 'Группы приложений', + label: 'Приложения', key: 'applications_group', className: hideItem([PermissionKeysType.read]), icon: diff --git a/src/pages/UserEditor/index.tsx b/src/pages/UserEditor/index.tsx index c4cd7df..92aac53 100644 --- a/src/pages/UserEditor/index.tsx +++ b/src/pages/UserEditor/index.tsx @@ -223,7 +223,8 @@ const UserEditor = () => {
Date: Tue, 28 May 2024 10:59:59 +0700 Subject: [PATCH 06/15] MSP-3325 add icon EllipsisOutlined in ActiveTableActionButtons --- src/widgets/ActiveTableActionButtons/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widgets/ActiveTableActionButtons/index.tsx b/src/widgets/ActiveTableActionButtons/index.tsx index 15d0a72..c7e70dd 100644 --- a/src/widgets/ActiveTableActionButtons/index.tsx +++ b/src/widgets/ActiveTableActionButtons/index.tsx @@ -4,7 +4,8 @@ import { EditOutlined, EyeOutlined, HistoryOutlined, - SwapOutlined + SwapOutlined, + EllipsisOutlined } from '@ant-design/icons' import { Button, Dropdown, Popconfirm, Tooltip } from 'antd' import { FC } from 'react' @@ -82,7 +83,7 @@ const ActiveTableActionButtons: FC = renderDropDown(record)}> - +
-
- -
{ />
)} - +
+ +
Date: Tue, 28 May 2024 11:03:28 +0700 Subject: [PATCH 08/15] MSP-3325 add title in Column in AppAccessPage --- src/pages/AppAccessPage/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/AppAccessPage/index.tsx b/src/pages/AppAccessPage/index.tsx index da4bd5a..6b73fbb 100644 --- a/src/pages/AppAccessPage/index.tsx +++ b/src/pages/AppAccessPage/index.tsx @@ -81,6 +81,7 @@ const AppAccessPage = () => { return (
Date: Tue, 28 May 2024 11:04:49 +0700 Subject: [PATCH 09/15] MSP-3325 change color Badge in ModulesPage --- src/pages/ModulesPage/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ModulesPage/index.tsx b/src/pages/ModulesPage/index.tsx index 97041dc..841b431 100644 --- a/src/pages/ModulesPage/index.tsx +++ b/src/pages/ModulesPage/index.tsx @@ -177,7 +177,7 @@ const ModulesPage = () => { size="small" showZero count={(item.status && item.status.length) || 0} - color={!item.status || !item.status.length ? '' : 'blue'} + color={!item.status || !item.status.length ? '' : 'cyan'} />
} From a22bbc6267b5c4799b84080c65859969df1392bf Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Tue, 28 May 2024 11:07:15 +0700 Subject: [PATCH 10/15] MSP-3325 move Button from Configurations to ActiveConfigurationsTable --- .../active-configurations-table.scss | 5 +++++ .../ActiveConfigurationsTable/index.tsx | 18 +++++++++++++++--- src/pages/ConfigurationsPage/index.tsx | 12 ------------ 3 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/components/ActiveConfigurationsTable/active-configurations-table.scss b/src/components/ActiveConfigurationsTable/active-configurations-table.scss index 49f287f..abe6085 100644 --- a/src/components/ActiveConfigurationsTable/active-configurations-table.scss +++ b/src/components/ActiveConfigurationsTable/active-configurations-table.scss @@ -41,4 +41,9 @@ background: $blue-color-2 !important; } } + + &__buttons { + display: flex; + justify-content: space-between; + } } diff --git a/src/components/ActiveConfigurationsTable/index.tsx b/src/components/ActiveConfigurationsTable/index.tsx index dd20d70..673abef 100644 --- a/src/components/ActiveConfigurationsTable/index.tsx +++ b/src/components/ActiveConfigurationsTable/index.tsx @@ -191,9 +191,21 @@ const ActiveConfigurationsTable: FC = const className = `active-configurations-table__table ${isActiveTable ? 'active-config' : ''}` return (
-

- {isActiveTable ? 'Активная конфигурация' : 'Другие конфигурации'} -

+
+

+ {isActiveTable ? 'Активная' : 'Остальные'} +

+ {!isActiveTable && + + } +
record.id} diff --git a/src/pages/ConfigurationsPage/index.tsx b/src/pages/ConfigurationsPage/index.tsx index fd02933..c0c5e78 100644 --- a/src/pages/ConfigurationsPage/index.tsx +++ b/src/pages/ConfigurationsPage/index.tsx @@ -3,7 +3,6 @@ import { useEffect, useMemo, useState } from 'react' import { Outlet, useNavigate, useParams } from 'react-router-dom' import ActiveConfigurationsTable from '@components/ActiveConfigurationsTable' -import CanEdit from '@components/CanEdit' import CompareVersionModal from '@components/CompareVersionModal' import ConfigSchemaModal from '@components/ConfigSchemaModal' import ConfigurationPreviewModal from '@components/ConfigurationPreviewModal' @@ -100,17 +99,6 @@ const Configurations = () => { > Текущая схема - - - Date: Tue, 28 May 2024 11:19:45 +0700 Subject: [PATCH 11/15] MSP-3325 update style in RolesContent, AllVersionsPage, UserEditor, Header and Modal --- src/components/RolesContent/index.tsx | 32 ++++++++++--------- .../RolesContent/roles-content.scss | 21 +++++++++++- src/pages/AllVersionsPage/index.tsx | 2 ++ src/pages/UserEditor/user-editor.scss | 4 +-- src/widgets/Header/header.scss | 3 +- src/widgets/Modal/modal.scss | 3 +- 6 files changed, 45 insertions(+), 20 deletions(-) diff --git a/src/components/RolesContent/index.tsx b/src/components/RolesContent/index.tsx index e83357e..b181427 100644 --- a/src/components/RolesContent/index.tsx +++ b/src/components/RolesContent/index.tsx @@ -93,7 +93,7 @@ const RolesContent = ({ dataSource={permissions} pagination={{ pageSize: 10 }} scroll={{ - y: 'calc(100vh - 450px)' + y: 'calc(100vh - 270px)' }} rowSelection={{ selectedRowKeys: value, @@ -140,20 +140,22 @@ const RolesContent = ({ /> - - +
+ + +
{renderFormTable()} diff --git a/src/components/RolesContent/roles-content.scss b/src/components/RolesContent/roles-content.scss index a7a94f2..f0eb845 100644 --- a/src/components/RolesContent/roles-content.scss +++ b/src/components/RolesContent/roles-content.scss @@ -1,11 +1,30 @@ @import "../../constants/style/styleConst"; .roles-content { - padding: $basic-padding*2 $basic-padding*3; + padding: $basic-padding*2 $basic-padding*3 0; min-width: 400px; + height: 100%; &__header { display: flex; justify-content: space-between; } + + &__wrap-input { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 10px; + } + + .ant-pagination { + margin: 8px 0 !important; + } + + .ant-divider-horizontal { + margin: 14px 0; + } + + .ant-form-item { + margin-bottom: 12px; + } } diff --git a/src/pages/AllVersionsPage/index.tsx b/src/pages/AllVersionsPage/index.tsx index 66a40fc..1890a87 100644 --- a/src/pages/AllVersionsPage/index.tsx +++ b/src/pages/AllVersionsPage/index.tsx @@ -108,6 +108,7 @@ const AllVersionsPage = () => { const renderActionsField = (_: unknown, record: VersionType) => { return (
+ {
) } diff --git a/src/pages/UserEditor/user-editor.scss b/src/pages/UserEditor/user-editor.scss index 2b5f2a4..3dd6a2b 100644 --- a/src/pages/UserEditor/user-editor.scss +++ b/src/pages/UserEditor/user-editor.scss @@ -7,7 +7,7 @@ &__header { border-bottom: 1px solid $border-color; - padding: $basic-padding *4 $basic-padding*3; + padding: 22px 24px 0; &__nav { display: flex; @@ -44,7 +44,7 @@ &__content { &__wrap { overflow-x: scroll; - height: calc(100vh - 200px); + height: calc(100vh - 80px); } .ant-form-item { diff --git a/src/widgets/Header/header.scss b/src/widgets/Header/header.scss index f9d381e..ddb70e2 100644 --- a/src/widgets/Header/header.scss +++ b/src/widgets/Header/header.scss @@ -16,7 +16,8 @@ font-size: 19px; font-weight: 600; font-family: 'PT Sans', sans-serif; - padding-right: 120px; + width: 100%; + padding-left: 28px; } &__text-closed { margin: auto; diff --git a/src/widgets/Modal/modal.scss b/src/widgets/Modal/modal.scss index 2e86643..1c580c4 100644 --- a/src/widgets/Modal/modal.scss +++ b/src/widgets/Modal/modal.scss @@ -39,6 +39,8 @@ } &__title { color: $grey; + font-size: 17px; + padding: 0 10px; } &__content { padding: 10px; @@ -58,7 +60,6 @@ body.modal-open { overflow: hidden; - padding-right: 14px; } From 963e3e259a59135ed308c406c3261b77cc23312e Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Tue, 28 May 2024 11:22:10 +0700 Subject: [PATCH 12/15] MSP-3325 replace domainId in ApplicationsPage --- src/pages/ApplicationsPage/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/ApplicationsPage/index.tsx b/src/pages/ApplicationsPage/index.tsx index a9ab4df..be8ad9c 100644 --- a/src/pages/ApplicationsPage/index.tsx +++ b/src/pages/ApplicationsPage/index.tsx @@ -40,7 +40,7 @@ const ApplicationsPage = () => { data: applicationsGroup = [], isError: isErrorApplicationsGroup, isLoading: isLoadingApplicationsGroup - } = applicationsGroupApi.useGetApplicationsGroupByDomainIdQuery({ id: 2 }) + } = applicationsGroupApi.useGetApplicationsGroupByDomainIdQuery({ id: 1 }) const [createApplicationsGroup] = applicationsGroupApi.useCreateApplicationsGroupMutation() @@ -110,7 +110,7 @@ const ApplicationsPage = () => { const newService: NewApplicationsGroupType = { name: data.name, description: data.description, - domainId: 2 + domainId: 1 } createApplicationsGroup(newService) .unwrap() @@ -134,7 +134,7 @@ const ApplicationsPage = () => { const updateService: UpdateApplicationsGroupType = { name: data.name, description: data.description, - domainId: 2, + domainId: 1, id: Number(selectedItemId) } From 9fd694912a62dfe512e015d8398f458fee536596 Mon Sep 17 00:00:00 2001 From: Anastasiia Date: Tue, 28 May 2024 13:10:48 +0700 Subject: [PATCH 13/15] MSP-3325 add props in render for buttons in TokenContent --- src/components/TokenContent/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/TokenContent/index.tsx b/src/components/TokenContent/index.tsx index 5e0603d..fbfe515 100644 --- a/src/components/TokenContent/index.tsx +++ b/src/components/TokenContent/index.tsx @@ -163,16 +163,16 @@ const TokenContent = ({ id }: TokenPropTypes) => { title: 'Действия', dataIndex: 'token', key: 'actions', - render: (value) => { + render: (value, record) => { return ( -
Версия: {selectedItem.configVersion} - Текущая версия : {config?.version || config?.configVersion} + {config?.version ? `Текущая версия : ${config?.version}` : `Версия: ${config?.configVersion}`}
Date: Tue, 28 May 2024 13:13:55 +0700 Subject: [PATCH 15/15] MSP-3325 up version to 0.11.4 --- CHANGELOG.md | 2 ++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd05202..5053a67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.11.4 +- Правки для прода ## 0.11.3 - Обновлена версия библиотеки isp-ui-kit ## 0.11.2 diff --git a/package-lock.json b/package-lock.json index aa96a7f..c3e9994 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "isp-admin-ui", - "version": "0.11.2", + "version": "0.11.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "isp-admin-ui", - "version": "0.11.2", + "version": "0.11.3", "dependencies": { "@apidevtools/json-schema-ref-parser": "^9.0.6", "@codemirror/lang-json": "^6.0.1", diff --git a/package.json b/package.json index 6dd0c1a..861dced 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "isp-admin-ui", "private": true, - "version": "0.11.3", + "version": "0.11.4", "type": "module", "scripts": { "start": "vite",