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

Improve room selector modal #11583

Merged
merged 5 commits into from
Feb 19, 2024
Merged

Improve room selector modal #11583

merged 5 commits into from
Feb 19, 2024

Conversation

Fenn-CS
Copy link
Contributor

@Fenn-CS Fenn-CS commented Feb 13, 2024

☑️ Resolves

  • Refactor of RoomSelector
    • Use ConversationsListVirtual and ConversationSearchResult for conversations list:
      • improve accessibility, optimize rendering
      • show last message if provided ⚠️ optionally, disabled atm
      • resolve issue with immediate load of all avatars
    • Test coverage

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

🏚️ Before 🏡 After
image image
image image

Test coverage:
image

🚧 Tasks

  • Code review
  • Design review
  • TODO:
    • emit full conversation instead of token on 'Select conversation' - chore(RoomSelector): reduce bundle size #11589
    • Split virtual list into two components => Conversation pulls all dependencies
    • reuse shared computed/methods between ConversationSearchResult / Conversation
    • check ConversationSearchResult component for reuse in LeftSidebar (need to provide actions)

@Antreesy
Copy link
Contributor

Thanks! There are couple of things to improve here, so I'll take it over if you don't mind =)

@Antreesy Antreesy self-assigned this Feb 13, 2024
@DorraJaouad DorraJaouad self-requested a review February 13, 2024 10:23
@Antreesy Antreesy added this to the 💞 Next Major (29) milestone Feb 13, 2024
@Antreesy Antreesy added the feature: frontend 🖌️ "Web UI" client label Feb 13, 2024
@Antreesy Antreesy marked this pull request as draft February 13, 2024 12:19
src/components/RoomSelector.vue Show resolved Hide resolved
src/components/RoomSelector.vue Outdated Show resolved Hide resolved
src/components/RoomSelector.spec.js Outdated Show resolved Hide resolved
src/components/RoomSelector.vue Show resolved Hide resolved
@Antreesy Antreesy marked this pull request as ready for review February 13, 2024 19:05
Copy link
Contributor

@DorraJaouad DorraJaouad left a comment

Choose a reason for hiding this comment

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

BTW, Conversation can behave like ConversationSearchResult when isSearchResult is truthy and it is currently used in LeftSidebar. It would be better if we align and change to ConversationSearchResult there too and remove the prop from Conversation.

@DorraJaouad
Copy link
Contributor

We need design review for adding last message to the conversations list ( cc @szaimen ). It is altering the UX a bit as user is now exposed to more information ( probably more than needed) when they are forwarding a message to a conversation or sharing a deck. Usually ( I mean in other chatting platforms), messages are not shown for such actions (user looks for the conversation name rather then last message).
image

@szaimen
Copy link
Contributor

szaimen commented Feb 16, 2024

We need design review for adding last message to the conversations list ( cc @szaimen ). It is altering the UX a bit as user is now exposed to more information ( probably more than needed) when they are forwarding a message to a conversation or sharing a deck. Usually ( I mean in other chatting platforms), messages are not shown for such actions (user looks for the conversation name rather then last message).

The design looks good to me in general 👍

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
…essages in selector optionally

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Copy link
Contributor

@DorraJaouad DorraJaouad left a comment

Choose a reason for hiding this comment

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

Tested 🦅

@Antreesy Antreesy merged commit e7faeba into main Feb 19, 2024
45 checks passed
@Antreesy Antreesy deleted the update-room-selector branch February 19, 2024 07:43
Copy link
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

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

Successfully merging this pull request may close these issues.

4 participants