Skip to content

Commit

Permalink
🟣 Release 5.4.0
Browse files Browse the repository at this point in the history
Merge pull request #6428 from ikprk/release/5.4.0
  • Loading branch information
ikprk authored Jul 22, 2024
2 parents 025447f + 9f53e53 commit ec9678c
Show file tree
Hide file tree
Showing 66 changed files with 3,499 additions and 504 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,21 @@ 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.4.0] - 2024-07-19

### Added

- Token comments
- CRT Marketplace
- Categorized home view
- Language filtering

### Fixed

- Marketplace segment tracking
- Synchronize AMM restrictions with runtime state
- Notifications with dispatch block in the future

## [5.3.0] - 2024-06-04

### Added
Expand Down
2 changes: 2 additions & 0 deletions packages/atlas/codegen.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const config: CodegenConfig = {
scalars: {
DateTime: 'Date',
BigInt: 'string',
BigDecimal: 'string',
id_ASC: 'string',
},
preResolveTypes: true, // avoid using Pick
},
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.3.0",
"version": "5.4.0",
"license": "GPL-3.0",
"scripts": {
"start": "vite",
Expand Down
9 changes: 8 additions & 1 deletion packages/atlas/src/api/hooks/notifications.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { QueryHookOptions } from '@apollo/client'
import { useRef } from 'react'

import {
GetNftActivitiesCountQuery,
Expand All @@ -10,15 +11,21 @@ import {
useGetNotificationsConnectionQuery,
useMarkNotificationsAsReadMutation,
} from '@/api/queries/__generated__/notifications.generated'
import { useJoystreamStore } from '@/providers/joystream/joystream.store'

import { NftActivityOrderByInput, RecipientTypeWhereInput } from '../queries/__generated__/baseTypes.generated'

export const useRawNotifications = (
recipient: RecipientTypeWhereInput | undefined,
opts?: Pick<QueryHookOptions, 'notifyOnNetworkStatusChange'>
) => {
const currentBlockRef = useRef(useJoystreamStore((store) => store.currentBlock))
const { data, ...rest } = useGetNotificationsConnectionQuery({
variables: { first: 10, recipient: recipient as RecipientTypeWhereInput },
variables: {
first: 10,
recipient: recipient as RecipientTypeWhereInput,
dispatchBlock: currentBlockRef.current ?? 0,
},
...opts,
skip: !recipient,
})
Expand Down
65 changes: 65 additions & 0 deletions packages/atlas/src/api/queries/__generated__/admin.generated.tsx

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

Loading

0 comments on commit ec9678c

Please sign in to comment.