Commit Graph

47 Commits

Author SHA1 Message Date
Vinh 43b6a2cdcd [CORL-149] Persisted Queries (#2445)
* feat: enable persisted queries on the client

* fix: use `id` inside websocket message

* feat: initial server support for PQ

* feat: deeper server support

* feat: abstracted persisted query replacing logic
2019-08-15 21:03:32 +00:00
Vinh 413f3e2f1e [CORL-166] Live Updates on Mod Queues (#2368)
* feat: client implementation of subscriptions and modqueue live counts

* fix: unit tests

* feat: live status update in moderation

* feat: live update of new comments in moderation

* chore: View New instead of View More

* feat: fade in transition for new comments

* chore: turn websocket proxy back on

* feat: initial server impl

* fix: make it work :-)

* fix: add box shadow

* chore: make test subscriptions only support 1 top level field following the spec

* fix: linting

* feat: support clientID

* fix: linting

* feat: support commentStatusUpdated subscription

* fix: disabled styles for approve and reject button

* feat: show moderated by system and update flags

* feat: support metrics recording on websocket connections

* fix: handle when same comment enters but leaves again
2019-06-21 17:01:07 +00:00
Wyatt Johnson d4b8e5ef70 [CORL-281] Metrics (#2298)
* feat: iunitial metrics implementation

* fix: graphql endpoint was throwing errors.

* feat: add metrics env variables to readme
2019-05-10 00:26:24 +02:00
Wyatt Johnson df57b4eb17 [next] Email (#2261)
* feat: suspending, banning, now propogation

* feat: added email rendering + localization support

* fix: fix related to lib

* refactor: moved juicer to queue task

* refactor: cleanup of job processor

* refactor: improved error messaging around failed email

* feat: initial forgot passwor impl

* fix: fixed rebase errors

* feat: send back Content-Language header with requests

* feat: added ban email

* feat: implemented forgotten password API

* fix: linting

* feat: support more emails

* fix: promise patches

* feat: initial confirm email API

* feat: added rate limiting

* feat: added URL support

* feat: added email docs

* fix: updated docs

* chore: documentation review

* fix: fixed build bug

* feat: implement forgot password in auth popup

* test: add tests + fixes

* chore: rename StatelessComponent to FunctionComponent

* fix: types and test fixes

* chore: upgrade deps

* fix: THANK YOU TESTS FOR SAVING MY A**

* chore: reorder imports

* chore: remove obsolete !

* feat: implement accounts bundle

* refactor: review suggestion

* fix: rebase upgrade error

* fix: rebase bug

* feat: reset password link support

* test: add tests for account password reset page

* fix: remove redirect uri

* fix: revert local state changes
2019-05-09 22:54:56 +02:00
Kiwi ea6f42c256 [CORL-305] Speed up build process and upgrade dependencies (#2304)
* feat: speed up build process, upgrade majority of dependencies

* feat: allow specifying max cores

* chore: add some comments
2019-05-07 20:22:19 +02:00
Kiwi 60c8f9a0d5 [next] Tests for new story filter and combo box (#2288)
* test: add tests for changes in stories page

* test: search box and moderate specific story

* fix: remaining snapshot

* fix: test
2019-04-27 01:04:16 +02:00
Wyatt Johnson a91de05af9 fix: modified uri parsing for mongodb (#2282) 2019-04-25 15:16:36 +00:00
Wyatt Johnson e0627925fb [next] Heroku Support (#2240)
* feat: added env-rewrite support

* feat: added heroku support via app.json

* fix: fixed readme linting error

* fix: fixed error in app.json

* fix: improved environment variables exposed by app.json
2019-03-22 20:29:02 +00:00
Kiwi 9eb5afbb2b [CORL-159, CORL-160] Stream Config Tab (#2219)
* feat: Implement stream configuration tab

* feat: split profile & configure into separate bundles

* chore: better role logic

* fix+chore: add test cases, implement expectAndFail, refactor tests

* chore: add some comments

* chore: Update src/core/client/framework/lib/form/helpers.tsx

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

* feat: support new graphql mutations/schema

* fix: ci fixes

* fix: improvement to revision loading

* fix: updated some tests

* fix: adapt client to changes

* fix: remove obsolote isClosed in UpdateStory

* ci: increase no_output_timeout for build
2019-03-18 22:07:52 +01:00
Wyatt Johnson 9fa5900acc [next] Error and Logging Improvements (#2152)
* feat: added locale support for Tenant

* feat: added secret scrubbing to logs

* chore: cleanup logger

* chore: logger improvements

* feat: re-introduce scoped pretty logger

* feat: added initial error support

* refactor: replace trace-error.TraceError with talk.InternalError

* fix: fixed error logging

* refactor: replaced Error with VError

* fix: repaired issue with error management on api

* fix: patched bug with not found handler

* feat: added translations

* feat: added location path to invalid entries

* refactor: refactored error handling on graph

* fix: moved indexing operations to master node

* refactor: added throw for when the message isn't found in testing

* fix: removed duplicate log

* fix: fixed naming on environment variable
2019-02-06 23:42:17 +00:00
Kiwi 1fc49f8e50 [next] Moderate (#2118)
* fix: load .env before building / watching

* feat: Implement AppBar, Brand, and SubBar

* feat: add card ui component

* feat: add modqueue components

* feat: implement modqueue

* feat: add translations

* test: add unit tests

* feat: single comment view

* test: feature / integration tests for modqueue

* test: fix remaining tests

* feature: support TextMatchOptions

* fix: remove body count marker

* fix: remove accidently added package

* feat: testHelper toJSON

* chore: cleanup + comments

* chore: better types

* test: fix test

* chore: refactor decision history test

* chore: tiny fix

* fix: adjust to recent server changes

* fix: marking suspect and banned words

* feat: added moderation queue edge to accept/reject comment payloads

- Simplified moderationQueue returns
- Simplified resolvers

* feat: update counts

* feat: added id's to moderation queue and settings

* fix+test: test count changes, apply fix

* chore: adapt to server change, and remove custom mutation handlers

* fix: use common utils

* fix: purify fix, babel fix

* fix: workaround css treeshake issue and upgrade css plugins

* fix: fixed snapshot

* fix: support empty word lists

* feat: separate client config
2018-12-18 18:00:39 +00:00
Kiwi 90e67ca479 [next] improve tree shaking + update webpack & babel (#2132)
* feat: improve tree shaking + update webpack & babel

* fix: tests
2018-12-17 16:56:48 +00:00
Kiwi 097294909b [next] Embed: Defer login/logout until ready (#2123)
* feat: Embed defer login/-out until ready

* fix: make remove work with lazy render

* fix: typo

* fix: another typo

* fix: test

* chore: replace query-string for querystringify

* fix: types

* chore: small refactor

* feat: added webpack analzyer

* chore: rename compile -> generate

* fix: fix scripts and improve bundle size

* fix: lodash webpack plugin
2018-12-15 00:07:09 +00:00
Wyatt Johnson 6f538d3235 [next] DOM Purification (#2115)
* feat: added purify + linkify + better link detection

* fix: linting + tests

* chore: refactor RequireProperty Type
2018-12-13 00:14:29 +01:00
Wyatt Johnson 8435ccaee6 Merge branch 'next' into next-auth 2018-11-01 00:00:54 +00: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 93b91a0573 feat: added google support 2018-10-29 17:36:15 -06:00
Wyatt Johnson 0bb64f1d97 feat: added OIDC discovery 2018-10-23 15:27:23 -06: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 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
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
Chi Vinh Le 9463fa8ec2 fix: apply suggestions 2018-10-03 00:52:55 +02:00
Belén Curcio 929fa8ca31 Adding found 2018-09-27 10:37:09 -03: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
Wyatt Johnson b916914faa [next] SSO Refactor (#1912)
* feat: support dual sso/jwt auth

* feat: move verifier logic to seperate strategy

* fix: adjusted tests and removed aud claim

* fix: cleanup
2018-09-26 16:26:44 +00:00
Wyatt Johnson 1702040537 feat: added parent/parents edges 2018-09-22 00:26:09 -06: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
Chi Vinh Le a36d944e4a Implement edit 2018-09-11 00:15:27 +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
Chi Vinh Le d1d993d0b7 Updated fluent 2018-08-27 14:33:31 +02:00
Wyatt Johnson 4606626ec4 [next] Settings/Tenant (#1758)
* 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

* fix: support tenant cache for oidc strategy

* fix: replace some constructor initializers with property initializers

* fix: audit

* [next] Comments and Moderation (#1759)

* 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: fixed compile

* fix: import ordering

* fix: merge issue causing build to fail
2018-08-02 20:09:55 +00:00
Kiwi 6d7056d831 [next] Add support for embed (#1762)
* Move talk-server/config to talk-common/config

* Refactor build into /src/core/build and use common config

* Add embed webpack config

* Start implementing embed

* Implement embed

* Add pym types

* Add event emitter to Talk Context

* Add MatchMedia test for passing values from the context

* Add support for click far away

* Integrate pym click events to registerClickFarAway

* Add tests

* Resolve merge issues

* Apply PR review
2018-08-02 15:29:18 +00:00
Wyatt Johnson 1923e929ee Merge branch 'next' into next-passport 2018-07-25 22:08:17 +00:00
Belén Curcio e0a8f2e067 [next] ClickOutside Component (#1757)
* working on the tests

Merge branch 'next' of github.com:coralproject/talk into clickoutside

* 'next' of github.com:coralproject/talk: (36 commits)
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  Implement new button api
  Read env in watchers.ts
  updated tests
  Update ToggleShow.spec.tsx
  ToggleShow Component
  Fix CI thanks to wyatt
  ...

docz added

Added simulant

Added simulant

unnused

Merge branch 'clickoutside' of github.com:coralproject/talk into clickoutside

* 'clickoutside' of github.com:coralproject/talk: (40 commits)
  Added simulant
  Added simulant
  docz added
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  Implement new button api
  Read env in watchers.ts
  working on the tests
  ...

unnused

Merge branch 'clickoutside' of github.com:coralproject/talk into clickoutside

* 'clickoutside' of github.com:coralproject/talk: (42 commits)
  unnused
  working on the tests
  Added simulant
  Added simulant
  docz added
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  Implement new button api
  ...

Merge branch 'clickoutside' of github.com:coralproject/talk into clickoutside

* 'clickoutside' of github.com:coralproject/talk: (42 commits)
  unnused
  working on the tests
  Added simulant
  Added simulant
  docz added
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  Implement new button api
  ...

Merge branch 'clickoutside' of github.com:coralproject/talk into clickoutside

* 'clickoutside' of github.com:coralproject/talk: (43 commits)
  working on the tests
  unnused
  working on the tests
  Added simulant
  Added simulant
  docz added
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  ...

* Implement passing tests

* Use html as snapshot

* Refactor and simplify test

* Remove unused import

* ts

* simulant moved to devdeps
2018-07-25 20:33:29 +00:00
Wyatt Johnson 01dab3213a Merge branch 'next' into next-passport 2018-07-16 11:49:31 -06:00
Chi Vinh Le 6467348296 Merge branch 'next' into timestamp 2018-07-12 16:29:23 -03:00
Wyatt Johnson c90f6cbe53 Merge branch 'next' into next-passport 2018-07-11 15:42:52 -06:00
Belén Curcio 805492931b Implement Timestamp
Merge branch 'next' into timestamp

Fix test and translations

Merge branch 'timestamp' of github.com:coralproject/talk into timestamp

* 'timestamp' of github.com:coralproject/talk:
  Fix test and translations
  Implement Timestamp
2018-07-10 13:34:27 -03:00
Chi Vinh Le 84dd673c2e Add integration tests! 2018-07-06 21:19:49 -03:00
Wyatt Johnson 1236946312 initial oidc support 2018-06-29 16:11:32 -06:00
Kiwi 65c8da0f34 Merge client into next (#1709)
* Merge client
* Add linting script
* Rename serve to start:development
* Move error harmonization and handling to network layer
* Show Comment Stream
* Added initial test
2018-06-27 22:06:30 +00:00
Wyatt Johnson bcf5658c36 fix: type adjustments 2018-06-27 11:39:26 -06:00
Wyatt Johnson b51e1c9867 fix: added support for strictNullChecks 2018-06-26 14:46:58 -06:00
Wyatt Johnson fa57c72842 linting + initial mutation
- added tslint
- mutation support
2018-06-25 14:32:01 -06:00
Wyatt Johnson 6f80a2458c linting 2018-06-21 10:44:36 -06:00
Wyatt Johnson 02e1236792 initial commit 2018-06-16 17:20:51 -06:00