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

[feature/share-extension-account-items] Expanded Single Account / Additional Items #1296

Closed
wants to merge 107 commits into from

Conversation

hosy
Copy link
Collaborator

@hosy hosy commented Nov 16, 2023

Description

  • expand the account section, if only one account is configured
  • show quick access and saved searches in client location picker in share extension to get more access to save locations
  • automatically expand quick access folder in share sheet

Simulator Screenshot - iPhone 15 Pro - 2023-11-16 at 18 32 07-2

Related Issue

https://github.com/owncloud/enterprise/issues/6134

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • Added an issue with details about all relevant changes in the iOS documentation repository.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • Added changelog files for the fixed issues in folder changelog/unreleased

hosy and others added 30 commits July 11, 2023 11:33
Co-authored-by: Michael Stingl <[email protected]>
* Remove old PLIST examples

* move ownCloud.online theme + assets

* move EMM assets

* Adjust Fastfile for moved themes + assets

* updated to Xcode 14.3

* move all app resources to the correct place in one copy command

* updated to 14.3.1

---------

Co-authored-by: Michael Stingl <[email protected]>
Co-authored-by: Matthias Hühne <[email protected]>
- added accessibility label to the logo image
- add support for RGBA hex values to CSS
…screen background (#1264)

* - add background image to welcome screen
- add support for RGBA hex values to CSS

* Assets.xcassets/AppIcon.appiconset generated with fastlane

* align icon name with branding

---------

Co-authored-by: Felix Schwarz <[email protected]>
Co-authored-by: Michael Stingl <[email protected]>
…cords for colors, incl. a set of system colors

- ThemeCollection: add system colors (f.ex. UIColor.systemBlue as `os.color.blue`) and theme base colors (as `theme.color.light` and `theme.color.dark`) to CSS object
	- add permanent logo branding to top of the view
	- make branding elements use same CSS selectors as welcome screen
- ComposedMessageView: make CSS selectors extension public
- RoundCornerBackgroundView: add new .fillImage property that allows filling the view with an image with "scaleAspectFill" contentMode
…lor and label was not readable, if lightBrandColor was similar to #000000
…ErrorForNonExistentItemWithIdentifier:]` for the case that iOS (illegally) passes in a nil `identifier`, leading to a crash in said NSError method
felix-schwarz and others added 5 commits November 2, 2023 11:30
…alue could be determined for the first time (fixing crash/finding 8 in #1274)
- change officeFileFillColor to documentFileFillColor
- expand the account section, if only one account is configured
- show quick access and saved searches in client location picker in share extension
@jesmrec jesmrec mentioned this pull request Nov 21, 2023
36 tasks
@jesmrec
Copy link
Contributor

jesmrec commented Dec 5, 2023

(1)

Menu is only expanded the first time. Follow these steps:

  1. Add only one account to device
  2. Open Photos (or any other app to share files)
  3. Select some pictures to share with oC -> Picker displayed
  4. Cancel
  5. Repeat step 3.

Current: menu not expanded:

RPReplay_Final1701765477.MP4

Expected: menu expanded, no matter hay many times

iPhoneXR v17.2
23b11e12

cc @hosy

@michaelstingl
Copy link
Contributor

Current: menu not expanded:

@felix-schwarz could you have another 👀 ?

…lectionViewAction

- CollectionViewAction: add missing parts in implementation for .expand() to expand cells, add status awareness (double expansion collapses them again)
- CollectionViewSection: check cell expansion status before expanding the cell (double expansion collapses them again)
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ hosy
❌ felix-schwarz
You have signed the CLA already but the status is still pending? Let us recheck it.

@felix-schwarz
Copy link
Contributor

@hosy @michaelstingl @jesmrec I fixed issue (1) in ecf3610

@jesmrec
Copy link
Contributor

jesmrec commented Dec 13, 2023

Checked the fix, please take a look to the following video ( taken with ecf3610a - 57b05c6):

RPReplay_Final1702462392.MP4
  • First time sharing, menu is expanded but then collapsed
  • Second time, Connecting in the status bar ant the app closes itself
  • Third time, same as first.

I tested many times, and also worked fine in some of then. Not sure if there are kind of race condition or similar that causes such weird effect. If logs or any other info helps, i will catch.

Tested with iPhoneXR 17.2

	- add new option .allowHidingNavigationBar to allow fine-tuning hiding of navigation bar (fixes optical issue when using ClientLocationPicker within the app, while allowing customization through ShareExtensionViewController)
	- apply same fixes to setting up sectionDataSource as were previously applied for the app's sidebar
- ShareExtensionViewController:
	- add minor delay before opening single account connection
	- make use of ClientLocationPicker.allowHidingNavigationBar to force navigation bar even on first level
- AccountController: clean-up and optimizations
@felix-schwarz
Copy link
Contributor

@jesmrec I had another look and it seems those were weird timing issues, which I hope to have addressed with b828930. Please have another look.

@jesmrec
Copy link
Contributor

jesmrec commented Dec 15, 2023

works much better, but i still see that is not totally correct. Sometimes is not expanded

RPReplay_Final1702462392.mp4

52c4fc7
74156a0

@michaelstingl michaelstingl added this to the 12.2-Next milestone Dec 18, 2023
@delete-merged-branch delete-merged-branch bot deleted the branch milestone/12.1 January 29, 2024 14:27
Base automatically changed from feature/account-wizard to milestone/12.1 January 29, 2024 16:56
@delete-merged-branch delete-merged-branch bot deleted the branch milestone/12.1 January 30, 2024 15:36
@felix-schwarz
Copy link
Contributor

Superseded by changes in #1320.

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.

[FEATURE REQUEST] Skip account selection when only a one account is configured
5 participants