Skip to content

Commit b78afb8

Browse files
feat: make home screen default route when app starts up (infinitered#1393)
# Overview - Make Home screen the default route (set it to `/` instead of timeline) - Update Sidebar components and keybindings accordingly - Also updated the "Repo" item on the settings screen to be called "GitHub Docs" as a more clear place to find docs, in addition to the home screen # Visual https://github.com/infinitered/reactotron/assets/6894653/a8b58d73-2834-4790-b070-d17f624626f0 ![CleanShot 2024-01-05 at 09 48 34@2x](https://github.com/infinitered/reactotron/assets/6894653/5d8d84f0-4328-4d7c-afc3-aa3d1a2c143b) --------- Co-authored-by: Mazen Chami <[email protected]>
1 parent 8981380 commit b78afb8

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ On the [Releases](https://github.com/infinitered/reactotron/releases?q=reactotro
6868

6969
## Want to contribute? Here are some helpful reading materials:
7070

71-
- [**Contributing**](./docs/contributing.md)
72-
- [**Architecture**](./docs/architecture.md)
73-
- [**Monorepo**](./docs/monorepo.md)
74-
- [**Release**](./docs/release.md)
71+
- [**Contributing**](./docs/contributing/index.md)
72+
- [**Architecture**](./docs/contributing/architecture.md)
73+
- [**Monorepo**](./docs/contributing/monorepo.md)
74+
- [**Release**](./docs/contributing/releasing.md)
7575

7676
## Troubleshooting
7777

apps/reactotron-app/src/renderer/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ function App() {
5252
<MainContainer>
5353
<Routes>
5454
{/* Home */}
55-
<Route path="/home" element={<Home />} />
55+
<Route path="/" element={<Home />} />
5656

5757
{/* Timeline */}
58-
<Route path="/" element={<Timeline />} />
58+
<Route path="/timeline" element={<Timeline />} />
5959

6060
{/* State */}
6161
<Route path="/state/subscriptions" element={<Subscriptions />} />

apps/reactotron-app/src/renderer/KeybindHandler.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ function KeybindHandler({ children }) {
9898
const handlers = {
9999
// Tab Navigation
100100
OpenHomeTab: () => {
101-
window.location.hash = "/home"
101+
window.location.hash = "/"
102102
},
103103
OpenTimelineTab: () => {
104-
window.location.hash = "/"
104+
window.location.hash = "/timeline"
105105
},
106106
OpenStateTab: () => {
107107
window.location.hash = "/state/subscriptions"

apps/reactotron-app/src/renderer/components/SideBar/Sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ function SideBar({ isOpen, serverStatus }: { isOpen: boolean; serverStatus: Serv
5656

5757
return (
5858
<SideBarContainer $isOpen={isOpen}>
59-
<SideBarButton image={reactotronLogo} path="/home" text="Home" hideTopBar />
60-
<SideBarButton icon={MdReorder} path="/" text="Timeline" />
59+
<SideBarButton image={reactotronLogo} path="/" text="Home" hideTopBar />
60+
<SideBarButton icon={MdReorder} path="/timeline" text="Timeline" />
6161
<SideBarButton
6262
icon={MdAssignment}
6363
path="/state/subscriptions"

apps/reactotron-app/src/renderer/pages/help/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function Help() {
9898
<ItemIconContainer>
9999
<RepoIcon size={40} />
100100
</ItemIconContainer>
101-
Repo
101+
GitHub Docs
102102
</ItemContainer>
103103
<ItemContainer onClick={openFeedback}>
104104
<ItemIconContainer>

0 commit comments

Comments
 (0)