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/more #106

Merged
merged 13 commits into from
Sep 3, 2018
Merged

Feature/more #106

merged 13 commits into from
Sep 3, 2018

Conversation

pablocarmu
Copy link
Contributor

Description

This PR makes a new view for actions instead of swipes.

Related Issue

#82

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.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link

codecov bot commented Aug 17, 2018

Codecov Report

Merging #106 into master will decrease coverage by 0.81%.
The diff coverage is 2.56%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #106      +/-   ##
==========================================
- Coverage   27.98%   27.17%   -0.82%     
==========================================
  Files          64       63       -1     
  Lines        5906     5741     -165     
==========================================
- Hits         1653     1560      -93     
+ Misses       4253     4181      -72
Impacted Files Coverage Δ
...esentation Controller/CardTransitionDelegate.swift 0% <0%> (ø) ⬆️
ownCloud/Client/ClientQueryViewController.swift 0% <0%> (ø) ⬆️
ownCloud/Client/SortBar.swift 0% <0%> (ø) ⬆️
ownCloud/Bookmarks/BookmarkViewController.swift 24.32% <0%> (ø) ⬆️
ownCloud/Client/ClientItemCell.swift 0% <0%> (ø) ⬆️
...Client/Actions/MoreStaticTableViewController.swift 0% <0%> (ø) ⬆️
...tation Controller/CardPresentationController.swift 0% <0%> (ø) ⬆️
ownCloud/Client/Actions/MoreViewController.swift 0% <0%> (ø) ⬆️
ownCloud/Settings/MoreSettingsSection.swift 34.88% <0%> (ø) ⬆️
ownCloud/Client/Actions/MoreViewHeader.swift 0% <0%> (ø) ⬆️
... and 9 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 bff387e...3772304. Read the comment docs.

@jesmrec
Copy link
Contributor

jesmrec commented Aug 20, 2018

@pablocarmu why is the file name twice at the right of the thumbnail:

screen shot 2018-08-20 at 14 52 38

@jesmrec
Copy link
Contributor

jesmrec commented Aug 20, 2018

View in landscape with iPhone X:

screen shot 2018-08-20 at 15 05 35

the Action label is too close to the notch

@michaelstingl
Copy link
Contributor

I think we discussed this on Friday: Maybe keep same margin from left as in the file list.

Pablo Carrascal added 5 commits August 22, 2018 09:20
…sign guidelines described in #82

- Created new init methods in StaticTableViewRow and StaticTableViewSection to support NSAttributedString as titles.
- Created new UIPresentationController called CardPresentationController to support the presentation of a view controller in a "card" way.
- Coded support for NSAttributedString in ThemeTableViewCell.
- Coded the size of the item as detail label in the more header.
- Coded the rename feature using the more view.
- Now the detail label in the MoreHeaderView shows the last modified date of an OCItem.
@jesmrec
Copy link
Contributor

jesmrec commented Aug 22, 2018

All stuff fixed. OK from side

@jesmrec jesmrec added the Approved by QA Approved by QA label Aug 22, 2018
@pablocarmu pablocarmu self-assigned this Aug 22, 2018
@felix-schwarz
Copy link
Contributor

Started reviewing and, using the default theme, I'm getting this:
bildschirmfoto 2018-08-23 um 20 35 01

Can you reproduce that?

…ntQueryViewController

- Figured out card-style scrolling:
	- until the card is fully "open": all pan gestures move the card
	- once the card is fully "open":
		- pans in UIScrollView upwards scroll the scrollView up
		- pans in UIScrollView downwards
			- scroll the scrollView down if its position is not already at the top
			- move the card if the scrollView's position is already at the top
@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.

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

Pablo Carrascal and others added 6 commits August 24, 2018 09:55
…n't be extended beyond the maximum size of the content

- Make MoreStaticTableViewController adopt dynamic sizing/auto layout
- Fix formatting
- Fix SwiftLint warnings
- Add missing license texts
…dPanGestureRecognizer and dimmingViewGestureRecognizer types

- add overStretchView that is attached below the presentedView
- make sure containerViewWillLayoutSubviews isn't interferring with animations / user drags
- considering that the card won't permanently extend beyond the size of the card, default the cardPosition to .open to show as much of the card as possible
- Make taps on the drag handle dismiss the card
- Add support for iPhone X safe areas to CardPresentationController
- CardPresentationController dynamically makes MoreViewController disable scrolling if it fits entirely on screen
- unified dismiss code
- added convenience method to UIViewController to quickly present a view controller as a card
- cleaned up static table view code and made the moreViewController use "buttonWithAction"
- added support for non-opaque buttons to StaticTableViewRow
- cleaned up MoreViewController constraints and fixed an exception/warning during rotation
- fixed thumbnail size in MoreViewHeader
- rewrote MoreViewHandler constraint code
- Fix indentations in various places
…ntroller

- ClientQueryViewController gains new methods for folder creation, rename and delete
- added titles to "New folder" and "Rename" actions
- fix missing spacing of sortbar when rotating in iPhone X and using in landscape
- improved text in alerts
- remove NSAttributedStringKey extension as its no longer needed
…taticTableViewSection to MoreStaticTableViewSection, as the properties are only used by MoreStaticTableViewController.
@jesmrec
Copy link
Contributor

jesmrec commented Sep 3, 2018

Approved

@jesmrec jesmrec merged commit b8c0e2c into master Sep 3, 2018
@jesmrec jesmrec deleted the feature/more branch September 3, 2018 10:15
@jesmrec jesmrec mentioned this pull request Jan 22, 2019
45 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved by QA Approved by QA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants