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

SP3.2 long press on rooms in space room lists #5702

Conversation

gileluard
Copy link
Contributor

@gileluard gileluard commented Feb 25, 2022

fix #5232
Simulator Screen Shot - iPhone SE (2nd generation) - 2022-02-25 at 14 35 52

- Added context menu for spaces and rooms in Explore rooms screen
…l/5232_SP3-2_Long_press_on_rooms_in_space_room_lists
…l/5232_SP3-2_Long_press_on_rooms_in_space_room_lists

# Conflicts:
#	Riot/Modules/Spaces/SpaceRoomList/ExploreRoom/SpaceExploreRoomViewModel.swift
#	Riot/Modules/Spaces/SpaceRoomList/ExploreRoomCoordinator.swift
…l/5232_SP3-2_Long_press_on_rooms_in_space_room_lists

# Conflicts:
#	Riot/Assets/en.lproj/Vector.strings
@github-actions
Copy link

github-actions bot commented Feb 25, 2022

📱 Scan the QR code below to install the build for this PR.
🔒 This build is for internal testing purpose. Only devices listed in the ad-hoc provisioning profile can install Element Alpha.

QR code

If you can't scan the QR code you can install the build via this link: https://i.diawi.com/HUDsck

Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

Well this one was easier to review 😁

Question for @niquewoodhouse Is there any scope to use SF Symbols here instead of the images so that
a) they will scale nicely with dynamic type.
b) they will have an outlined style similar to the rest of iOS's context menus.

Comment on lines 324 to 327
inviteAction(for: itemData, isJoined: isJoined),
suggestAction(for: itemData, canSendSpaceStateEvents: canSendSpaceStateEvents),
isJoined ? settingsAction(for: itemData, isJoined: isJoined) :joinAction(for: itemData, isJoined: isJoined),
removeAction(for: itemData, canSendSpaceStateEvents: canSendSpaceStateEvents)
Copy link
Member

Choose a reason for hiding this comment

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

Seeing as the menu contents appears to be identical (to my eyes) I'm assuming that having a forRoom and forSpace methods is for future work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made those 2 methods for future work indeed but I can merge them into one method if you prefer.

Copy link
Member

Choose a reason for hiding this comment

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

No no, was only double checking in case it wasn't, it's totally fine as is 🙂

gileluard and others added 2 commits February 27, 2022 22:57
…ViewModel.swift

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@niquewoodhouse
Copy link

Well this one was easier to review 😁

Question for @niquewoodhouse Is there any scope to use SF Symbols here instead of the images so that a) they will scale nicely with dynamic type. b) they will have an outlined style similar to the rest of iOS's context menus.

Is this something we've done for other context menus already? It does feel like they should all work the same, so however what we've already got there works is ok with me. @pixlwave do we have any options to customise the symbols or introduce our own if we can't find matches?

@pixlwave
Copy link
Member

Is this something we've done for other context menus already?

Well we did this for the new context menus on the Home tab, yes.

do we have any options to customise the symbols or introduce our own if we can't find matches?

Yes and yes. You can download the library browser here if you don't already have it:
https://developer.apple.com/sf-symbols/

From here you can export an existing symbol, modify it and import it back to validate/organise. I think this is also the easiest way to create a new symbol by using an exported file as a template. Also worth saying that one or two of the choices in the home menu weren't ideal, we settled on those as the fastest fix for enabling Xcode 13 with the intention to review them in the future.

Base automatically changed from gil/5231_SP3-1_Update_room_settings_for_Spaces to gil/SP1_space_creation March 1, 2022 07:47
@gileluard gileluard merged commit 8be08af into gil/SP1_space_creation Mar 1, 2022
@gileluard gileluard deleted the gil/5232_SP3-2_Long_press_on_rooms_in_space_room_lists branch March 1, 2022 07:48
@niquewoodhouse
Copy link

Is this something we've done for other context menus already?

Well we did this for the new context menus on the Home tab, yes.

do we have any options to customise the symbols or introduce our own if we can't find matches?

Yes and yes. You can download the library browser here if you don't already have it: https://developer.apple.com/sf-symbols/

From here you can export an existing symbol, modify it and import it back to validate/organise. I think this is also the easiest way to create a new symbol by using an exported file as a template. Also worth saying that one or two of the choices in the home menu weren't ideal, we settled on those as the fastest fix for enabling Xcode 13 with the intention to review them in the future.

Cool, then I'm happy to use SF symbols instead. @gileluard we could pick up changing icons as part of this issue together?

@gileluard
Copy link
Contributor Author

@niquewoodhouse the PR is already merged and the issue closed. Can we create a new issue?

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.

3 participants