Skip to content

feat: Setting to show last viewed note or welcome screen on start up - #1578

Open
enjeck wants to merge 2 commits into
mainfrom
feat/955
Open

feat: Setting to show last viewed note or welcome screen on start up#1578
enjeck wants to merge 2 commits into
mainfrom
feat/955

Conversation

@enjeck

@enjeck enjeck commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

Fixes #955

enjeck added 2 commits June 25, 2025 19:57
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
Signed-off-by: Enjeck C <patrathewhiz@gmail.com>
@enjeck
enjeck marked this pull request as ready for review June 25, 2025 18:57
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Jun 25, 2025
@enjeck

enjeck commented Jun 25, 2025

Copy link
Copy Markdown
Contributor Author

I added a checkbox setting that lets one select whether to show the last viewed note or welcome screen when /index.php/apps/notes/ is visited:
Screenshot 2025-06-25 at 19 55 42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a new user setting to control what the Notes app shows on startup, intended to mitigate the privacy concern of automatically opening the last viewed note.

Changes:

  • Add a new “Startup” setting in the app settings UI to toggle loading the last viewed note on launch.
  • Adjust initial routing behavior in App.vue to either open the last viewed note or the welcome screen based on the setting.
  • Introduce the new loadRecentOnStartUp setting (default true) in the backend settings service.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
src/components/AppSettings.vue Adds the new startup setting UI and (currently) an extra unused handler method.
src/App.vue Changes routing on note-load based on the new startup setting.
lib/Service/SettingsService.php Registers the new setting and its validation/default behavior server-side.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/App.vue
Comment on lines +141 to +145
if (store.state.app.settings?.loadRecentOnStartUp) {
this.routeDefault(data.lastViewedNote)
} else {
this.routeWelcome()
}
Comment on lines +37 to +41
<NcAppSettingsSection id="start-up-section" :name="t('notes', 'Start Up')">
<NcCheckboxRadioSwitch :checked.sync="settings.loadRecentOnStartUp" @update:checked="onChangeSettings">
Load recently updated note on startup
</NcCheckboxRadioSwitch>
</NcAppSettingsSection>
Comment on lines +202 to +211
onChangeStartUp(event) {
this.saving = true
this.settings.loadRecentOnStartUp = event.target.checked
return setSettings(this.settings)
.catch(() => {
})
.then(() => {
this.saving = false
})
},
@click="onChangeNotePath"
>
</NcAppSettingsSection>
<NcAppSettingsSection id="start-up-section" :name="t('notes', 'Start Up')">
Comment on lines +73 to +75
'validate' => function ($value) {
return $value === 'true' || $value === true;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 🧭 Planning evaluation (don't pick)

Development

Successfully merging this pull request may close these issues.

Choice for startup screen to avoid showing confidential notes.

3 participants