Skip to content

Add graphql playground link to tools panel #5807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions ui/v2.5/src/components/Settings/SettingsToolsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@ import { Link } from "react-router-dom";
import { Setting } from "./Inputs";
import { SettingSection } from "./SettingSection";
import { PatchContainerComponent } from "src/patch";
import { ExternalLink } from "../Shared/ExternalLink";

const SettingsToolsSection = PatchContainerComponent("SettingsToolsSection");

export const SettingsToolsPanel: React.FC = () => {
return (
<SettingSection headingID="config.tools.scene_tools">
<SettingsToolsSection>
<Setting
heading={
<ExternalLink href="/playground">
<Button>
<FormattedMessage id="config.tools.graphql_playground" />
</Button>
</ExternalLink>
}
/>
<Setting
heading={
<Link to="/sceneFilenameParser">
Expand Down
1 change: 1 addition & 0 deletions ui/v2.5/src/locales/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@
"set_name_date_details_from_metadata_if_present": "Set name, date, details from embedded file metadata"
},
"tools": {
"graphql_playground": "GraphQL playground",
"scene_duplicate_checker": "Scene Duplicate Checker",
"scene_filename_parser": {
"add_field": "Add Field",
Expand Down