Skip to content

Commit a0f1a5f

Browse files
author
Ives van Hoorne
committed
Show changelog modal for logged in users
Versicn bump
1 parent e11ec90 commit a0f1a5f

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

packages/app/src/app/pages/common/Modals/Changelog/Dashboard/index.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ function DashboardChangelog({ signals }) {
5858
<div style={dateStyles}>July 2nd, 2018</div>
5959
</div>
6060

61-
<div
61+
<img
62+
alt="CodeSandbox Announcement"
6263
style={{
6364
width: '100%',
64-
height: 200,
6565
backgroundColor: 'rgba(0, 0, 0, 0.3)',
6666
borderRadius: 2,
6767
}}
68+
src="https://cdn-images-1.medium.com/max/1600/1*wIMw31_Phf1WNEP6zjuTUw.png"
6869
/>
6970

7071
<p style={descriptionStyles}>
@@ -120,7 +121,14 @@ function DashboardChangelog({ signals }) {
120121
>
121122
Close
122123
</Button>
123-
<Button style={{ marginTop: '1rem', marginLeft: '.25rem' }} block small>
124+
<Button
125+
href="https://medium.com/@compuives/announcing-codesandbox-dashboard-teams-876f5933160b"
126+
style={{ marginTop: '1rem', marginLeft: '.25rem' }}
127+
block
128+
small
129+
target="_blank"
130+
rel="noreferrer noopener"
131+
>
124132
View Announcement
125133
</Button>
126134
</div>

packages/app/src/app/store/factories.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,9 @@ const shouldShowChangelogModal = when(state`hasLogIn`, loggedIn => {
109109
return false;
110110
}
111111

112-
// Don't show it yet, make announcement first
113-
return false;
112+
document.cookie = 'changelog-seen=1; Path=/;';
114113

115-
// document.cookie = 'changelog-seen=1; Path=/;';
116-
117-
// return true;
114+
return true;
118115
});
119116

120117
export function withLoadApp(continueSequence) {

0 commit comments

Comments
 (0)