Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Send post data to datahub before sending tx * Add todo * Change all subscription to use datahub subs * Change posts api to use datahub * Update link for datahub * Fix id issue in get post * Integrate sending optimistic messages * Fix cache issue with comment ids * Fixed subscription for persistent event * Fix subscription logic * Make websocket connection singleton * Update optimistic * Update all useSubsocialMutation calls * Fix type error * Refactor subscription code * Add sending status to message indicator * Add loading status * Add offset to center spinner * Improve client optimistic to datahub message order * Fix subscription logic * feat: added tmp script for data-hub-sdk install (#395) * fix: fixed dh-sdk installation in dockerfile * Refactor subscription * Change subscription method * Update type error * Update types for subscription * Fix type errro * Use optimistic data but update its id * Fix cache issue * Add reply data * Remove logs * Send create post to datahub before waiting energy * Generate CID from client side * Update datahub post fragment name * Remove unused file * Send upsert post data to datahub * Refactor subscription logic to work for all post type * Fix update flow with data hub * Remove loading state * Add edit * Improve edit message handling * Finish update post logic * Make update message feedback instant * Fix type error * Change edit message color * Change to https and send txSig to datahub * Add back wss configs * Add txSig for upsert post * Add option to use http instead of wss * Use codegen with new staging * Update types * Fix types * Wait saving file before sending tx * Update types * Improve type usage * Add create message failed handling * Allow window unload if blockchain failed * Refactor checkmark modal * Add resend failed message mutation * Fix type error * Finish resend message functionality * Change commentids data source to use datahub * Update datatype of synth call to offchain * Add new flow for sig * Revert back subsocial query mutation * Remove unused callbacks * Remove supress error config * Create better handling for tx error * Update upsert post datahub imple * Rename query * Move datahub urls to env * Add back metadata getter for posts * Move datahub services and create fallback system for it * Adjust error if datahub config is not there * Add fallback for get comment ids * Add subscribe option for fallback in getting comment ids * Update export names * Fix wrong logic in datahub mutation wrapper * Finish fallback control if datahub not exist * Make 1025 space not have join btn * Not disconnect websocket if any pending tx * Add pending transaction to request token * Fix issue with waiting energy How to replicate issue: send message and immediately go to different tab * Fix invalidation for datahub posts * Add notify update fail call * Add ci for envs * Fix issue update chat removes extensions * Update wrong import * Integrate new query for getting last message * Fix last comment query prefetched * Change query * Update post metadata query * Update unread count * Integrate unread count query * Add wrapper for datahub queries * Fix datahub logic * Increase datahub timeout because getting comment ids takes a pretty long time * Update datahub staging url * Fix issue where datahub fetcher is not used * Revalidate page after upsert post and moderate * Add revalidate path after some mutations * Add await to make revalidate chat page error caught * Add info when message is not sent * Fix 0 unread count showing * Remove jsonabc types * Remove captcha validation if no env captcha * Remove captcha envs in staging * Remove recaptcha if no sitekey * Fix invisible captcha waiting infinitely without captcha site key * Add retry connect ws * Fix refetch on window focus and subscription logic * Fix flashing of unread message in chat page after sending new message * Move datahub mutation to backend * Change mutation config envs * Add mutation token * Fix optimistic messages disappear when invalidating * Add validation to not call datahub for posts with client optimistic id * Add rate limit error management * Add secrets to datahub mutation token * Remove logs * Fix issue with sending message before logging in * Fix optimistic messages not removed when commentids invalidated * Fix type error * Update rate limit error * Disable input if rate limited * Fix wrong timeout seconds * Update rate limit error * Resolve PR comments * Fix error * Increment version * Update prod env * Update prod env * Improve datahub error desc * Finish first version of optimization of comment ids * Fix post metadata prefetch not working * Add optimistic client side message * Make ann unread count no need to update every window refocus * remove useHttp so all tx uses wss * Rename fetcher * Add refetching of first page * Update env * Add timestamp and uuid field to datahub mutation * Add protVersion * Support deterministic id for sent message status * Remove console logs and uncomment codes * Add offchain posting * Update staging url for datahub * Fix wrong ordering of new messages * Fix wrong env * Move offchain posting button * Add offchain flag * Fix offchain message * fix: tmp fix of getDeterministicId import * Fix type errors * Use proxy address if exist for optimistic data * Update datahub env * Fix optimistic id getting error * Fix issue where error happen when no data in setfirstquerydata * Remove offchain posting button * fix: fixed createSocialDataEventInput func params (#451) * Fix issue with wrong callname * Remove dh-sdk-i * turn off dh * Not call datahub query when its turned off * Fix delete optimistic data * Fix mutation when datahub is turned off * Remove edit if datahub is not enabled * Fix issue with pageParams * Change back feature based env * Remove logs * Change mutation url and mutation token env to queue * Fix issue with profile modal opening after logout and login again * Remove unused package * Remove hack script * Unify datahub flag var name * Unify error names into one object * Use single color for blockchain or optimistic messages * Revert "Change mutation url and mutation token env to queue" This reverts commit 3ed3a20. * Remove unused var * Update wording * Improve readability * Add todo for refactoring datahub query * Refactor datahub queries * Add todo * Uncomment use load more if no scroll * Remove unnecessary hook * Remove unnecessary param for scroll to message * Fix unread count * Fix issue with scroll to message * Fix unread count in notice * Remove logs * Fix get chat element logic * Fix wrong logic to get last id * Fix storage call to update last read * Fix post id not pooled correctly if requested id is optimistic but result is already persistent * Add optimistic message modal detail * Change message redirect if its already persistent --------- Co-authored-by: Max Kravchuk <[email protected]>
- Loading branch information