Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🟣 Release 5.6.0 #6480

Merged
merged 2 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ 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.0] - 2024-11-07

**IMPORTANT:** Depends on Orion release `4.1.0`.
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.0",
"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.0",
"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 @@ -60,7 +60,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
Loading