Skip to content

Commit 27ec191

Browse files
authored
Merge pull request #69 from Lezek123/gleev/5.6.0
🌐 Gleev v5.6.0
2 parents edb920e + 21cfaf5 commit 27ec191

File tree

55 files changed

+1494
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1494
-240
lines changed

CHANGELOG.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,32 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [5.6.0] - 2024-12-23
9+
10+
**IMPORTANT:** Depends on Orion release `4.2.0`.
11+
12+
### Added
13+
14+
- Video tipping functionality (https://github.com/Joystream/atlas/issues/6291)
15+
16+
### Fixed
17+
18+
- Improved error handling for optimistic transactions:
19+
- Added hadling for `ExtrinsicFailed` errors
20+
- Added adequate cleanup of cached optimistic state on error
21+
- Fixed optimistic actions to be able to handle situations when there are multiple comments in `UNCONFIRMED` state
22+
- Fixed a bug with invalid condition inside `transactions.manager.tsx` causing `onTxSync` to errously timeout in some cases.
23+
824
## [5.5.1] - 2024-11-05
925

1026
### Changed
1127

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

1531
## [5.5.0] - 2024-11-07
1632

17-
**IMPORTANT:** Depends on Orion release `4.1.0`
33+
**IMPORTANT:** Depends on Orion release `4.1.0`.
1834

1935
### Changed
2036

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description": "UI for consuming Joystream - a user governed video platform",
3-
"version": "5.5.1",
3+
"version": "5.6.0",
44
"license": "GPL-3.0",
55
"workspaces": [
66
"packages/*"

packages/atlas/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@joystream/atlas",
33
"description": "UI for consuming Joystream - a user governed video platform",
4-
"version": "5.5.1",
4+
"version": "5.6.0",
55
"license": "GPL-3.0",
66
"scripts": {
77
"start": "vite",

packages/atlas/src/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ VITE_PRODUCTION_YPP_FAUCET_URL=https://18.184.136.237.nip.io/membership
4343
# Development env URLs - this is the default configuration if VITE_ENV != production
4444
VITE_DEVELOPMENT_ORION_AUTH_URL=https://atlas-dev.joystream.org/api/v1
4545
VITE_DEVELOPMENT_ORION_URL=https://atlas-dev.joystream.org/orion-api/graphql
46-
VITE_DEVELOPMENT_QUERY_NODE_SUBSCRIPTION_URL=wss://atlas-dev.joystream.org/orion-v2/graphql
46+
VITE_DEVELOPMENT_QUERY_NODE_SUBSCRIPTION_URL=wss://atlas-dev.joystream.org/orion-api/graphql
4747
VITE_DEVELOPMENT_NODE_URL=wss://atlas-dev.joystream.org/ws-rpc
4848
VITE_DEVELOPMENT_FAUCET_URL=https://atlas-dev.joystream.org/member-faucet/register
4949
VITE_DEVELOPMENT_YPP_FAUCET_URL=https://50.19.175.219.nip.io/memberships
@@ -59,7 +59,7 @@ VITE_NEXT_YPP_FAUCET_URL=wss://3.73.121.180.nip.io/ws-rpc
5959
# Local development env URLs
6060
VITE_LOCAL_ORION_AUTH_URL=http://localhost:4074/api/v1
6161
VITE_LOCAL_ORION_URL=http://localhost:4350/graphql
62-
VITE_LOCAL_QUERY_NODE_SUBSCRIPTION_URL=ws://localhost:8081/graphql
62+
VITE_LOCAL_QUERY_NODE_SUBSCRIPTION_URL=ws://localhost:4350/graphql
6363
VITE_LOCAL_NODE_URL=ws://localhost:9944/ws-rpc
6464
VITE_LOCAL_FAUCET_URL=http://localhost:3002/register
6565
VITE_LOCAL_YPP_FAUCET_URL=https://52.204.147.11.nip.io/membership

packages/atlas/src/api/hooks/comments.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { QueryHookOptions } from '@apollo/client'
2+
import { omit } from 'lodash-es'
23
import { useMemo } from 'react'
34

45
import {
@@ -13,6 +14,7 @@ import {
1314
useGetCommentEditsQuery,
1415
useGetCommentQuery,
1516
useGetCommentRepliesConnectionQuery,
17+
useGetTipTiersQuery,
1618
useGetUserCommentsAndVideoCommentsConnectionQuery,
1719
useGetUserCommentsReactionsQuery,
1820
} from '@/api/queries/__generated__/comments.generated'
@@ -129,3 +131,12 @@ export const useCommentEdits = (
129131
...rest,
130132
}
131133
}
134+
135+
export const useGetTipTiers = () => {
136+
const { data, ...rest } = useGetTipTiersQuery()
137+
138+
return {
139+
tipTiers: data ? omit(data.tipTiers, ['__typename']) : undefined,
140+
...rest,
141+
}
142+
}

packages/atlas/src/api/hooks/useCommentSectionComments.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const useCommentSectionComments = (
2222
const unconfirmedComments = data?.videoCommentsConnection.edges
2323
.map((edge) => edge.node)
2424
.filter((node) => node.id.includes(UNCONFIRMED))
25+
.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime())
2526
const unconfirmedCommentLookup = unconfirmedComments && createLookup(unconfirmedComments)
2627

2728
const videoComments = data?.videoCommentsConnection?.edges

packages/atlas/src/api/queries/__generated__/baseTypes.generated.ts

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)