Skip to content

Commit a96d355

Browse files
authored
Add dashboard skeleton (#6005)
- Removes placeholder dashboard in preparation for the actual dashboard implementation.
1 parent 37d820c commit a96d355

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/components/dashboard.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
/** @file Main dashboard component, responsible for listing user's projects as well as other
22
* interactive components. */
33

4-
import * as auth from '../../authentication/providers/auth'
5-
64
// =================
75
// === Dashboard ===
86
// =================
97

108
function Dashboard() {
11-
const { signOut } = auth.useAuth()
12-
const { accessToken } = auth.useFullUserSession()
139
return (
1410
<>
15-
<h1>This is a placeholder page for the cloud dashboard.</h1>
16-
<p>Access token: {accessToken}</p>
17-
<button onClick={signOut}>Log out</button>
11+
{/* These are placeholders. When implementing a feature,
12+
* please replace the appropriate placeholder with the actual element.*/}
13+
<div id="header" />
14+
<div id="templates" />
15+
<div id="drive-header" />
16+
<div id="directory-listing" />
1817
</>
1918
)
2019
}

app/ide-desktop/lib/dashboard/src/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ const ESBUILD_EVENT_NAME = 'change'
1616
// === Live reload ===
1717
// ===================
1818

19+
import * as authentication from 'enso-authentication'
20+
21+
import * as platform from './authentication/src/platform'
22+
1923
if (IS_DEV_MODE) {
2024
new EventSource(ESBUILD_PATH).addEventListener(ESBUILD_EVENT_NAME, () => {
2125
location.reload()

0 commit comments

Comments
 (0)