File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed
field-plugin/src/messaging/pluginMessage/containerToPluginMessage Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,22 @@ export const ContextRequester: PluginComponent = (props) => {
5
5
const { data, actions } = props
6
6
return (
7
7
< Stack gap = { 2 } >
8
- < Typography variant = "subtitle1" > Story</ Typography >
9
- < Typography textAlign = "center" > { JSON . stringify ( data . story ) } </ Typography >
8
+ < Typography variant = "subtitle1" > Story: </ Typography >
9
+ < Typography textAlign = "center" >
10
+ { JSON . stringify ( data . story , null , 2 ) }
11
+ </ Typography >
12
+ < Typography variant = "subtitle1" > Permissions: </ Typography >
13
+ < Typography textAlign = "center" >
14
+ { JSON . stringify ( data . userPermissions , null , 2 ) }
15
+ </ Typography >
16
+ < Typography variant = "subtitle1" > Is admin: </ Typography >
17
+ < Typography textAlign = "center" >
18
+ { data . isSpaceAdmin ? 'Yes' : 'No' }
19
+ </ Typography >
20
+ < Typography variant = "subtitle1" > Is AI enabled: </ Typography >
21
+ < Typography textAlign = "center" >
22
+ { data . isAIEnabled ? 'Yes' : 'No' }
23
+ </ Typography >
10
24
< Button
11
25
variant = "outlined"
12
26
color = "secondary"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export type LoadedMessage = MessageToPlugin<'loaded'> & {
14
14
interfaceLanguage : string
15
15
spaceId : number | null
16
16
userId : number | undefined
17
- userPermissions : Record < string , any > | undefined
17
+ userPermissions : Record < string , string [ ] | number [ ] > | undefined
18
18
isSpaceAdmin : boolean
19
19
story : StoryData
20
20
storyId : number | undefined
You can’t perform that action at this time.
0 commit comments