Skip to content

Commit d786b66

Browse files
committed
make upper left Home button just show the file explorer in the home directory
1 parent 3029494 commit d786b66

File tree

1 file changed

+15
-1
lines changed
  • src/packages/frontend/project/page/home-page

1 file changed

+15
-1
lines changed

src/packages/frontend/project/page/home-page/button.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,21 @@ export default function HomePageButton({ project_id, active, width }) {
4747
transitionDuration: "0s",
4848
}}
4949
onClick={() => {
50-
actions?.set_active_tab("home");
50+
// People find the entire home page idea very confusing.
51+
// Thus I've commented this out:
52+
53+
// actions?.set_active_tab("home");
54+
55+
// And replaced it by just showing the file explorer in the
56+
// home directory, with no flyout panels open, which is a reasonable
57+
// expectation for a "Home" button, since that's what the project shows
58+
// by default on open. This is just a very quick bandaide to reduce
59+
// confusion until we come up with something better (e.g., a dropdown
60+
// menu and shortcut toolbar).
61+
actions?.set_active_tab("files");
62+
actions?.set_current_path("");
63+
actions?.setFlyoutExpanded("files", false, false);
64+
5165
track("switch_to_fixed_tab", {
5266
how: "click-on-tab",
5367
name: "home",

0 commit comments

Comments
 (0)