Skip to content

Conversation

caybro
Copy link
Member

@caybro caybro commented Aug 20, 2025

What does the PR do

  • treat the HomePage as any other section

Fixes #18664

Affected areas

AppMain

Architecture compliance

Screencapture of the functionality

Zaznam.obrazovky.z.2025-08-20.17-39-19.mp4

Impact on end user

No more special treatment of the HomePage, last active section will always be the one we start with the next time

How to test

  • navigate to some section
  • quit & restart the app
  • the app should start with the last active section

Risk

  • low

@caybro caybro requested a review from a team as a code owner August 20, 2025 15:41
@caybro caybro requested review from glitchminer and removed request for a team August 20, 2025 15:41
@caybro caybro linked an issue Aug 20, 2025 that may be closed by this pull request
@caybro caybro requested review from alaibe and jrainville August 20, 2025 15:41
@@ -701,6 +701,8 @@ method load*[T](
enabled = true,
)
self.view.model().addItem(homePageSectionItem)
if activeSectionId == homePageSectionItem.id:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remembering the HomePage as any other section

@@ -863,8 +865,9 @@ method load*[T](
self.marketModule.load()

# If the home page is enabled, we default to it as the opening section
if homePageEnabled:
activeSection = homePageSectionItem
# (disabled for 2.35 as per https://github.com/status-im/status-desktop/issues/18664, revisit after)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disabled the part where we enforced the HomePage

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we can just set homePageEnabled=false, no? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm no, we're not disabling the HomePage here, we're just restoring the old behavior where the last used section is remembered on the next app start

@status-im-auto
Copy link
Member

status-im-auto commented Aug 20, 2025

Jenkins Builds

Click to see older builds (40)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f04a0e8 #1 2025-08-20 15:53:40 ~12 min tests/nim 📄log
✔️ f04a0e8 #1 2025-08-20 15:56:55 ~15 min macos/aarch64 🍎dmg
✔️ f04a0e8 #1 2025-08-20 15:59:32 ~17 min tests/ui 📄log
✔️ f04a0e8 #1 2025-08-20 16:00:50 ~19 min linux/x86_64 📦tgz
✔️ f04a0e8 #1 2025-08-20 16:01:50 ~20 min macos/aarch64-nwaku 🍎dmg
✔️ f04a0e8 #1 2025-08-20 16:03:41 ~22 min linux/x86_64-nwaku 📦tgz
✖️ f04a0e8 pr18672 2025-08-20 16:11:23 ~10 min tests/e2e 📊rpt
✔️ f04a0e8 #1 2025-08-20 16:11:31 ~29 min windows/x86_64 💿exe
✔️ cfe13b7 #2 2025-08-21 13:27:09 ~5 min tests/nim 📄log
✔️ cfe13b7 #2 2025-08-21 13:34:07 ~12 min linux/x86_64 📦tgz
✔️ cfe13b7 #2 2025-08-21 13:35:04 ~13 min tests/ui 📄log
✔️ cfe13b7 #2 2025-08-21 13:36:32 ~15 min macos/aarch64 🍎dmg
✔️ cfe13b7 #2 2025-08-21 13:42:17 ~20 min linux/x86_64-nwaku 📦tgz
✔️ cfe13b7 #2 2025-08-21 13:42:37 ~21 min macos/aarch64-nwaku 🍎dmg
✔️ cfe13b7 #2 2025-08-21 13:48:28 ~26 min windows/x86_64 💿exe
✖️ cfe13b7 pr18672 2025-08-21 13:48:44 ~14 min tests/e2e 📊rpt
a379ab0 #3 2025-08-21 14:50:09 ~5 min linux/x86_64-nwaku 📄log
✔️ a379ab0 #3 2025-08-21 14:51:46 ~7 min tests/nim 📄log
✔️ a379ab0 #3 2025-08-21 14:53:38 ~8 min macos/aarch64 🍎dmg
✔️ a379ab0 #3 2025-08-21 14:56:57 ~12 min linux/x86_64 📦tgz
✔️ a379ab0 #3 2025-08-21 14:57:36 ~12 min tests/ui 📄log
✔️ a379ab0 #3 2025-08-21 14:59:33 ~14 min macos/aarch64-nwaku 🍎dmg
✔️ a379ab0 #3 2025-08-21 15:09:07 ~24 min windows/x86_64 💿exe
✖️ a379ab0 pr18672 2025-08-21 15:10:00 ~12 min tests/e2e 📊rpt
✔️ 8682bc8 #4 2025-08-21 15:21:19 ~7 min tests/nim 📄log
✔️ 8682bc8 #4 2025-08-21 15:24:54 ~10 min macos/aarch64 🍎dmg
✔️ 8682bc8 #4 2025-08-21 15:28:53 ~14 min tests/ui 📄log
✔️ 8682bc8 #4 2025-08-21 15:29:59 ~16 min linux/x86_64 📦tgz
✔️ 8682bc8 #4 2025-08-21 15:30:29 ~16 min macos/aarch64-nwaku 🍎dmg
✔️ 8682bc8 #4 2025-08-21 15:34:52 ~21 min linux/x86_64-nwaku 📦tgz
✔️ 8682bc8 #4 2025-08-21 15:37:33 ~23 min windows/x86_64 💿exe
✖️ 8682bc8 pr18672 2025-08-21 15:42:04 ~11 min tests/e2e 📊rpt
✔️ 7963d06 #5 2025-08-22 06:26:47 ~5 min tests/nim 📄log
✔️ 7963d06 #5 2025-08-22 06:31:50 ~10 min macos/aarch64 🍎dmg
✔️ 7963d06 #5 2025-08-22 06:33:17 ~12 min tests/ui 📄log
✔️ 7963d06 #5 2025-08-22 06:35:02 ~14 min linux/x86_64 📦tgz
✔️ 7963d06 #5 2025-08-22 06:36:39 ~15 min macos/aarch64-nwaku 🍎dmg
✔️ 7963d06 #5 2025-08-22 06:39:59 ~19 min linux/x86_64-nwaku 📦tgz
✔️ 7963d06 pr18672 2025-08-22 06:47:38 ~12 min tests/e2e 📊rpt
✔️ 7963d06 #5 2025-08-22 06:47:44 ~26 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ baa5dec #6 2025-08-22 07:08:50 ~5 min tests/nim 📄log
✔️ baa5dec #6 2025-08-22 07:15:22 ~12 min tests/ui 📄log
✔️ baa5dec #6 2025-08-22 07:27:30 ~24 min windows/x86_64 💿exe
✔️ baa5dec #7 2025-08-22 07:56:17 ~15 min linux/x86_64 📦tgz
✖️ baa5dec pr18672 2025-08-22 08:08:06 ~11 min tests/e2e 📊rpt
✔️ 5dd76b1 #7 2025-08-22 09:44:44 ~16 min tests/nim 📄log
✔️ 5dd76b1 #7 2025-08-22 09:50:20 ~22 min macos/aarch64 🍎dmg
✔️ 5dd76b1 #8 2025-08-22 09:51:36 ~23 min linux/x86_64 📦tgz
✔️ 5dd76b1 #7 2025-08-22 09:52:01 ~24 min tests/ui 📄log
✔️ 5dd76b1 #7 2025-08-22 09:56:44 ~28 min macos/aarch64-nwaku 🍎dmg
✔️ 5dd76b1 #7 2025-08-22 09:59:06 ~31 min linux/x86_64-nwaku 📦tgz
✔️ 5dd76b1 pr18672 2025-08-22 10:02:47 ~11 min tests/e2e 📊rpt
✔️ 5dd76b1 #7 2025-08-22 10:07:22 ~39 min windows/x86_64 💿exe

@caybro caybro requested review from igor-sirotin and anastasiyaig and removed request for glitchminer August 20, 2025 16:00
Copy link
Contributor

@igor-sirotin igor-sirotin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!
This should be based on release branch, shouldn't it?

@@ -863,8 +865,9 @@ method load*[T](
self.marketModule.load()

# If the home page is enabled, we default to it as the opening section
if homePageEnabled:
activeSection = homePageSectionItem
# (disabled for 2.35 as per https://github.com/status-im/status-desktop/issues/18664, revisit after)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we can just set homePageEnabled=false, no? 🤔

@caybro
Copy link
Member Author

caybro commented Aug 20, 2025

Thank you! This should be based on release branch, shouldn't it?

It will, once the e2e is fixed

@anastasiyaig anastasiyaig requested a review from a team as a code owner August 21, 2025 13:21
@anastasiyaig anastasiyaig linked an issue Aug 21, 2025 that may be closed by this pull request
@anastasiyaig anastasiyaig force-pushed the 18664-stop-showing-home-page-by-default-when-logging-in branch 2 times, most recently from a379ab0 to 8682bc8 Compare August 21, 2025 15:13
@jrainville
Copy link
Member

@anastasiyaig once e2e tests are fine, you can let me know. I'm taking over this PR while Lukas is off

@anastasiyaig
Copy link
Contributor

alright sure @jrainville its almost done, should be ready tomorrow

@anastasiyaig anastasiyaig force-pushed the 18664-stop-showing-home-page-by-default-when-logging-in branch from 8682bc8 to 7963d06 Compare August 22, 2025 06:20
- treat the HomePage as any other section

Fixes #18664
@anastasiyaig anastasiyaig force-pushed the 18664-stop-showing-home-page-by-default-when-logging-in branch from 7963d06 to baa5dec Compare August 22, 2025 07:02
@anastasiyaig anastasiyaig force-pushed the 18664-stop-showing-home-page-by-default-when-logging-in branch from baa5dec to 5dd76b1 Compare August 22, 2025 09:27
@anastasiyaig
Copy link
Contributor

@jrainville i am done with my changes in this PR

@jrainville jrainville merged commit 52c8064 into master Aug 22, 2025
9 checks passed
@jrainville jrainville deleted the 18664-stop-showing-home-page-by-default-when-logging-in branch August 22, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix tests to reflect changes in main screen (dock) Stop showing Home page by default when logging in
5 participants