Commit Graph

134 Commits

Author SHA1 Message Date
Wyatt Johnson 21e1a5cbef [next] Comment Moderation Actions (#2068)
* fix: renamed snake case to camel case

* fix: changed case for mutators

* fix: renamed all snake case to camel case for db

* feat: added support for comment revisions + split comment actions

* fix: updated tests

* feat: implemented CommentModerationAction

* fix: fixed case issues

* feat: enabled WeakMap for wordList processsing

* chore: npm audit
2018-11-21 17:42:47 +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 7aa9a6b4f7 feat: upgraded apollo-server-express, logging extension (#2058) 2018-11-01 22:05:04 +00:00
Wyatt Johnson f0753214e1 review: upgraded merged upstream @types/mongodb 2018-10-31 18:00:30 -06:00
Wyatt Johnson 93b91a0573 feat: added google support 2018-10-29 17:36:15 -06:00
Wyatt Johnson c47032f257 feat: support facebook auth 2018-10-29 14:31:47 -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
Chi Vinh Le a3aca825e3 feat: upgrade react and enzyme 2018-10-19 20:19:27 +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
Wyatt Johnson 9f37c3b3da Merge branch 'next' into next-static-uri 2018-10-15 22:47:04 +00:00
Wyatt Johnson e9c80fc02a [next] Relay GraphQL Batching (#1965)
* feat: added graphqlBatch

* refactor: cleanup of json serial

* refactor: cleanup of json serilization

* feat: use react network layer

* fix: adjusted broken user

* fix: temporarily disable cache for profile query

* test: temporarily use precompiled modules

* fix: bug when updating comment count on an asset

* fix: compile modules to commonjs for jest

* test: add react-relay-network-layer to transform whitelist

* fix: use react-relay-network-layer/es

* types: add react-relay-network-modern typescript types

* feat: integrate custom error middleware

* review: add todo
2018-10-15 22:46:21 +00:00
Wyatt Johnson 3633fd7afb feat: added static uri support 2018-10-15 14:56:43 -06:00
Kiwi 9347815276 fix: no precommit test (#1993) 2018-10-15 16:01:49 +00:00
Kiwi c2ffb30431 [next] i18n short number support (#1992)
* feat: Implement i18n short number

* test: fix failing tests
2018-10-12 23:16:13 +00:00
Wyatt Johnson 3636e47b16 feat: added husky + lint-staged (#1966) 2018-10-12 22:14:36 +00:00
Wyatt Johnson cda72ba249 [next] Docker + Revision Metadata (#1991)
* feat: added version metadata, release to Docker

* fix: fixed mistake with export

* fix: adjusted circle cache beheviour

* fix: removed node_modules from workspace

* fix: added version prefix to cache keys

* review: patched invalid job name

* fix: hardcode cache version prefix :(

* fix: improved cache keys
2018-10-12 19:13:55 +00:00
Wyatt Johnson 8184c3932e [next] Install (#1957)
* Wip

* Adding Wizard and initial step <3

* Wip

* Adding more steps to the Install Wizard

* Mantaining state across steps

* Adding Steps

* Step Component

* wip

* feat: improved logging

* feat: added tenant install route

* Progress

* Refactor

* Adding rest install mutation

* Wip

* Done

* Addding snapshots

* URL validators

* Adding validation for url, and final step

* Header component and main variants

* fix: resolved router

* fix: corrected spec for prop

* fix: updated test snapshot

* Translations

* Translations

* Adding extra validation

* prefixing events with On - onSaveData

* prefixing events with On - onSaveData

* Adding translations, and colors from the palette

* Centering steps

* Ready

* feat: added production redirects

* fix: fixes during production

* fix: removed dead code

* Placeholder translations

* removing submit from cancel

* Adding a description for the URL field

* typo

* Refactor and renaming

* Using white as var

* Refactor and renaming

* feat: use new palette colors

* fix: extracted styles

* Adding await to avoid race condition with setState :)

* lint

* feat: added urls

* fix: wizard leaking styles

* fix: simplify icon style

* fix: adjust global body css to remove padding to allow seamless integration

* fix: types and small refactors

* fix: correctly filter wizard children

* refactor: simplify step containers

* fix: better typecheck

* test: remove obsolete snapshots

* fix: don't export FormProps
2018-10-11 22:13:02 +00:00
Wyatt Johnson 44e6d4b26a [next] GraphiQL Fixes (#1967)
* fix: fixed playground middleware

* fix: replaced express middleware with custom html based middleware
2018-10-10 16:25:26 +00:00
Chi Vinh Le bd1d677b63 Merge branch 'next' into next-respect 2018-10-04 19:15:00 +02:00
Belén Curcio 2f361d4437 Merge branch 'admin' of github.com:coralproject/talk into admin
* 'admin' of github.com:coralproject/talk: (23 commits)
  [next] SSO Refactor (#1912)
  Upgrade rte (#1906)
  review: fixes
  Simplify getLevelClassName
  Refactor indent level className
  Remove unused line
  Give last level a display name
  More comments
  More comments
  Add some comments
  More tests
  Implement local reply list for last threading level
  fix: test fixes
  fix: test patches
  fix: fixed issues with sorting
  fix: addressed cursor issue
  fix: removed dead code comment
  fix: updated comment
  feat: prime current user in user cache
  feat: added root parent edge
  ...
2018-09-26 16:33:07 -03:00
Belén Curcio 4dc46f7fee Adding Found Relay to the Admin side 2018-09-26 16:32:45 -03:00
Belén Curcio 1e8a8d306c Merge branch 'next' into admin 2018-09-26 13:15:41 -03:00
Wyatt Johnson 411f5bc302 Merge branch 'next' into next-respect 2018-09-26 10:15:37 -06:00
Belén Curcio bbf98d0b67 First iteration of admin 2018-09-25 15:09:43 -03:00
Wyatt Johnson 9326016e98 Merge branch 'next' into next-respect 2018-09-25 16:26:26 +00:00
Wyatt Johnson 192c8e63cf Merge branch 'next' into next-server-threading 2018-09-25 16:25:56 +00:00
Kiwi 04b4b7e715 Upgrade rte (#1906) 2018-09-25 16:25:42 +00:00
Wyatt Johnson 0e25c8d446 Merge branch 'next' into next-respect 2018-09-24 02:30:12 +00:00
Wyatt Johnson 1702040537 feat: added parent/parents edges 2018-09-22 00:26:09 -06:00
Wyatt Johnson 0fbd27cdcb fix: fixes for comment counting 2018-09-21 23:52:28 -06:00
Wyatt Johnson 6e8c0df9fe Merge branch 'next' into update-types-recompose 2018-09-21 22:44:05 +00:00
Kiwi 106a5d36ed [next] Embed plus (#1877)
* Implement StreamEmbed instance and rename library to coral

* Add article & articleButton.html, only show embed htmls in production

* Respect assetURL

* Add tests

* Add parseHashQuery

* Fix permalink query and integration tests

* Fix permalink URL

* Remove optionalparams from pym

* Scroll when showing permalink view

* Implement autoRender

* AutoRender immediately when render permalink

* Add test for `showPermalink` event

* Add comment
2018-09-21 22:43:28 +00:00
Wyatt Johnson 85af8d1bbf [next] Permit (#1899)
* feat: replaced custom auth extraction logic with permit

* fix: fixed tests
2018-09-21 22:06:46 +00:00
Wyatt Johnson ce1002b16c fix: updated @types/mongodb 2018-09-21 14:55:00 -06:00
Chi Vinh Le a996c5da2b Use upstream @types/recompose 2018-09-21 19:02:27 +02:00
Wyatt Johnson a14c0205aa Merge branch 'next' into next-respect 2018-09-20 23:36:24 -06:00
Wyatt Johnson be3ef78875 feat: added action counts to graph 2018-09-20 23:35:56 -06:00
Chi Vinh Le 6c75298b8c Upgrade RTE to fix a paste issue 2018-09-20 17:06:31 +02:00
Chi Vinh Le 3a1b043eb7 Merge branch 'next' into next-reply 2018-09-06 21:38:20 +02:00
Kiwi 0477d456a2 Integrate typescript-snapshots-plugin (#1847) 2018-09-05 22:50:01 +00:00
Chi Vinh Le 2bf9b5f2c1 Fix types 2018-09-06 00:07:14 +02:00
Chi Vinh Le 444c86cb3c Focus RTE when opening reply 2018-09-06 00:06:58 +02:00
Chi Vinh Le 31bc5fa913 WIP 2018-09-06 00:06:28 +02:00
Wyatt Johnson 59cf728681 [next] Tasks (#1777)
* feat: initial support for synced tenants

* fix: cleanup

* fix: logger now respects logging level

* fix: cache now ignores updates issued from itself

* feat: print subscriber count

* feat: initial moderation + validation for new comments

* fix: added Promiseable type

* feat: initial actions impl

* feat: more moderation phases

* fix: handle settings inheritence

* fix: moved settings into new file

* fix: defaults and documentation

* fix: replace merge with object spread

* feat: added integration with akismet

* fix: support tenant cache for oidc strategy

* fix: fixed compile

* fix: import ordering

* feat: added bull for queue support

* feat: support for scraping

* fix: fixes for scraper

- Implemented simple metascraper replacement (to resolve security advisory
  warning)
- Implemented simle dotize replacement (to resolve not
  working version that couldn't handle date objects)
- Plugged in asset scraping to asset creation process

* fix: handles array values

* feat: added initial scraper implementation

* feat: seperate queues but share config

* fix: simplified auth data access

* feat: moved more settings into the graph

* feat: improved mailer design

* fix: fixed issue with dotize

* fix: fixed some issues with adapter

* fix: queue cleanup

* feat: added organizationName to Tenant

* feat: email rendering

* review: support es6 imports

* fix: restore old ci step

* fix: adjusted logging messages
2018-09-04 18:47:20 +00:00
Wyatt Johnson 76d198f2a6 [next] Production Usage (#1808)
* feat: docker + compression support + headers

* fixed bug with dependancies
2018-09-04 18:36:17 +00:00
Chi Vinh Le a4002b262b Keep time! 2018-08-31 18:34:00 +02:00
Chi Vinh Le 25e8cb517b Add integration test 2018-08-31 17:15:40 +02:00
Chi Vinh Le 792ceed2ad No more patched packages! 2018-08-31 02:28:53 +02:00
Chi Vinh Le aeada424fa Use stock relay-runtime times 2018-08-31 02:15:41 +02:00
Chi Vinh Le 942ce366b8 Finish porting to relay-1.7 including types 2018-08-30 23:49:38 +02:00