-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2886 from bakdata/fix/missing_manual_email_ref
Fix: missing manual & email links
- Loading branch information
Showing
5 changed files
with
60 additions
and
9 deletions.
There are no files selected for viewing
18 changes: 14 additions & 4 deletions
18
backend/src/main/java/com/bakdata/conquery/apiv1/frontend/FrontendConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
package com.bakdata.conquery.apiv1.frontend; | ||
|
||
import java.net.URL; | ||
|
||
import com.bakdata.conquery.models.config.FrontendConfig; | ||
import com.bakdata.conquery.models.config.IdColumnConfig; | ||
|
||
/** | ||
* API Response for the dynamic configuration of the frontend | ||
* | ||
* @param version backend version | ||
* @param currency currency representation | ||
* @param queryUpload identifier specific column configuration for the query upload | ||
* @param version backend version | ||
* @param currency currency representation | ||
* @param queryUpload identifier specific column configuration for the query upload | ||
* @param manualUrl url to a user manual | ||
* @param contactEmail typical a mailto-url | ||
*/ | ||
public record FrontendConfiguration(String version, FrontendConfig.CurrencyConfig currency, IdColumnConfig queryUpload) { | ||
public record FrontendConfiguration( | ||
String version, | ||
FrontendConfig.CurrencyConfig currency, | ||
IdColumnConfig queryUpload, | ||
URL manualUrl, | ||
String contactEmail | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// <reference types="cypress" /> | ||
import { visitWithToken } from "../integration-helpers/visitWithToken"; | ||
|
||
const USER_TOKEN_WITH_PERMISSIONS = "user.user2"; | ||
|
||
describe("Visit Form Editor", () => { | ||
before(() => { | ||
visitWithToken(USER_TOKEN_WITH_PERMISSIONS); | ||
}); | ||
|
||
it("Can open help menu", () => { | ||
|
||
cy.get('[data-test-id="help-menu"]').click() | ||
|
||
cy.get('[data-test-id="help-manual"]').should("have.attr", "href", "https://example.org"); | ||
|
||
cy.get('[data-test-id="help-email"]').should("have.attr", "href", "mailto:test@example.org"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
{} | ||
{ | ||
"frontend": { | ||
"manualUrl": "https://example.org", | ||
"contactEmail": "test@example.org" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters