Skip to content

Commit

Permalink
feat: make application title configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Jul 12, 2022
1 parent e40a28f commit 3160c6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions public/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"appTitle": "RTP Projects",
"filter": {
"infoText": {
"simpleMode": "<p>Projects in the Regional Transportation Plan (RTP) can be displayed and filtered on this map by either <i>transportation mode</i> or by the <i>phasing period</i> in which the projects are planned for completion.</p><p><i>For more information, contact the WFRC Long Range Planning team at longrange@wfrc.org.</i></p>",
Expand Down
7 changes: 6 additions & 1 deletion public/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@
"title": "WFRC RTP Projects Application Configuration",
"type": "object",
"additionalProperties": false,
"required": ["filter", "sherlock", "openOnLoad", "translations", "projectInformation"],
"required": ["appTitle", "filter", "sherlock", "openOnLoad", "translations", "projectInformation"],
"properties": {
"appTitle": {
"title": "Application Title",
"description": "The title of the application",
"type": "string"
},
"filter": {
"title": "Filter Widget Configuration",
"description": "Configuration options for the filter widget",
Expand Down
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function App() {
<QueryClientProvider client={queryClient}>
<div className="d-flex flex-column w-100 h-100">
<div className="m-3 title">
<h4 className="my-0">RTP Projects</h4>
<h4 className="my-0">{config.appTitle}</h4>
</div>
<div id="mapDiv" className="flex-fill border-top border position-relative">
<MapWidget
Expand Down

0 comments on commit 3160c6b

Please sign in to comment.