Skip to content

fix: restore address book navigation in the sidebar#5417

Closed
pagaille wants to merge 4 commits into
nextcloud:mainfrom
pagaille:fix/addressbook-navigation-and-sharing
Closed

fix: restore address book navigation in the sidebar#5417
pagaille wants to merge 4 commits into
nextcloud:mainfrom
pagaille:fix/addressbook-navigation-and-sharing

Conversation

@pagaille

@pagaille pagaille commented Jul 1, 2026

Copy link
Copy Markdown

Summary

Address books used to be listed in the left sidebar (via the now-deleted SettingsSection.vue), allowing users to click on a book to filter contacts. This was lost in bd536c0 when the settings were migrated to a modal dialog — the address books moved into the modal but no navigation equivalent was added, making the "New address book" feature essentially invisible and useless.

This PR restores the feature:

  • New "Address books" section in the sidebar (RootNavigation.vue), listing all enabled address books with a contact counter
  • New route addressbook/:selectedAddressbook to navigate by address book
  • Contact filtering by selected address book in contactsList
  • New contacts created while an address book is selected are saved into that book (not always the default one)
  • Routing fixes to prevent "Missing required param selectedGroup" errors when on the addressbook route (selectFirstContactIfNone, ContactsListItem)

Test plan

  • Create a new address book via Settings → it appears immediately in the left sidebar
  • Click an address book in the sidebar → only its contacts are shown
  • Click a contact in the filtered list → contact detail opens correctly
  • Click "New contact" while an address book is selected → contact is created in that address book
  • Disabling an address book via Settings → it disappears from the sidebar
  • Existing group/circle/chart navigation is unaffected

🤖 Generated with Claude Code

Matthieu and others added 4 commits July 1, 2026 10:05
- Add address books section to the left sidebar navigation so users can
  filter contacts by address book (feature was removed in bd536c0 when
  settings were moved to a modal dialog)
- Fix sharing button never showing due to wrong property name:
  currentUserPrincipal.principalUrl → currentUserPrincipal.url,
  causing isSharedWithMe to always be true and hiding the share button

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Matthieu <webmail@gaillet.be>
- Fix "Missing required param selectedGroup" error when browsing an
  address book: ContactsListItem now uses GROUP_ALL_CONTACTS as fallback
  and selectFirstContactIfNone() early-exits on the addressbook route
- New contacts created while an address book is selected are saved into
  that address book instead of the default one

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Matthieu <webmail@gaillet.be>
The sharing functionality already works correctly in the settings modal.
The principalUrl property change was not actually needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Matthieu <webmail@gaillet.be>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Matthieu <webmail@gaillet.be>
@pagaille pagaille force-pushed the fix/addressbook-navigation-and-sharing branch from 9661835 to 4ca235f Compare July 1, 2026 08:05
@hamza221

hamza221 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@pagaille please point your agent to Claude.md or Agents.md and update or recreate the PR

@hamza221 hamza221 added enhancement New feature or request 2. developing Work in progress labels Jul 1, 2026
@pagaille

pagaille commented Jul 1, 2026

Copy link
Copy Markdown
Author

@pagaille please point your agent to Claude.md or Agents.md and update or recreate the PR

Apologizes ! I didn't know and I must admit I was a bit quick on this one, that's my first PR using an AI agent. I'll close it and recreate accurately.

@hamza221

hamza221 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@pagaille please point your agent to Claude.md or Agents.md and update or recreate the PR

Apologizes ! I didn't know and I must admit I was a bit quick on this one, that's my first PR using an AI agent. I'll close it and recreate accurately.

No worries, thank you for understanding 😊

@pagaille

pagaille commented Jul 1, 2026

Copy link
Copy Markdown
Author

Closing to recreate with a clean history and proper commit format per AGENTS.md.

@pagaille pagaille closed this Jul 1, 2026
@pagaille pagaille deleted the fix/addressbook-navigation-and-sharing branch July 1, 2026 15:34
@hamza221

hamza221 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

for more context, If I understood your PR correctly from a first glance.
This might be related #3647
Please check this comment specifically for some direction #3647 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants