Skip to content

Commit 2cbd938

Browse files
committed
feat(App): Add link to changelog in app update notification
1 parent 9d9e285 commit 2cbd938

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

src/components/layout/AppLayout.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ const messages = defineMessages({
2323
id: 'infobar.buttonReloadServices',
2424
defaultMessage: '!!!Reload services',
2525
},
26+
changelog: {
27+
id: 'infobar.buttonChangelog',
28+
defaultMessage: '!!!Changelog',
29+
},
2630
buttonInstallUpdate: {
2731
id: 'infobar.buttonInstallUpdate',
2832
defaultMessage: '!!!Restart & install update',
@@ -135,7 +139,9 @@ export default class AppLayout extends Component {
135139
sticky
136140
>
137141
<span className="mdi mdi-information" />
138-
{intl.formatMessage(messages.updateAvailable)}
142+
{intl.formatMessage(messages.updateAvailable)} <a href="https://meetfranz.com/changelog" target="_blank">
143+
<u>{intl.formatMessage(messages.changelog)}</u>
144+
</a>
139145
</InfoBar>
140146
)}
141147
{services}

src/components/ui/InfoBar.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ export default class InfoBar extends Component {
6161
[`${className}`]: true,
6262
})}
6363
>
64-
<div onClick={onClick} className="info-bar__content">
64+
<div className="info-bar__content">
6565
{children}
6666
{ctaLabel && (
67-
<button className="info-bar__cta">
67+
<button
68+
className="info-bar__cta"
69+
onClick={onClick}
70+
>
6871
<Loader
6972
loaded={!ctaLoading}
7073
lines={10}

src/i18n/locales/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"infobar.updateAvailable": "A new update for Franz is available.",
5959
"infobar.buttonReloadServices": "Reload services",
6060
"infobar.buttonInstallUpdate": "Restart & install update",
61+
"infobar.buttonChangelog": "What is new?",
6162
"infobar.requiredRequestsFailed": "Could not load services and user information",
6263
"sidebar.settings": "Settings",
6364
"sidebar.addNewService": "Add new service",

src/styles/info-bar.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
}
4747
}
4848

49+
a {
50+
// text-decoration: underline;
51+
}
52+
4953
&.info-bar--bottom {
5054
order: 10;
5155
}

0 commit comments

Comments
 (0)