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

Delight edit layout experiment #6384

Merged
merged 28 commits into from
Aug 2, 2022

Conversation

gileluard
Copy link
Contributor

@gileluard gileluard commented Jul 6, 2022

resolves #6079, resolves #6406, resolves #6407, resolves #6409, resolves #6510, resolves #6509

Scrolling:
ezgif-2-44f39585c0

Filter:
ezgif-2-bad0303854

Edit layout:
ezgif-2-03817b0206

Other context menus:
Simulator Screen Shot - iPhone 12 Pro - 2022-07-27 at 14 36 51
Simulator Screen Shot - iPhone 12 Pro - 2022-07-27 at 14 36 58

- First implementation
# Conflicts:
#	Riot/Generated/UntranslatedStrings.swift
- Update after reviews
- fixed build after merge
- renamed AllChats classes
- new Build settings  newAppLayoutEnaled
- Removed the Pinned space feature
- Removed the All chats layout editor screen
- Added feature flag
- Added context menus
- Removed analytics used for IA test
@github-actions
Copy link

github-actions bot commented Jul 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/4UFsmf

@codecov-commenter
Copy link

codecov-commenter commented Jul 25, 2022

Codecov Report

Merging #6384 (6326fd0) into develop (5b7eb99) will decrease coverage by 0.01%.
The diff coverage is 7.33%.

@@             Coverage Diff             @@
##           develop    #6384      +/-   ##
===========================================
- Coverage     6.18%    6.16%   -0.02%     
===========================================
  Files         1453     1462       +9     
  Lines       155874   157146    +1272     
  Branches     62626    63159     +533     
===========================================
+ Hits          9636     9689      +53     
- Misses      145844   147054    +1210     
- Partials       394      403       +9     
Impacted Files Coverage Δ
Config/BuildSettings.swift 42.18% <ø> (ø)
Riot/Categories/UIViewController.swift 39.17% <0.00%> (-8.33%) ⬇️
Riot/Generated/Images.swift 54.76% <ø> (ø)
Riot/Managers/Theme/Themes/DarkTheme.swift 0.00% <0.00%> (ø)
...iot/Modules/Common/Recents/RecentsViewController.m 7.96% <0.00%> (ø)
.../Recents/Service/Mock/MockRecentsListService.swift 0.00% <0.00%> (ø)
...Modules/Common/Recents/Views/RecentTableViewCell.m 0.00% <0.00%> (ø)
.../SectionHeaders/AllChatsFilterOptionListView.swift 0.00% <0.00%> (ø)
.../Modules/Common/SectionHeaders/SectionHeaderView.m 1.71% <0.00%> (-0.09%) ⬇️
...ot/Modules/Common/SectionHeaders/TabListView.swift 0.00% <0.00%> (ø)
... and 32 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b7eb99...6326fd0. Read the comment docs.

@gileluard gileluard marked this pull request as ready for review July 27, 2022 12:23
@gileluard gileluard requested a review from pixlwave July 27, 2022 12:51
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.

Amazing, very nicely separated with the BuildSetting here 👍

I've left comments inline (sorry there's quite a lot 🫣)

One thing I wasn't sure how to summarise inline though was that the use of recent(s) for breadcrumbs is a little bit confusing. Especially when you end up with RecentsDataSourceSectionTypeRecentRooms/RecentsListServiceSectionRecents where the recents lists has a recents section. Not sure if it would be too big a change at this point to use breadcrumbs everywhere though 😕.

Config/BuildSettings.swift Outdated Show resolved Hide resolved
Riot/Modules/Common/Recents/RecentsViewController.m Outdated Show resolved Hide resolved
Riot/Modules/Home/AllChats/AllChatsActionPanelView.xib Outdated Show resolved Hide resolved
Riot/Modules/Common/SectionHeaders/TabListView.swift Outdated Show resolved Hide resolved
Riot/Modules/Common/SectionHeaders/TabListView.swift Outdated Show resolved Hide resolved
Riot/Modules/TabBar/TabBarCoordinator.swift Outdated Show resolved Hide resolved
Riot/Modules/TabBar/TabBarCoordinator.swift Outdated Show resolved Hide resolved
@gileluard gileluard requested a review from pixlwave August 1, 2022 16:09
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.

Looking good to me! A few more small comments inline.

A couple of weird things I notices while testing:

Toolbar in landscape mode Build flag off, dark theme selected when OS is in light mode (status bar fixed by #6506)
Simulator Screen Shot - iPhone 13 mini - 2022-08-02 at 11 14 21 Simulator Screen Shot - iPhone 13 mini - 2022-08-02 at 11 12 37

Comment on lines 4288 to 4292
// Need to set `showAllRoomsInHomeSpace` to `true` for the new App Layout
if (BuildSettings.newAppLayoutEnaled)
{
RiotSettings.shared.showAllRoomsInHomeSpace = YES;
}
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated to this PR, but I think if this happens, it would be nice to see metaspaces coming to mobile like we have on Web e.g. a "Chats outside of a space" space.

changelog.d/6079.wip.change Show resolved Hide resolved
@gileluard
Copy link
Contributor Author

Looking good to me! A few more small comments inline.

A couple of weird things I notices while testing:

Toolbar in landscape mode Build flag off, dark theme selected when OS is in light mode (status bar fixed by #6506)
Simulator Screen Shot - iPhone 13 mini - 2022-08-02 at 11 14 21 Simulator Screen Shot - iPhone 13 mini - 2022-08-02 at 11 12 37

Everything's fixed now. Nice catch! Thank you :)

@gileluard gileluard requested a review from pixlwave August 2, 2022 13:29
@sonarcloud
Copy link

sonarcloud bot commented Aug 2, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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.

Looks good to me. Great job 👏

@gileluard
Copy link
Contributor Author

🎉🎉🎉

@gileluard gileluard merged commit 55d7c22 into develop Aug 2, 2022
@gileluard gileluard deleted the gil/6079-Delight_Edit_layout_experiment branch August 2, 2022 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants