Hi all,
I’m trying to create a simple admin config page (TestConfig.jsx) for my Jira app, but when I try to access it through the side panel Manage Apps => Click “Configure”, it doesn’t show anything and keeps loading forever like this:
The page title “Configure Google Sheet Id” seems to load from the manifest.yml, but not the components from TestConfig.jsx.
First, I just want to see some text in the config page. My TestConfig.jsx:
import React from 'react';
import { Text } from '@forge/react';
export const TestConfig = () => {
return (
<Text>Testing configuration page</Text>
);
};
Part of my manifest.yml:
modules:
jira:globalPage:
- key: google-users
resource: users
resolver:
function: resolver
render: native
title: Google Users
jira:adminPage:
- key: google-worklogs
resource: main
resolver:
function: resolver
render: native
title: Google Worklogs
- key: config-screen
resource: config
resolver:
function: resolver
render: native
title: Configure Google Sheet Id
useAsConfig: true
function:
- key: resolver
handler: index.handler
providers:
auth:
- google
resources:
- key: main
path: src/frontend/index.jsx
- key: users
path: src/frontend/GoogleUsers.jsx
- key: config
path: src/frontend/TestConfig.jsx
How can I get it to work? Thanks!