Skip to content

Show company and groups in the contact list - #637

Closed
Darezwebdeveloper wants to merge 1 commit into
FossifyOrg:mainfrom
Darezwebdeveloper:empresa-grupos-en-lista
Closed

Darezwebdeveloper wants to merge 1 commit into
FossifyOrg:mainfrom
Darezwebdeveloper:empresa-grupos-en-lista

Conversation

@Darezwebdeveloper

Copy link
Copy Markdown

Adds two settings (off by default) that add a details line under the contact name in the list view: the organization's company and/or the contact's groups (labels). Search also matches group titles.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01Y1eyNkop3UTi9xa1euQ2m7

Adds two settings (off by default) that add a details line under the contact name in the list view: the organization's company and/or the contact's groups (labels). Search also matches group titles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y1eyNkop3UTi9xa1euQ2m7
Copilot AI balanced review requested due to automatic review settings October 31, 2026 13:04
@fossifybot

fossifybot Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Fossify accepts code contributions only for open issues labeled help wanted. This pull request does not meet that requirement or one of the documented exceptions, so it is being closed without review. Please read the contribution guidelines before starting work.

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.

🟡 Changes recommended

Group mutations leave labels and group-title search results stale in Contacts and Favorites because those tabs’ contact data is not refreshed.

1 open issue
What changed in this PR

Adds optional company and group details to contact list rows and extends contact search to match group titles.

Changes:

  • Adds two display settings, both off by default, with English and Spanish labels.
  • Introduces a details-enabled contact row and formats company/group information.
  • Matches group titles in search and restarts the main screen when either display setting changes.
File Description
app/​src/​main/​res/​values/​strings.xml Adds English setting labels.
app/​src/​main/​res/​values-es/​strings.xml Adds Spanish setting labels.
app/​src/​main/​res/​layout/​item_contact_with_details.xml Defines the contact row with a details line.
app/​src/​main/​res/​layout/​activity_settings.xml Adds company and group display switches.
app/​src/​main/​kotlin/​org/​fossify/​contacts/​helpers/​Constants.kt Defines preference keys.
app/​src/​main/​kotlin/​org/​fossify/​contacts/​helpers/​Config.kt Stores both settings with disabled defaults.
app/​src/​main/​kotlin/​org/​fossify/​contacts/​fragments/​MyViewPagerFragment.kt Includes group titles in contact search.
app/​src/​main/​kotlin/​org/​fossify/​contacts/​adapters/​ContactsAdapter.kt Selects the details layout and binds company/group text.
app/​src/​main/​kotlin/​org/​fossify/​contacts/​activities/​SettingsActivity.kt Connects the switches to preferences.
app/​src/​main/​kotlin/​org/​fossify/​contacts/​activities/​MainActivity.kt Restarts the screen when display settings change.

Review effort: Balanced

Comment on lines +516 to +517
val groupTitles = contact.groups
.map { it.title.trim() }
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.

2 participants