Commit Graph

723 Commits

Author SHA1 Message Date
Kiwi ecdb4e1307 [next] Broadcast mutation events (#2083)
* feat: Implement mutation events

* fix: correct testcase name
2018-11-20 15:44:07 +01:00
Kiwi 1a65b734d3 feat: don't use expired token (#2082) 2018-11-20 15:36:01 +01:00
Kiwi 05350d651f [next] Admin Configure (#2076)
* feat: Add RadioButton and CheckBox

* feat: configure facebook and google auth

* feat: configure sso, localAuth and displayName + some tests

* test: add integration tests for configure auth

* test: more integration tests

* feat: add oidc support

* test: add oidc integration test

* feat: generate sso key initially

* fix: import fetchQuery from correct package

* fix: admin url

* fix: set timezone to utc when testing

* refactor: improve route config

* fix: remove obsolete line

* fix: clientMutationId increment

* fix: oidc only create when enabled

* fix: copy

* test: update snapshots

* feat: fixed graphql logging extension

* Update src/locales/en-US/admin.ftl

Co-Authored-By: cvle <vinh@wikiwi.io>

* Apply suggestions from code review

Co-Authored-By: cvle <vinh@wikiwi.io>

* test: update snapshots

* fix: change Local Auth to Email Authentication

* fix: copy updates
2018-11-19 22:47:32 +00:00
Wyatt Johnson 3f949b3712 fix: fixed install route (#2064) 2018-11-06 16:28:04 +00:00
Wyatt Johnson ca12b73b55 [next] Story Mutations (#2055)
*  feat: added mutations for removing + scraping stories

- added mutation for removing stories
- added mutation for scraping stories
- renamed all delete* to remove* to avoid reserved keyword collision

* fix: linting

* feat: implemented createStory

* feat: added support for createStory

* feat: improved Story deletion

- Deletes comments on the deleted Story
- Deletes actions of comments that were deleted via new
  `root_item_id` parameter for Comment Action's
- Added logging around critical components of the remove
  process

* feat: implemented mergeStory

- Added new merge function for root actions
- Added new merge function for story comments
- Added new merge function for comment status counts
- Added new remove stories function

* fix: fixed story creation method

* fix: added action count merging

* fix: removed outdated file

* fix: removed queue that got duplicated via rebase

* fix: prevent error when action counts are empty
2018-11-02 23:18:12 +00:00
Wyatt Johnson 7aa9a6b4f7 feat: upgraded apollo-server-express, logging extension (#2058) 2018-11-01 22:05:04 +00:00
Wyatt Johnson b3cfe32631 [next] Story Improvements (#2054)
* feat: improved logs

* feat: improved scraper

- added scraper debug graph call

* feat: improved story closing

* fix: fixed tests
2018-11-01 21:34:48 +01:00
Chi Vinh Le 625ef9cbee refactor: deduplicate embed utils 2018-11-01 20:28:09 +01:00
Wyatt Johnson c81d612c70 feat: moved some useful tools to common 2018-11-01 18:15:42 +01:00
Wyatt Johnson 8435ccaee6 Merge branch 'next' into next-auth 2018-11-01 00:00:54 +00:00
Wyatt Johnson f0753214e1 review: upgraded merged upstream @types/mongodb 2018-10-31 18:00:30 -06:00
Wyatt Johnson f39da1f76b review: fixed function name 2018-10-31 17:57:21 -06:00
Kiwi bc5db7b599 [next] Admin auth + design (#2056)
* feat: extract jwt information

* feat: login status dependent auto redirect

* feat: Sign Out button

* feat: add a 404 page

* feat: improve loading state and use auth token info

* feat: redirect to previous destination

* feat: implement new design

* fix: change asset to story

* feat: add translations

* feat: more compact design

* test: add unit tests

* chore: refactor NavigationLink

* test: add integration tests

* chore: refactor replaceHistoryLocation

* fix: typo

* fix: property name typo
2018-10-31 23:11:32 +00:00
Wyatt Johnson 092e707785 Merge branch 'next' into next-auth 2018-10-29 17:39:06 -06:00
Wyatt Johnson 93b91a0573 feat: added google support 2018-10-29 17:36:15 -06:00
Wyatt Johnson 1dc400ba58 [next] Rename Asset to Story (#2044)
* feat: rename asset -> story in server

* feat: renamed asset -> story for client code and tests

* feat: renamed article -> story
2018-10-29 22:49:35 +00:00
Wyatt Johnson 58e51b299d feat: created oauth2 abstract class 2018-10-29 15:13:10 -06:00
Wyatt Johnson c47032f257 feat: support facebook auth 2018-10-29 14:31:47 -06:00
Wyatt Johnson 2571f048ad feat: support development url's 2018-10-29 14:31:35 -06:00
Wyatt Johnson 6fc2eabc88 Merge branch 'next' into next-auth 2018-10-26 18:17:46 +00:00
Wyatt Johnson 33ecbaecda fix: linting 2018-10-26 12:17:24 -06:00
Kiwi 38fba52839 [next] Show reply information (#2020)
* feat: Implement replyTo

* feat: use full size buttons on small screens

* feat: show full size buttons in edit form on small screens
2018-10-26 17:56:35 +00:00
Wyatt Johnson 3c613754f0 feat: added allowRegistration option 2018-10-25 12:57:20 -06:00
Wyatt Johnson d1e6d297f3 fix: fixed linting 2018-10-25 12:03:28 -06:00
Wyatt Johnson 6dab5836c3 review: adapted graph responses for OIDC mutations 2018-10-25 11:51:28 -06:00
Wyatt Johnson ffd0f90965 fix: documentation + moved discover into query 2018-10-25 11:29:10 -06:00
Wyatt Johnson eadf7bde43 feat: added memoization to the regexp generation 2018-10-25 10:55:22 -06:00
Wyatt Johnson e7131e1567 fix: adjusted to include the openID 2018-10-25 10:31:43 -06:00
Wyatt Johnson 977161db0a fix: linting 2018-10-25 08:58:58 -06:00
Wyatt Johnson 45cbac7972 feat: added OIDC management mutations 2018-10-24 16:54:07 -06:00
Wyatt Johnson 0bb64f1d97 feat: added OIDC discovery 2018-10-23 15:27:23 -06:00
Wyatt Johnson 3b6f3c9ea8 fix: rename wordlist to wordList 2018-10-22 15:52:17 -06:00
Wyatt Johnson fa72d5deda feat: support new auth methods for Tenants
- New Time scalar type is implemented on the Server
- Single Sign-On keys can now be generated
- Single Sign-On keys can be regenerated
- Single Sign-On keys now store the date they were generated on.
- Initial implementation of `AuthenticationTargetFilter`'s
2018-10-19 16:05:58 -06:00
Kiwi cd2ccf8792 Merge branch 'next' into next-ui-select 2018-10-19 20:42:56 +02:00
Chi Vinh Le d3f6762458 test: adapt snapshot 2018-10-19 20:33:35 +02:00
Kiwi f5324f65bb Merge branch 'next' into next-ui-select 2018-10-19 20:22:53 +02:00
Chi Vinh Le 544c21440b fix: select not propagating value in ff 2018-10-19 20:20:38 +02:00
Chi Vinh Le a3aca825e3 feat: upgrade react and enzyme 2018-10-19 20:19:27 +02:00
Wyatt Johnson 917fffc292 Merge branch 'next' into next-inReplyTo 2018-10-19 17:54:57 +00:00
Kiwi 2e6237b9d9 [next] Implement Comment History Pagination (#2008)
* refactor: profile

* feat: add pagination to comment history

* feat: add getMeSourceID helper

* feat: update profile in CreateCommentMutation

* fix: clear query response cache on mutation

* test: add integration tests for profile

* test: add unit tests
2018-10-19 17:54:40 +00:00
Chi Vinh Le 1f0cba5657 fix: use correct value 2018-10-19 19:43:46 +02:00
Kiwi bc4d746291 fix: use asset url (#2005) 2018-10-19 17:32:12 +00:00
Wyatt Johnson ecc4bdc4bb Merge branch 'next' into next-ui-select 2018-10-19 17:07:04 +00:00
Kiwi df29c087df Merge branch 'next' into next-inReplyTo 2018-10-19 19:06:54 +02:00
Wyatt Johnson 9608198d86 [next] Content Security Policy (#1972)
* feat: initial csp support

* fix: strip non-frame directives

* review: added tests, fixed some edge cases
2018-10-19 17:06:40 +00:00
Chi Vinh Le 1176080aee feat: Implement InReplyTo 2018-10-19 17:31:21 +02:00
Kiwi 4e0d578280 Merge branch 'next' into next-ui-select 2018-10-19 00:22:43 +02:00
Chi Vinh Le ea5d907ff5 fix: remove 80% max-width 2018-10-17 17:26:30 +02:00
Chi Vinh Le a8d69a0c5d feat: add some padding to default demo site 2018-10-17 17:26:31 +02:00
Chi Vinh Le b74e8f3390 fix: only break words when necessary 2018-10-17 17:09:53 +02:00