95 Commits

Author SHA1 Message Date
Ryan Nystrom
c23945ac7d Enable SwiftLint and fix issues (#2292)
* update swiftlint

* build with lint enabled

* fix almost all warnings

* remove wholemodule
2018-10-16 21:54:55 -04:00
Ryan Nystrom
3ae609292d thread error descriptions to squawk throughout app (#2286) 2018-10-13 23:09:45 -04:00
Ashley Ng
5c94d98cf6 Adds more share actions when browsing a repository (#2161) (#2237)
* add additional share actions

* fix share URLs
2018-10-07 16:00:14 -04:00
Ryan Nystrom
e7386183de Reactions with ContextMenu (#2112)
* reactions with ContextMenu

* Remove dead code

* add haptics

* slightly faster presentation for reactions
2018-08-14 09:47:18 -04:00
Ryan Nystrom
482ddf30f0 strip signature when editing (#2090) 2018-08-11 15:21:38 -04:00
Ryan Nystrom
28b76e61e1 Clean up reactions settings (#2084) 2018-08-11 13:50:36 -04:00
Ehud Adler
af4e0f8fb8 Choose double tap (#2022)
* Addresses #2013

* fixed issue with creating reaction from string

* Switched from MenuController to Separate TableViewController

* Minor wording change

* Minor wording update

* Switched all cells to StyleTextCells

* UX fixes.
Migrated back into GitHawk Section
Removed None and replaced it with a switch

* Switched Set Double Tap Reaction -> Double Tap Reaction
2018-08-11 11:02:29 -04:00
Ryan Nystrom
a23e756d2a Prevent crash when checkbox range oob (#2034) 2018-08-05 11:37:21 -04:00
Ivan Smetanin
ade56a81a1 Fix preferredContentSizeCategory called on background thread issue (#2037) 2018-08-05 11:37:03 -04:00
Ryan Nystrom
e56c29a9a6 Redesigned Issues interface (#1983)
* clean up title model

* update title style

* organize issue SC method

* remove background colors from styled text in issues

* collection view bg white

* remove card inset and clean up snap superview code

* clean up label design

* thread is root and change base font size

* remove borders on comment cells

* adjust collapse design

* adjust comment line spacing and make non-root body smaller

* refactor detail view

* viewer header background color

* more buttons in reaction cell

* vertical spacers working

* design basically finished;

* scroll to bottom accounts for inset

* PR review background color white

* fixup PR review comments

* spacing on merge and review

* readme background white

* rename to just "spacer"

* horizontal spacing

* fix tests
2018-07-27 11:03:09 -04:00
Ryan Nystrom
3028081c3c Migrate Toast component to new Squawk CocoaPod library (#1900)
* add Squawk lib

* delete Toast

* Build green

* fix build after rebase
2018-07-14 18:26:47 -04:00
Ryan Nystrom
e9899fb935 Delete NSAttributedStringSizing (#1826)
* Delete NSAttributedStringSizing

* compile
2018-05-21 11:15:38 -04:00
Ryan Nystrom
8642d03a51 View raw markdown on comments (#1819) 2018-05-19 19:07:52 -04:00
Ryan Nystrom
178d7700b7 Remove MMMarkdown dependency (#1729)
* replace old markdown callsites

* unit tests working

* remove unused parsing

* final removal of old parsing, build and tests succeed

* remove dependency

* capture readme ref branch
2018-04-14 23:12:03 -04:00
Joan Disho
e87df7e3c1 make IssueCommentSectionController conform to MarkdownStyledTextViewDelegate (#1718) 2018-04-10 09:58:04 -04:00
Joan Disho
641d7e6cc3 refactor the code 2018-04-10 11:42:52 +02:00
Joan Disho
96be2d1ad8 remove "import MessageViewController" from IssueCommentSectionController 2018-04-10 11:42:52 +02:00
Joan Disho
eab6797d47 quote a substring of the comment and mention the user in messageView on reply. 2018-04-10 11:42:52 +02:00
Joan Disho
b0fefae3ab focus on the comment on reply action 2018-04-10 11:42:52 +02:00
Joan Disho
2a7664968b make messageView firstResponder onReply action 2018-04-10 11:42:52 +02:00
Joan Disho
e53d954b7b add Reply action on didTapMore(cell: sender:) 2018-04-10 11:41:53 +02:00
Ryan Nystrom
62e2763a85 Refactor markdown parsing to use text lib (#1674)
* milestones refactored with styled text

* reference refactored

* refactor commit references

* fix styled text bug

* request event refactored

* refactor titles

* warm caches for bg-gen models

* delete old text cell

* move shortlinks into MMMarkdown

* almost there

* build green

* running and trimming whitespaces

* styled text working

* fix tests

* tests passing
2018-03-31 10:12:51 -04:00
Luciano Almeida
84d39ddab8 Fixing overlap content after react menu on comment. (#1577)
* Fixing overlap content after react menu.

* more elegant solution for the fix. :))
2018-03-21 21:38:38 -04:00
Ryan Nystrom
66dc61ace0 Refactor labeled events to use StyledText (#1659)
* refactor tap handling on attributed views

* styled cell interaction working

* share menu code

* label events finished
2018-03-18 14:55:57 -04:00
Ryan Nystrom
45335eb4a0 [WIP] Refactor networking to shared lib (#1602)
* [WIP] Refactor networking to shared lib

* notification models as codable and tests

* default request params

* break out into files

* fix tests

* check notification values

* add milestones

* add milestone response

* repo notifications

* refactor v3 response

* refactor to support passing response to response initializer

* add release fetch and model

* add examples from githawk

* notifications working

* almost all notifications requests migrated

* finish notification migration, add graphql request/response

* replace issue requests

* replace milestones request

* fetch assignees migrated

* readme fetch migrated

* migrate badge request

* delete unused request from client

* remove paging

* nearly done w/ migration

* local build green

* refactor gql fetches, replace mutations

* build green, slim down client

* strip session manager from client

* everything working
2018-03-04 21:35:36 -05:00
Ryan Nystrom
db21d4debe disable uncollapse when menu visible (#1413) 2018-01-14 12:12:03 -05:00
Ryan Nystrom
878a9d98b7 refactor collapse cells (#1406) 2018-01-13 17:21:55 -05:00
Ryan Nystrom
65959c7c14 Card inset design completely overhauled (#1396)
* card inset design completely overhauled

* respond to safe area changes
2018-01-13 12:37:00 -05:00
Ryan Nystrom
6b7c9f1bfa properly present VC from reference events (#1363) 2018-01-05 22:29:49 -05:00
Ryan Nystrom
755be5af2e Refactor autocomplete control and wire it up in comment editing (#1326)
* refactor text view delegate to be 1:many

* move autocomplete stuff to its own controller + API

* refactor VC to work with new autocomplete controller

* update pods with new message stuff

* reorganize and fixup files

* app builds

* better names

* thread autocomplete to comment SC

* autocomplete working in edit

* finish refactor
2018-01-02 09:14:28 -05:00
Ryan Nystrom
167f1b80fe Redesign issue comments with a card (#1320)
* Redesign issue comments with a card

* fix more button, content view layout

* finish polishing card layout
2017-12-31 12:37:19 -05:00
Bas Broek
377161aed0 Fix Int format crash + unify String localization (#1273)
* Use %d over %zi to prevent a possible crash

* Clean up / unify localization behavior

Before, we were doing double localization (Feeding a `LocalizedString` into a `.localizedStringWithFormat`).
2017-12-17 16:10:57 -05:00
Ryan Nystrom
20e1b6f6df Design polish (#1275)
* new tab icon design

* more spacing for action cells

* action cells larger, background colors

* fix assignee/reviewer spacing

* label colors, refine header spacing

* bump up label radius

* add close and lock options

* wire up close mutation

* wire up lock

* remove dead code
2017-12-17 16:09:26 -05:00
Ryan Nystrom
0fc619e420 Tapping checkboxes updates the UI and edits on the server (#1272)
* edit checkboxes working

* always can update when editing

* edit comment sent to client
2017-12-17 09:19:19 -05:00
Bas Broek
7f04139794 Disable animations when reduce motion enabled (#1167) 2017-12-10 18:15:44 -05:00
Bas Broek
872da1f458 [Cleanup] Remove nil-default completion parameters (#1131)
* Remove nil-default completion parameters

* Remove redundant character trimming
2017-12-02 18:48:32 -05:00
Ryan Nystrom
3de0859b2e open fullscreen images when tapping web view (#1106) 2017-11-28 20:20:48 -05:00
Ryan Nystrom
086af29cbb allow double-tap like when reaction not visible (#1009) 2017-11-20 17:22:19 -05:00
Joe Rocca
76914651ad Adds double tap comment to 👍 (#809)
* Added double tap on comment to react with thumbs up

* Changed func name for consistency

* added DoubleTappableCell to project file

* added no-op for PR review comments

* added pr review comment flag check instead of vc
2017-11-19 16:47:34 -05:00
Ryan Nystrom
c0f7104554 Append a tail model for border on last PR comment in a thread (#869) 2017-11-06 09:02:23 -05:00
Ryan Nystrom
4733859946 Open PR comments in another VC (#828)
* WIP PR comments

* thread comment count to PR review model

* PR review comments in another VC
2017-11-04 21:46:21 -04:00
Rizwan Mohamed Ibrahim
6dd92b055f Changes on issue comment alert title and actions (#827)
* [ADD] Comment alert title as "User's comment" and changes "Edit comment" to "Edit"

* [ADD] localized alert title

* Update IssueCommentSectionController.swift

* [ADD] Generic error when no login tapping more button

* [ADD] Generic error when no login tapping profile
2017-11-04 11:00:28 -04:00
Hesham Salman
f213bac924 Thin SwiftLint ruleset (#704)
* Thin SwiftLint ruleset

* Disabled trailing_whitespace rule
2017-10-23 16:58:09 -04:00
Ryan Nystrom
357e7e1bde Finish wiring up edit comments (#594) 2017-10-18 12:14:17 -04:00
Ryan Nystrom
ca5ba59908 do safe area insetting on UICollectionView the "right" way, fixes #581 2017-10-16 09:41:56 -04:00
James Sherlock
edf76f42f3 Add ability to delete comments (#530)
* Add alert action to delete comments, add viewerCanDelete variable

[skip ci]

* Add delete confirmation message

* Enable networking for deleting comments

* Updates as per @BasThomas feedback

* Update comment, oops
2017-10-14 14:41:45 -04:00
Ryan Nystrom
4adfad92c8 flip didRemove guard 2017-10-13 18:38:58 -04:00
Ryan Nystrom
7d17e59609 prevent over reacting (lol), fixes #492 #510 2017-10-13 18:34:55 -04:00
Ryan Nystrom
cfd93c14a0 resuable cancel action, text view config, MD actions menu and control, init edit comments 2017-10-08 20:53:40 +01:00
Ryan Nystrom
1c38ff4d5c swift 4 migration 2017-10-07 14:46:10 +01:00