Skip to content

Commit 17b539b

Browse files
fix: antd atom api fixes and general issues fixes (#3570)
* fix: migrate deprecated BackTop component to FloatButton * fix: interfaces and field hydration * fix: antd atoms apis * fix: build command * fix: antd atoms apis
1 parent fcf8ca1 commit 17b539b

File tree

21 files changed

+176
-306
lines changed

21 files changed

+176
-306
lines changed

data/export-v3/admin/atoms/AntDesignAvatar.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@
1818
"prevSibling": null,
1919
"validationRules": null
2020
},
21+
{
22+
"api": {
23+
"id": "b97d5258-936f-4396-81d4-c3acefe05cd1"
24+
},
25+
"defaultValues": null,
26+
"description": null,
27+
"fieldType": {
28+
"id": "b24af1b5-6c50-4864-817c-e7f0c4a39374"
29+
},
30+
"id": "f8c91580-e4fd-4e2c-9964-0e148d3cc682",
31+
"key": "children",
32+
"name": "Children",
33+
"nextSibling": null,
34+
"prevSibling": null,
35+
"validationRules": null
36+
},
2137
{
2238
"api": {
2339
"id": "b97d5258-936f-4396-81d4-c3acefe05cd1"
@@ -192,6 +208,24 @@
192208
}
193209
]
194210
},
211+
{
212+
"__typename": "UnionType",
213+
"id": "b24af1b5-6c50-4864-817c-e7f0c4a39374",
214+
"kind": "UnionType",
215+
"name": "AtomChildren Union",
216+
"typesOfUnionType": [
217+
{
218+
"__typename": "CodeMirrorType",
219+
"id": "010c4f5a-434b-4c3e-a0ed-01eb1f78172a",
220+
"name": "Typescript Code"
221+
},
222+
{
223+
"__typename": "RichTextType",
224+
"id": "e7558508-3bb7-4f57-8f8c-6ac989911765",
225+
"name": "RichTextType"
226+
}
227+
]
228+
},
195229
{
196230
"__typename": "EnumType",
197231
"allowedValues": [

data/export-v3/admin/atoms/AntDesignCard.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@
5050
"prevSibling": null,
5151
"validationRules": null
5252
},
53+
{
54+
"api": {
55+
"id": "430aa816-16ae-486e-bf69-b34564dd1c6a"
56+
},
57+
"defaultValues": null,
58+
"description": null,
59+
"fieldType": {
60+
"id": "b24af1b5-6c50-4864-817c-e7f0c4a39374"
61+
},
62+
"id": "e5f6g7h8-i9j0-k1l2-m3n4-o5p6q7r8s9t0",
63+
"key": "children",
64+
"name": "Children",
65+
"nextSibling": null,
66+
"prevSibling": null,
67+
"validationRules": null
68+
},
5369
{
5470
"api": {
5571
"id": "430aa816-16ae-486e-bf69-b34564dd1c6a"
@@ -238,6 +254,24 @@
238254
"kind": "InterfaceType",
239255
"name": "AntDesignCard API"
240256
},
257+
{
258+
"__typename": "UnionType",
259+
"id": "b24af1b5-6c50-4864-817c-e7f0c4a39374",
260+
"kind": "UnionType",
261+
"name": "AtomChildren Union",
262+
"typesOfUnionType": [
263+
{
264+
"__typename": "CodeMirrorType",
265+
"id": "010c4f5a-434b-4c3e-a0ed-01eb1f78172a",
266+
"name": "Typescript Code"
267+
},
268+
{
269+
"__typename": "RichTextType",
270+
"id": "e7558508-3bb7-4f57-8f8c-6ac989911765",
271+
"name": "RichTextType"
272+
}
273+
]
274+
},
241275
{
242276
"__typename": "EnumType",
243277
"allowedValues": [

data/export-v3/admin/atoms/AntDesignCardGrid.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22
"api": {
33
"__typename": "InterfaceType",
44
"fields": [
5+
{
6+
"api": {
7+
"id": "1b3a9fcf-af61-40c3-92a9-6d1f445ff3d1"
8+
},
9+
"defaultValues": null,
10+
"description": null,
11+
"fieldType": {
12+
"id": "b24af1b5-6c50-4864-817c-e7f0c4a39374"
13+
},
14+
"id": "g2h3i4j5-k6l7-m8n9-o0p1-q2r3s4t5u6v7",
15+
"key": "children",
16+
"name": "Children",
17+
"nextSibling": null,
18+
"prevSibling": null,
19+
"validationRules": null
20+
},
521
{
622
"api": {
723
"id": "1b3a9fcf-af61-40c3-92a9-6d1f445ff3d1"
@@ -45,6 +61,24 @@
4561
"id": "1b3a9fcf-af61-40c3-92a9-6d1f445ff3d1",
4662
"kind": "InterfaceType",
4763
"name": "AntDesignCardGrid API"
64+
},
65+
{
66+
"__typename": "UnionType",
67+
"id": "b24af1b5-6c50-4864-817c-e7f0c4a39374",
68+
"kind": "UnionType",
69+
"name": "AtomChildren Union",
70+
"typesOfUnionType": [
71+
{
72+
"__typename": "CodeMirrorType",
73+
"id": "010c4f5a-434b-4c3e-a0ed-01eb1f78172a",
74+
"name": "Typescript Code"
75+
},
76+
{
77+
"__typename": "RichTextType",
78+
"id": "e7558508-3bb7-4f57-8f8c-6ac989911765",
79+
"name": "RichTextType"
80+
}
81+
]
4882
}
4983
]
5084
},

data/export-v3/admin/atoms/AntDesignCheckbox.json

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
{
22
"api": {
33
"__typename": "InterfaceType",
4-
"fields": [],
4+
"fields": [
5+
{
6+
"api": {
7+
"id": "39e6fe1f-343e-48fd-a013-5aeb42275188"
8+
},
9+
"defaultValues": null,
10+
"description": null,
11+
"fieldType": {
12+
"id": "b24af1b5-6c50-4864-817c-e7f0c4a39374"
13+
},
14+
"id": "h3i4j5k6-l7m8-n9o0-p1q2-r3s4t5u6v7w8",
15+
"key": "children",
16+
"name": "Children",
17+
"nextSibling": null,
18+
"prevSibling": null,
19+
"validationRules": null
20+
}
21+
],
522
"id": "39e6fe1f-343e-48fd-a013-5aeb42275188",
623
"kind": "InterfaceType",
724
"name": "AntDesignCheckbox API",
@@ -12,6 +29,24 @@
1229
"id": "39e6fe1f-343e-48fd-a013-5aeb42275188",
1330
"kind": "InterfaceType",
1431
"name": "AntDesignCheckbox API"
32+
},
33+
{
34+
"__typename": "UnionType",
35+
"id": "b24af1b5-6c50-4864-817c-e7f0c4a39374",
36+
"kind": "UnionType",
37+
"name": "AtomChildren Union",
38+
"typesOfUnionType": [
39+
{
40+
"__typename": "CodeMirrorType",
41+
"id": "010c4f5a-434b-4c3e-a0ed-01eb1f78172a",
42+
"name": "Typescript Code"
43+
},
44+
{
45+
"__typename": "RichTextType",
46+
"id": "e7558508-3bb7-4f57-8f8c-6ac989911765",
47+
"name": "RichTextType"
48+
}
49+
]
1550
}
1651
]
1752
},

data/export-v3/admin/atoms/AntDesignCollapsePanel.json

Lines changed: 0 additions & 171 deletions
This file was deleted.

libs/backend/data/seed/src/tag/antd/antd-tag-tree.data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const antdTagTree: TagNode<IAntdCategoryTag | keyof IAntdAtomRecords> = {
1010
IAtomType.AntDesignAvatar,
1111
IAtomType.AntDesignBadge,
1212
IAtomType.AntDesignComment,
13-
{ [IAtomType.AntDesignCollapse]: [IAtomType.AntDesignCollapsePanel] },
13+
IAtomType.AntDesignCollapse,
1414
IAtomType.AntDesignCarousel,
1515
{
1616
[IAtomType.AntDesignCard]: [

libs/frontend/abstract/domain/src/type/type.domain.service.interface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
ITypeKind,
66
} from '@codelab/shared/abstract/core'
77
import type { Nullable } from '@codelab/shared/abstract/types'
8-
import type { GetTypesQuery } from '@codelab/shared/infra/gqlgen'
8+
import type { TypeFragment } from '@codelab/shared/infra/gqlgen'
99
import type { ObjectMap } from 'mobx-keystone'
1010

1111
import type { IHydrateable } from '../shared'
@@ -15,7 +15,7 @@ export interface ITypeDomainService extends IHydrateable<ITypeDto, ITypeModel> {
1515
types: ObjectMap<ITypeModel>
1616
typesList: Array<ITypeModel>
1717
hydrateInterface(data: IInterfaceTypeDto): IInterfaceTypeModel
18-
hydrateTypes(types: Partial<GetTypesQuery>): void
18+
hydrateTypes(types: Array<TypeFragment>): Array<ITypeModel>
1919
primitiveKind(id: string): Nullable<IPrimitiveTypeKind>
2020
type<T extends ITypeModel>(id: string): T
2121
typeByKind<T extends ITypeKind>(kind: T): ITypeModel

0 commit comments

Comments
 (0)