Add feedback form (#1967)

Add feedback button and form. This feedback form can be used to provide direct feedback to the SCM-Manager Team.

Co-authored-by: Matthias Thieroff <matthias.thieroff@cloudogu.com>
This commit is contained in:
Eduard Heimbuch
2022-03-10 09:39:17 +01:00
committed by GitHub
parent 390384b723
commit 4407dc6d8a
22 changed files with 235 additions and 21 deletions

View File

@@ -58,13 +58,14 @@ describe("Test config hooks", () => {
proxyUser: null,
realmDescription: "",
alertsUrl: "",
feedbackUrl: "",
releaseFeedUrl: "",
skipFailedAuthenticators: false,
_links: {
update: {
href: "/config",
},
},
href: "/config"
}
}
};
afterEach(() => {
@@ -77,7 +78,7 @@ describe("Test config hooks", () => {
setIndexLink(queryClient, "config", "/config");
fetchMock.get("/api/v2/config", config);
const { result, waitFor } = renderHook(() => useConfig(), {
wrapper: createWrapper(undefined, queryClient),
wrapper: createWrapper(undefined, queryClient)
});
await waitFor(() => !!result.current.data);
expect(result.current.data).toEqual(config);
@@ -91,15 +92,15 @@ describe("Test config hooks", () => {
const newConfig = {
...config,
baseUrl: "/hog",
baseUrl: "/hog"
};
fetchMock.putOnce("/api/v2/config", {
status: 200,
status: 200
});
const { result, waitForNextUpdate } = renderHook(() => useUpdateConfig(), {
wrapper: createWrapper(undefined, queryClient),
wrapper: createWrapper(undefined, queryClient)
});
await act(() => {