Commit Graph

23 Commits

Author SHA1 Message Date
Ryan Nystrom
b489e8db97 Local push notifications (#2145)
* add fmdb

* add local notification cache mechanism

* rewiring to update local db when fetching notifications

* local pushes working

* building for xcode 10
2018-09-22 14:40:35 -04:00
Ryan Nystrom
751d4bc4e3 Move session management to local pod and add app group (#1636)
* move session management to local pod and add app group

* copy paste fail from SO
2018-03-11 16:42:15 -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
429df47701 Fetch issue/PR status and comment count for notifications (#1353)
* add state to notification view model

* hack to get it working

* cleanup

* comment count

* cleanup ui
2018-01-05 13:24:42 -05:00
Hesham Salman
1e2e0c1698 Chore/bookmark rewrite (#865)
* Unified store behavior, new bookmark model

- Added a `Store` protocol to the project with default implementations
  that should be sufficient for most models. (#855)
- Switched images in the notification type category to #imageLiterals,
  so we can avoid the optionality of the image.

* Implemented BookMark ViewModel

* Created Bookmark Collection Cell

* Created Bookmark View Controller

Done:
  - Displays empty state
  - Displays bookmarks
  - Allows for adding of new bookmarks
  - Navigating to bookmarks

In flight:
  - Clear All

TODO:
  - Search
  - Cleanup old files & remove SwipeCell hacks

* Unified search and clear all behavior

The search bar and clear all buttons between the search and bookmarks
page had different styles and behavior. This PR:
  - Makes a generic clear-all header
  - Gives one to each VC
  - Makes them behave the same to the user re: visibility etc

* Re-implemented filter

* Deleted old files

* Attributed String Sizing

* Removed bookmark store tests

* Reloading bookmarks & namespacing

Can now reload bookmarks through the listener pattern (#773, #783).
Bookmark store is now correctly namespaced again.
2017-11-06 09:03:29 -05:00
Ryan Nystrom
f0efae3317 Inject bookmarks, cleanup (#780) 2017-10-27 11:35:19 -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
5bae4ba89d [WIP] Add FlatCache lib and use for Notifications (#632)
* init FlatCache lib

* tests for all other cases

* install flatcache to freeitme project, move VM creation into client

* refactor and split up inbox design

* fixup flatcache pod
2017-10-22 00:08:42 -04:00
Ryan Nystrom
5ecfc19fee replace status bar calls with toast 2017-10-12 21:34:51 -04:00
Ryan Nystrom
774f0fca1b remove JDStatusbar 2017-10-12 21:32:04 -04:00
Ryan Nystrom
27c659400d refactor networking to use indicator when using gql 2017-09-17 20:45:44 -04:00
Ryan Nystrom
7423ab1e8e dont logout on PAT error, fixes #290 2017-09-05 21:19:59 -04:00
Ryan Nystrom
85c01a7a8c only revoke on 401 2017-08-08 16:16:57 -04:00
Ryan Nystrom
f98e60bffd web auth flow 2017-07-08 19:41:58 -04:00
Ryan Nystrom
7e9274eed1 remove paging once at end 2017-07-05 23:09:25 -04:00
Ryan Nystrom
0291f1c348 mark all wired up, fixes #12 2017-06-29 22:39:12 -07:00
Ryan Nystrom
ae51280cb8 re-arrange account switch order of ops 2017-06-25 21:48:50 -04:00
Ryan Nystrom
9ea84dd607 bearer auth for gql 2017-06-02 12:32:38 -04:00
Ryan Nystrom
3711cad9e1 add cocoamd as its own lib (not submodule) 2017-06-02 12:23:07 -04:00
Ryan Nystrom
831ee47403 error messages 2017-05-17 21:42:06 -04:00
Ryan Nystrom
a4cfd20c6e refactor to support multiple accounts 2017-05-17 10:33:45 -04:00
Ryan Nystrom
0365fdbf1f refactor client to take in an auth 2017-05-16 22:43:43 -04:00
Ryan Nystrom
ed91d506ce refactor networking to be scoped 2017-05-16 21:17:48 -04:00