Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
ui: add dynamic page titles
Browse files Browse the repository at this point in the history
  • Loading branch information
almonk authored and jgwhite committed Jul 22, 2021
1 parent d26d084 commit 450a9bd
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .changelog/1916.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: Add dynamic page titles
```
1 change: 1 addition & 0 deletions ui/app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{page-title "Waypoint"}}
<SvgPatterns />
<Header />

Expand Down
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/index.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title "Projects"}}

{{#if this.cli}}
<div class="flash flash--success">
<div class="flash-header">
Expand Down
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/new.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title (t 'form.project_new.title')}}

<AppBreadcrumbs/>
<PageHeader @iconName="plus-plain">
<div class="title">
Expand Down
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/project/app.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title @model.application.application}}

{{#if (and
(not-eq this.target.currentRouteName 'workspace.projects.project.app.build')
(not-eq this.target.currentRouteName 'workspace.projects.project.app.deployment')
Expand Down
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/project/app/build.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title (concat "Build" " v" @model.sequence)}}

{{#let (or @model.pushedArtifact @model) as |operation|}}
<PageHeader @iconName="build">
<div class="title">
Expand Down
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/project/app/builds.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title (concat @model.application.application "Builds")}}

<h3>{{t "page.builds.title"}}</h3>

<ul data-test-build-list class="list">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title (concat "Deployment" " v" @model.sequence)}}

<PageHeader @iconName="upload">
<div class="title">
<h1><b class="badge badge--version">v{{@model.sequence}}</b></h1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title (concat @model.application.application "Deployments")}}

<h3>
{{t "page.deployments.title"}}
</h3>
Expand Down
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/project/app/exec.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title (concat @model.application.application "Exec")}}

<h3>Exec</h3>

<div class="output-pane">
Expand Down
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/project/app/logs.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title (concat @model.application.application "Logs")}}

<h3>Application logs</h3>

<LogStream @req={{@model}}></LogStream>
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/project/app/release.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title (concat "Release" " v" @model.sequence)}}

<PageHeader @iconName="public-default">
<div class="title">
{{! TODO(jgwhite): Make this a real <h1> }}
Expand Down
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/project/app/releases.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title (concat @model.application.application "Releases")}}

<h3>{{t "page.releases.title"}}</h3>

<ul data-test-release-list class="list">
Expand Down
2 changes: 2 additions & 0 deletions ui/app/templates/workspace/projects/project/apps.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{page-title @model.name}}

<PageHeader @iconName="folder-outline">
<div class="title">
<h1>{{@model.name}}</h1>
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"ember-load-initializers": "^2.1.2",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-named-blocks-polyfill": "^0.2.4",
"ember-page-title": "^6.0.3",
"ember-page-title": "^6.2.2",
"ember-qunit": "^5.1.1",
"ember-resolver": "^8.0.2",
"ember-router-service-refresh-polyfill": "^0.1.0",
Expand Down
10 changes: 5 additions & 5 deletions ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8809,12 +8809,12 @@ ember-native-dom-helpers@^0.7.0:
broccoli-funnel "^1.1.0"
ember-cli-babel "^6.6.0"

ember-page-title@^6.0.3:
version "6.2.0"
resolved "https://registry.yarnpkg.com/ember-page-title/-/ember-page-title-6.2.0.tgz#d79f7422299ebb8f8ac819399596e8f54f01a0e9"
integrity sha512-mgzI59rVH6Q00uG1OnsbrSfic+MxFQbtsjX3BuDWGgU7hWahDhAAgaQrKIFx99aEqWoiL+OiX4tQLPnxyZEceA==
ember-page-title@^6.2.2:
version "6.2.2"
resolved "https://registry.yarnpkg.com/ember-page-title/-/ember-page-title-6.2.2.tgz#980838c44e96cba1d00f42435d707936af627324"
integrity sha512-YTXA+cylZrh9zO0zwjlaAGReT2MVOxAMnVO1OOygFrs1JBs4D6CKV3tImoilg3AvIXFBeJfFNNUbJOdRd9IGGg==
dependencies:
ember-cli-babel "^7.22.1"
ember-cli-babel "^7.23.1"

ember-qunit@^5.1.1:
version "5.1.2"
Expand Down

0 comments on commit 450a9bd

Please sign in to comment.