Rocket.Chat.Electron icon indicating copy to clipboard operation
Rocket.Chat.Electron copied to clipboard

feat: optional setting to start with home screen

Open preeesha opened this issue 1 year ago • 3 comments

feat: Optional setting to start with Home page

Closes #2532

This PR addresses the feature request to add an option in the setting to decide which page should be opened when the user starts the RocketChat's desktop app.

Through this PR, a new options is being added in the settings called "Always start on home page". Here's an overview:

  1. When disabled, default behaviour will be there in which when the user click on the server icon in the sidbar, it lands to the last page he/she visited in that server as stored in lastPath property.
  2. When enabled, the user will land on the home page of the server ignoring the lastPath property.

Here's a snapshot showcasing the new doAlwaysStartAtHomePage switch in config.json: image

For context, this lastPath property is stored in the config.json. It's stored individually for each server.

https://github.com/RocketChat/Rocket.Chat.Electron/assets/126406840/d9e1885d-e80e-4be3-963c-d152dc4b9d3d

This video showcases the working of the functionality. In this, at first, I opened the app with the "Always start at home page" setting disabled. The app lands me to the last visited page (team view) of the rocket chat community. Then I switched the setting and reopened the app & this time I got at the home page of the server instead of the last visited page.

preeesha avatar Jan 06 '24 16:01 preeesha

Hey @preeesha thank you for the contribution. Can you resolve the conflicts for us?

jeanfbrito avatar Feb 06 '24 17:02 jeanfbrito

Thanks for the feedback @jeanfbrito. I'll update you within 24-48h with resolved conflicts.

preeesha avatar Feb 06 '24 18:02 preeesha

@jeanfbrito I have resolved the conflicts. You can now proceed with reviewing the PR.

preeesha avatar Feb 06 '24 18:02 preeesha