-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add close button to Editor tab - Convert Settings page into a modal (not guaranteed to be the final design, but it makes sense to change it to a modal for now at least) # Important Notes None
- Loading branch information
1 parent
e6c8ec7
commit b52e8eb
Showing
28 changed files
with
407 additions
and
462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 2 additions & 15 deletions
17
app/ide-desktop/lib/dashboard/e2e/actions/EditorPageActions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,15 @@ | ||
/** @file Actions for the "editor" page. */ | ||
|
||
import BaseActions from './BaseActions' | ||
import * as goToPageActions from './goToPageActions' | ||
import * as openUserMenuAction from './openUserMenuAction' | ||
import * as userMenuActions from './userMenuActions' | ||
import PageActions from './PageActions' | ||
|
||
// ========================= | ||
// === EditorPageActions === | ||
// ========================= | ||
|
||
/** Actions for the "editor" page. */ | ||
export default class EditorPageActions extends BaseActions { | ||
export default class EditorPageActions extends PageActions { | ||
/** Actions for navigating to another page. */ | ||
get goToPage(): Omit<goToPageActions.GoToPageActions, 'editor'> { | ||
return goToPageActions.goToPageActions(this.step.bind(this)) | ||
} | ||
|
||
/** Actions related to the User Menu. */ | ||
get userMenu() { | ||
return userMenuActions.userMenuActions(this.step.bind(this)) | ||
} | ||
|
||
/** Open the User Menu. */ | ||
openUserMenu() { | ||
return openUserMenuAction.openUserMenuAction(this.step.bind(this)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** @file Actions common to all pages. */ | ||
import BaseActions from './BaseActions' | ||
import * as openUserMenuAction from './openUserMenuAction' | ||
import * as userMenuActions from './userMenuActions' | ||
|
||
// =================== | ||
// === PageActions === | ||
// =================== | ||
|
||
/** Actions common to all pages. */ | ||
export default class PageActions extends BaseActions { | ||
/** Actions related to the User Menu. */ | ||
get userMenu() { | ||
return userMenuActions.userMenuActions(this.step.bind(this)) | ||
} | ||
|
||
/** Open the User Menu. */ | ||
openUserMenu() { | ||
return openUserMenuAction.openUserMenuAction(this.step.bind(this)) | ||
} | ||
} |
18 changes: 3 additions & 15 deletions
18
app/ide-desktop/lib/dashboard/e2e/actions/SettingsPageActions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,16 @@ | ||
/** @file Actions for the "settings" page. */ | ||
import BaseActions from './BaseActions' | ||
import * as goToPageActions from './goToPageActions' | ||
import * as openUserMenuAction from './openUserMenuAction' | ||
import * as userMenuActions from './userMenuActions' | ||
import PageActions from './PageActions' | ||
|
||
// =========================== | ||
// === SettingsPageActions === | ||
// =========================== | ||
|
||
// TODO: split settings page actions into different classes for each settings tab. | ||
/** Actions for the "settings" page. */ | ||
export default class SettingsPageActions extends BaseActions { | ||
export default class SettingsPageActions extends PageActions { | ||
/** Actions for navigating to another page. */ | ||
get goToPage(): Omit<goToPageActions.GoToPageActions, 'settings'> { | ||
get goToPage(): Omit<goToPageActions.GoToPageActions, 'drive'> { | ||
return goToPageActions.goToPageActions(this.step.bind(this)) | ||
} | ||
|
||
/** Actions related to the User Menu. */ | ||
get userMenu() { | ||
return userMenuActions.userMenuActions(this.step.bind(this)) | ||
} | ||
|
||
/** Open the User Menu. */ | ||
openUserMenu() { | ||
return openUserMenuAction.openUserMenuAction(this.step.bind(this)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.