Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(conversations): add backend support of compact list #13994

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Antreesy
Copy link
Contributor

☑️ Resolves

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

🏡 After
image

🚧 Tasks

  • Check wording
  • Talk Desktop already has Application > Appearance section

🏁 Checklist

  • 🌏 Tested with different browsers / clients:
    • Chromium (Chrome / Edge / Opera / Brave)
    • Firefox
    • Safari
    • Talk Desktop
    • Not risky to browser differences / client
  • 🖌️ Design was reviewed, approved or inspired by the design team

🛠️ API Checklist

🚧 Tasks

  • Check changes

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not possible
  • 📘 API documentation in docs/ has been updated or is not required
  • 🔖 Capability is added or not needed

@Antreesy Antreesy added 3. to review enhancement feature: settings ⚙️ Settings and config related issues feature: api 🛠️ OCS API for conversations, chats and participants labels Dec 13, 2024
@Antreesy Antreesy added this to the 🖤 Next Major (31) milestone Dec 13, 2024
@Antreesy Antreesy self-assigned this Dec 13, 2024
@Antreesy Antreesy force-pushed the feat/11697/compact-list-api branch from c335ce4 to 54c7c21 Compare December 13, 2024 15:18
@@ -229,6 +230,7 @@ public function getCapabilities(): array {
'conversations' => [
'can-create' => $user instanceof IUser && !$this->talkConfig->isNotAllowedToCreateConversations($user),
'force-passwords' => $this->talkConfig->isPasswordEnforced(),
'compact-list' => $this->talkConfig->getConversationsListStyle($user?->getUID()),
Copy link
Member

Choose a reason for hiding this comment

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

I wondered if a bool is the best option for now, or if we use "string" config already:

Suggested change
'compact-list' => $this->talkConfig->getConversationsListStyle($user?->getUID()),
'list-style' => $this->talkConfig->getConversationsListStyle($user?->getUID()),

And basically return the strings:

  • two-lines
  • compact

for now and then we could have other list styles in the future more easily?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If boolean is already passed as 'yes' or 'no', then I don't see a reason to not do it as you suggesting from the beginning

lib/Capabilities.php Outdated Show resolved Hide resolved
lib/Settings/BeforePreferenceSetEventListener.php Outdated Show resolved Hide resolved
lib/Settings/UserPreference.php Outdated Show resolved Hide resolved
src/constants.js Outdated Show resolved Hide resolved
- int<0,1> was chosen if we further want to extend with other appearance types

Signed-off-by: Maksim Sukharev <[email protected]>
Signed-off-by: Maksim Sukharev <[email protected]>
@Antreesy Antreesy force-pushed the feat/11697/compact-list-api branch from 54c7c21 to cd1caae Compare December 16, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review enhancement feature: api 🛠️ OCS API for conversations, chats and participants feature: settings ⚙️ Settings and config related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants