Add graphql playground link to tools panel (#5807)

* Add graphql playground link to tools panel
* Move to separate section
This commit is contained in:
WithoutPants 2025-06-27 16:26:03 +10:00 committed by GitHub
parent 3af472d3b2
commit 5323d68d3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 40 additions and 22 deletions

View file

@ -5,11 +5,26 @@ import { Link } from "react-router-dom";
import { Setting } from "./Inputs"; import { Setting } from "./Inputs";
import { SettingSection } from "./SettingSection"; import { SettingSection } from "./SettingSection";
import { PatchContainerComponent } from "src/patch"; import { PatchContainerComponent } from "src/patch";
import { ExternalLink } from "../Shared/ExternalLink";
const SettingsToolsSection = PatchContainerComponent("SettingsToolsSection"); const SettingsToolsSection = PatchContainerComponent("SettingsToolsSection");
export const SettingsToolsPanel: React.FC = () => { export const SettingsToolsPanel: React.FC = () => {
return ( return (
<>
<SettingSection headingID="config.tools.heading">
<SettingsToolsSection>
<Setting
heading={
<ExternalLink href="/playground">
<Button>
<FormattedMessage id="config.tools.graphql_playground" />
</Button>
</ExternalLink>
}
/>
</SettingsToolsSection>
</SettingSection>
<SettingSection headingID="config.tools.scene_tools"> <SettingSection headingID="config.tools.scene_tools">
<SettingsToolsSection> <SettingsToolsSection>
<Setting <Setting
@ -33,5 +48,6 @@ export const SettingsToolsPanel: React.FC = () => {
/> />
</SettingsToolsSection> </SettingsToolsSection>
</SettingSection> </SettingSection>
</>
); );
}; };

View file

@ -569,6 +569,8 @@
"set_name_date_details_from_metadata_if_present": "Set name, date, details from embedded file metadata" "set_name_date_details_from_metadata_if_present": "Set name, date, details from embedded file metadata"
}, },
"tools": { "tools": {
"graphql_playground": "GraphQL playground",
"heading": "Tools",
"scene_duplicate_checker": "Scene Duplicate Checker", "scene_duplicate_checker": "Scene Duplicate Checker",
"scene_filename_parser": { "scene_filename_parser": {
"add_field": "Add Field", "add_field": "Add Field",