Skip to content

Commit

Permalink
Create documentation for Destination namespace example settings (#20255)
Browse files Browse the repository at this point in the history
- Added "Learn more" link to documentation namespace
  • Loading branch information
Mark Berger authored Dec 12, 2022
1 parent 55a3288 commit 5f4d43d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { ModalBody, ModalFooter } from "components/ui/Modal";
import { Text } from "components/ui/Text";

import { NamespaceDefinitionType } from "core/request/AirbyteClient";
import { links } from "utils/links";
import { FormikConnectionFormValues } from "views/Connection/ConnectionForm/formConfig";

import styles from "./DestinationNamespaceModal.module.scss";
Expand Down Expand Up @@ -143,6 +144,11 @@ export const DestinationNamespaceModal: React.FC<DestinationNamespaceModalProps>
<FormattedMessage id="connectionForm.modal.destinationNamespace.description" />
</Text>
<ExampleSettingsTable namespaceDefinitionType={values.namespaceDefinition} />
<a className={styles.namespaceLink} href={links.namespaceLink} target="_blank" rel="noreferrer">
<Text className={styles.text} size="xs">
<FormattedMessage id="connectionForm.modal.destinationNamespace.learnMore.link" />
</Text>
</a>
</div>
</ModalBody>
<ModalFooter>
Expand Down
1 change: 1 addition & 0 deletions airbyte-webapp/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
"connectionForm.modal.destinationNamespace.table.data.exampleSourceNamespace": "\"$<symbol>SOURCE_NAMESPACE</symbol>\"",
"connectionForm.modal.destinationNamespace.table.data.exampleMySourceNamespace": "\"my_$<symbol>SOURCE_NAMESPACE</symbol>_schema\"",
"connectionForm.modal.destinationNamespace.table.data.custom": "<symbol>custom</symbol>",
"connectionForm.modal.destinationNamespace.learnMore.link": "Learn more",

"connectionForm.modal.destinationStreamNames.title": "Destination stream names",
"connectionForm.modal.destinationStreamNames.radioButton.mirror": "Mirror source name",
Expand Down

0 comments on commit 5f4d43d

Please sign in to comment.