You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Snap components enable adding custom UI components defined by snap-kit to the DevRev UI.
2
-
These components can be used to display data or interact with the user.
1
+
Snap components enable adding custom UI components defined by snap-kit to the DevRev UI.
2
+
These components can be used to display data or interact with the user.
3
3
Snap components are defined in the snap-in manifest file. DevRev UI renders these components based on the defined configuration.
4
4
5
5
Each snap-component has the following properties:
6
6
-`surface` : the surfaces where the snap component can be displayed. Currently, only `issue` is supported. // TODO: Confirm this.
7
7
-`snap_kit_action_name` : the name of the snap kit action that will be triggered when the action defined in the snap-kit of the snap component is interacted with.
8
8
-`snap_kit_body` : the initial body of the snap kit action that will be rendered when the snap component is loaded.
9
-
-`initializer` : references a snap-kit action that can be called to initialize the snap component. This is useful when the snap component needs to be initialized with data from the server based on the context where it is being initialized.
9
+
-`initializer` : references a function that can be called to initialize the snap component. This is useful when the snap component needs to be initialized with data from the server based on the context where it is being initialized.
10
10
11
11
12
12
```
@@ -20,9 +20,20 @@ snap_components:
20
20
description: Test Case Details
21
21
surface: issue
22
22
snap_kit_action_name: show_test_cases
23
-
snap_kit_body:
23
+
snap_kit_body:
24
24
{
25
25
"snaps":[]
26
26
}
27
-
28
-
```
27
+
28
+
```
29
+
30
+
## Format of context passed to initializer
31
+
32
+
## Screenshots
33
+
34
+
## Example for initializer
35
+
36
+
## List of surfaces
37
+
38
+
## Referencing global inputs in snap components' snap-kit
0 commit comments