Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
experience_builder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
experience_builder
Merge requests
!691
#3508326
Dynamic components list
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
#3508326
Dynamic components list
issue/experience_builder-3508326:dynamic-components-list
into
0.x
Overview
9
Commits
21
Pipelines
14
Changes
21
Merged
Jesse Baker
requested to merge
issue/experience_builder-3508326:dynamic-components-list
into
0.x
3 months ago
Overview
6
Commits
21
Pipelines
14
Changes
21
Expand
Closes
#3508326
Edited
3 months ago
by
Jesse Baker
0
0
Merge request reports
Compare
0.x
version 13
5cf41d77
3 months ago
version 12
8a77bd63
3 months ago
version 11
e708ed3c
3 months ago
version 10
39874bfa
3 months ago
version 9
1d7fe189
3 months ago
version 8
34e409f1
3 months ago
version 7
906f758c
3 months ago
version 6
bdc80c6f
3 months ago
version 5
f81d8442
3 months ago
version 4
3c1c5539
3 months ago
version 3
240ebee6
3 months ago
version 2
d5125787
3 months ago
version 1
651e9b27
3 months ago
0.x (base)
and
latest version
latest version
5cf41d77
21 commits,
3 months ago
version 13
5cf41d77
21 commits,
3 months ago
version 12
8a77bd63
19 commits,
3 months ago
version 11
e708ed3c
17 commits,
3 months ago
version 10
39874bfa
16 commits,
3 months ago
version 9
1d7fe189
15 commits,
3 months ago
version 8
34e409f1
14 commits,
3 months ago
version 7
906f758c
13 commits,
3 months ago
version 6
bdc80c6f
12 commits,
3 months ago
version 5
f81d8442
11 commits,
3 months ago
version 4
3c1c5539
10 commits,
3 months ago
version 3
240ebee6
9 commits,
3 months ago
version 2
d5125787
6 commits,
3 months ago
version 1
651e9b27
5 commits,
3 months ago
21 files
+
311
−
130
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
21
Search (e.g. *.vue) (Ctrl+P)
ui/src/components/dynamicComponents/DynamicComponents.tsx
0 → 100644
+
56
−
0
Options
import
{
Flex
,
Heading
,
Box
,
ScrollArea
,
Spinner
}
from
'
@radix-ui/themes
'
;
import
type
React
from
'
react
'
;
import
DynamicComponentsLibrary
from
'
@/components/dynamicComponents/DynamicComponentsLibrary
'
;
import
{
useGetComponentsQuery
}
from
'
@/services/componentAndLayout
'
;
import
ErrorCard
from
'
@/components/error/ErrorCard
'
;
interface
DynamicComponentsGroupsPopoverProps
{}
const
DynamicComponents
:
React
.
FC
<
DynamicComponentsGroupsPopoverProps
>
=
()
=>
{
const
{
data
:
dynamicComponents
,
isLoading
,
isError
,
isFetching
,
refetch
,
}
=
useGetComponentsQuery
({
mode
:
'
include
'
,
libraries
:
[
'
dynamic_components
'
],
});
if
(
isLoading
||
isFetching
)
{
return
(
<
Flex
justify
=
"center"
align
=
"center"
>
<
Spinner
/>
</
Flex
>
);
}
return
(
<>
<
Flex
justify
=
"between"
>
<
Heading
as
=
"h3"
size
=
"3"
mb
=
"4"
>
Dynamic Components
</
Heading
>
</
Flex
>
<
Box
mr
=
"-4"
>
<
ScrollArea
style
=
{
{
maxHeight
:
'
380px
'
,
width
:
'
100%
'
}
}
type
=
"scroll"
>
<
Box
pr
=
"4"
mt
=
"3"
>
{
isError
&&
(
<
ErrorCard
title
=
"Error fetching Dynamic component list."
resetErrorBoundary
=
{
refetch
}
/>
)
}
{
!
isError
&&
dynamicComponents
&&
(
<
DynamicComponentsLibrary
dynamicComponents
=
{
dynamicComponents
}
/>
)
}
</
Box
>
</
ScrollArea
>
</
Box
>
</>
);
};
export
default
DynamicComponents
;
Loading