Skip to content

Commit

Permalink
Merge branch 'atlas-master' into gleev/5.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lezek123 committed Dec 23, 2024
2 parents edb920e + f6a67ae commit 0d52270
Show file tree
Hide file tree
Showing 55 changed files with 1,494 additions and 240 deletions.
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,32 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.6.0] - 2024-12-23

**IMPORTANT:** Depends on Orion release `4.2.0`.

### Added

- Video tipping functionality (https://github.com/Joystream/atlas/issues/6291)

### Fixed

- Improved error handling for optimistic transactions:
- Added hadling for `ExtrinsicFailed` errors
- Added adequate cleanup of cached optimistic state on error
- Fixed optimistic actions to be able to handle situations when there are multiple comments in `UNCONFIRMED` state
- Fixed a bug with invalid condition inside `transactions.manager.tsx` causing `onTxSync` to errously timeout in some cases.

## [5.5.1] - 2024-11-05

### Changed

- Re-enabled YPP (`features.ypp.suspended: false`)
- Added a message in YPP dashboard for creators potentially affected by [opted-out issue](https://github.com/Joystream/youtube-synch/issues/337)
- Added a message in YPP dashboard for creators potentially affected by [opted-out issue](https://github.com/Joystream/youtube-synch/issues/337)

## [5.5.0] - 2024-11-07

**IMPORTANT:** Depends on Orion release `4.1.0`
**IMPORTANT:** Depends on Orion release `4.1.0`.

### Changed

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"description": "UI for consuming Joystream - a user governed video platform",
"version": "5.5.1",
"version": "5.6.0",
"license": "GPL-3.0",
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@joystream/atlas",
"description": "UI for consuming Joystream - a user governed video platform",
"version": "5.5.1",
"version": "5.6.0",
"license": "GPL-3.0",
"scripts": {
"start": "vite",
Expand Down
4 changes: 2 additions & 2 deletions packages/atlas/src/.env
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ VITE_PRODUCTION_YPP_FAUCET_URL=https://18.184.136.237.nip.io/membership
# Development env URLs - this is the default configuration if VITE_ENV != production
VITE_DEVELOPMENT_ORION_AUTH_URL=https://atlas-dev.joystream.org/api/v1
VITE_DEVELOPMENT_ORION_URL=https://atlas-dev.joystream.org/orion-api/graphql
VITE_DEVELOPMENT_QUERY_NODE_SUBSCRIPTION_URL=wss://atlas-dev.joystream.org/orion-v2/graphql
VITE_DEVELOPMENT_QUERY_NODE_SUBSCRIPTION_URL=wss://atlas-dev.joystream.org/orion-api/graphql
VITE_DEVELOPMENT_NODE_URL=wss://atlas-dev.joystream.org/ws-rpc
VITE_DEVELOPMENT_FAUCET_URL=https://atlas-dev.joystream.org/member-faucet/register
VITE_DEVELOPMENT_YPP_FAUCET_URL=https://50.19.175.219.nip.io/memberships
Expand All @@ -59,7 +59,7 @@ VITE_NEXT_YPP_FAUCET_URL=wss://3.73.121.180.nip.io/ws-rpc
# Local development env URLs
VITE_LOCAL_ORION_AUTH_URL=http://localhost:4074/api/v1
VITE_LOCAL_ORION_URL=http://localhost:4350/graphql
VITE_LOCAL_QUERY_NODE_SUBSCRIPTION_URL=ws://localhost:8081/graphql
VITE_LOCAL_QUERY_NODE_SUBSCRIPTION_URL=ws://localhost:4350/graphql
VITE_LOCAL_NODE_URL=ws://localhost:9944/ws-rpc
VITE_LOCAL_FAUCET_URL=http://localhost:3002/register
VITE_LOCAL_YPP_FAUCET_URL=https://52.204.147.11.nip.io/membership
Expand Down
11 changes: 11 additions & 0 deletions packages/atlas/src/api/hooks/comments.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { QueryHookOptions } from '@apollo/client'
import { omit } from 'lodash-es'
import { useMemo } from 'react'

import {
Expand All @@ -13,6 +14,7 @@ import {
useGetCommentEditsQuery,
useGetCommentQuery,
useGetCommentRepliesConnectionQuery,
useGetTipTiersQuery,
useGetUserCommentsAndVideoCommentsConnectionQuery,
useGetUserCommentsReactionsQuery,
} from '@/api/queries/__generated__/comments.generated'
Expand Down Expand Up @@ -129,3 +131,12 @@ export const useCommentEdits = (
...rest,
}
}

export const useGetTipTiers = () => {
const { data, ...rest } = useGetTipTiersQuery()

return {
tipTiers: data ? omit(data.tipTiers, ['__typename']) : undefined,
...rest,
}
}
1 change: 1 addition & 0 deletions packages/atlas/src/api/hooks/useCommentSectionComments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const useCommentSectionComments = (
const unconfirmedComments = data?.videoCommentsConnection.edges
.map((edge) => edge.node)
.filter((node) => node.id.includes(UNCONFIRMED))
.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime())
const unconfirmedCommentLookup = unconfirmedComments && createLookup(unconfirmedComments)

const videoComments = data?.videoCommentsConnection?.edges
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0d52270

Please sign in to comment.