fix: removed attr is_shown_on_dashboard

This commit is contained in:
2025-10-27 17:31:48 +04:00
parent 71c9d08b8c
commit 3575b9f34a
4 changed files with 0 additions and 77 deletions

View File

@ -39,8 +39,6 @@ const AttributeEditorModal = ({
typeId: undefined,
type: undefined,
isApplicableToGroup: false,
isShownOnDashboard: false,
isHighlightIfExpired: false,
isNullable: false,
defaultValue: null,
description: "",
@ -100,21 +98,6 @@ const AttributeEditorModal = ({
type: "checkbox",
})}
/>
<Checkbox
label={"Значение выводится на дашборде"}
{...form.getInputProps("isShownOnDashboard", {
type: "checkbox",
})}
/>
{(form.values.type?.type === "datetime" ||
form.values.type?.type === "date") && (
<Checkbox
label={"Подсветка, если просрочено"}
{...form.getInputProps("isHighlightIfExpired", {
type: "checkbox",
})}
/>
)}
{isNullableInputShown && (
<Checkbox
label={"Может быть пустым"}

View File

@ -54,16 +54,6 @@ const useAttributesInnerTableColumns = () => {
accessor: "isApplicableToGroup",
render: attr => renderCheck(attr.isApplicableToGroup),
},
{
title: "Вывод на дашборде",
accessor: "isShownOnDashboard",
render: attr => renderCheck(attr.isShownOnDashboard),
},
{
title: "Подсветка, если просрочен",
accessor: "isHighlightIfExpired",
render: attr => renderCheck(attr.isHighlightIfExpired),
},
{
title: "Может быть пустым",
accessor: "isNullable",

View File

@ -36,14 +36,6 @@ export type AttributeSchema = {
* Isapplicabletogroup
*/
isApplicableToGroup: boolean;
/**
* Isshownondashboard
*/
isShownOnDashboard: boolean;
/**
* Ishighlightifexpired
*/
isHighlightIfExpired: boolean;
/**
* Isnullable
*/
@ -306,14 +298,6 @@ export type CreateAttributeSchema = {
* Isapplicabletogroup
*/
isApplicableToGroup: boolean;
/**
* Isshownondashboard
*/
isShownOnDashboard: boolean;
/**
* Ishighlightifexpired
*/
isHighlightIfExpired: boolean;
/**
* Isnullable
*/
@ -1071,14 +1055,6 @@ export type DealModuleAttributeSchema = {
* Isapplicabletogroup
*/
isApplicableToGroup: boolean;
/**
* Isshownondashboard
*/
isShownOnDashboard: boolean;
/**
* Ishighlightifexpired
*/
isHighlightIfExpired: boolean;
/**
* Isnullable
*/
@ -1787,14 +1763,6 @@ export type ModuleAttributeSchema = {
* Isapplicabletogroup
*/
isApplicableToGroup: boolean;
/**
* Isshownondashboard
*/
isShownOnDashboard: boolean;
/**
* Ishighlightifexpired
*/
isHighlightIfExpired: boolean;
/**
* Isnullable
*/
@ -2399,14 +2367,6 @@ export type UpdateAttributeSchema = {
* Isapplicabletogroup
*/
isApplicableToGroup?: boolean | null;
/**
* Isshownondashboard
*/
isShownOnDashboard?: boolean | null;
/**
* Ishighlightifexpired
*/
isHighlightIfExpired?: boolean | null;
/**
* Isnullable
*/

View File

@ -32,8 +32,6 @@ export const zAttributeTypeSchema = z.object({
export const zAttributeSchema = z.object({
label: z.string(),
isApplicableToGroup: z.boolean(),
isShownOnDashboard: z.boolean(),
isHighlightIfExpired: z.boolean(),
isNullable: z.boolean(),
defaultValue: z.union([z.object({}), z.null()]),
description: z.string(),
@ -142,8 +140,6 @@ export const zClientSchema = z.object({
export const zCreateAttributeSchema = z.object({
label: z.string(),
isApplicableToGroup: z.boolean(),
isShownOnDashboard: z.boolean(),
isHighlightIfExpired: z.boolean(),
isNullable: z.boolean(),
defaultValue: z.union([z.object({}), z.null()]),
description: z.string(),
@ -839,8 +835,6 @@ export const zDealModuleAttributeSchema = z.object({
defaultValue: z.object({}),
description: z.string(),
isApplicableToGroup: z.boolean(),
isShownOnDashboard: z.boolean(),
isHighlightIfExpired: z.boolean(),
isNullable: z.boolean(),
});
@ -1028,8 +1022,6 @@ export const zGetAllModulesResponse = z.object({
export const zModuleAttributeSchema = z.object({
label: z.string(),
isApplicableToGroup: z.boolean(),
isShownOnDashboard: z.boolean(),
isHighlightIfExpired: z.boolean(),
isNullable: z.boolean(),
defaultValue: z.union([z.object({}), z.null()]),
description: z.string(),
@ -1348,8 +1340,6 @@ export const zUpdateAttributeLabelResponse = z.object({
export const zUpdateAttributeSchema = z.object({
label: z.optional(z.union([z.string(), z.null()])),
isApplicableToGroup: z.optional(z.union([z.boolean(), z.null()])),
isShownOnDashboard: z.optional(z.union([z.boolean(), z.null()])),
isHighlightIfExpired: z.optional(z.union([z.boolean(), z.null()])),
isNullable: z.optional(z.union([z.boolean(), z.null()])),
defaultValue: z.optional(z.union([z.object({}), z.null()])),
description: z.optional(z.union([z.string(), z.null()])),