Browse Source

Release v2.0.3 (#4033)

* 🏳️  Nft carousel (#3959)

* Replace old package with glide

* Fix video form format issue (#4022)

* Fix nft carousel, fix the issue with not setting the app id (#4024)

* fix issue with not setting app id

* fix nft carousel

* fix cache error

* 🎪 Fix showing all videos in category (#4023)

* Remove unused config entries

* Fix videos in category

* 📗 Correct pagination button styles (#4001)

* Correct pagination button styles

* 🧓 Update form components (#4006)

* updated styling of Input, Select, OptionCard

* Show carousel only if there are 6 verified channels (#4028)

* show carousel only if there are 6 verified channels

* Fix my videos loading time (#4029)

* 🥨 Channel creation progression (#4000)

* Progress drawer styles

* Channel creation view fixes

* Channel bug fix (#4032)

* Release v2.0.3

---------

Co-authored-by: Artem <Artem Slugin>
Co-authored-by: WRadoslaw <92513933+WRadoslaw@users.noreply.github.com>
Co-authored-by: Bartosz Dryl <drylbartosz@gmail.com>
attemka 1 year ago
parent
commit
68fcc3c0cc

+ 7 - 0
CHANGELOG.md

@@ -5,6 +5,13 @@ 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/),
 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).
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 
+## [2.0.3] - 2023-04-05
+
+### Fixed
+
+- Fixed bug with channel view
+- Fixed YPP extra requests
+
 ## [2.0.2] - 2023-04-04
 ## [2.0.2] - 2023-04-04
 
 
 ### Fixed
 ### Fixed

+ 1 - 1
packages/atlas/package.json

@@ -1,7 +1,7 @@
 {
 {
   "name": "@joystream/atlas",
   "name": "@joystream/atlas",
   "description": "UI for consuming Joystream - a user governed video platform",
   "description": "UI for consuming Joystream - a user governed video platform",
-  "version": "2.0.2",
+  "version": "2.0.3",
   "license": "GPL-3.0",
   "license": "GPL-3.0",
   "scripts": {
   "scripts": {
     "start": "vite",
     "start": "vite",

+ 2 - 2
packages/atlas/src/api/client/cache.ts

@@ -107,7 +107,7 @@ type CachePolicyFields<T extends string> = Partial<Record<T, FieldPolicy | Field
 const queryCacheFields: CachePolicyFields<keyof Query> = {
 const queryCacheFields: CachePolicyFields<keyof Query> = {
   channelsConnection: relayStylePagination(getChannelKeyArgs),
   channelsConnection: relayStylePagination(getChannelKeyArgs),
   extendedChannels: (existing, { toReference, args, canRead }) => {
   extendedChannels: (existing, { toReference, args, canRead }) => {
-    if (args?.where.id_eq) {
+    if (args?.where?.id_eq) {
       // get single channel
       // get single channel
       const channelRef = toReference({
       const channelRef = toReference({
         __typename: 'Channel',
         __typename: 'Channel',
@@ -160,7 +160,7 @@ const queryCacheFields: CachePolicyFields<keyof Query> = {
         // get single nft
         // get single nft
         const nftRef = toReference({
         const nftRef = toReference({
           __typename: 'OwnedNft',
           __typename: 'OwnedNft',
-          id: args?.where.id_eq,
+          id: args?.where?.id_eq,
         })
         })
         if (canRead(nftRef)) {
         if (canRead(nftRef)) {
           return [nftRef]
           return [nftRef]

+ 10 - 1
packages/atlas/src/api/hooks/channel.ts

@@ -53,7 +53,16 @@ export const useFullChannel = (
 ) => {
 ) => {
   const { data, ...rest } = useGetExtendedFullChannelsQuery({
   const { data, ...rest } = useGetExtendedFullChannelsQuery({
     ...opts,
     ...opts,
-    variables,
+    variables: {
+      ...variables,
+      where: {
+        ...variables?.where,
+        channel: {
+          ...variables?.where?.channel,
+          id_eq: id,
+        },
+      },
+    },
   })
   })
   return {
   return {
     channel: data?.extendedChannels[0]?.channel,
     channel: data?.extendedChannels[0]?.channel,

+ 1 - 1
packages/atlas/src/views/global/YppLandingView/YppLandingView.hooks.ts

@@ -73,7 +73,7 @@ export const useGetYppSyncedChannels = () => {
   }, [activeMembership?.channels, channelId, channels])
   }, [activeMembership?.channels, channelId, channels])
 
 
   useEffect(() => {
   useEffect(() => {
-    if (channelId) {
+    if (channelId && YPP_SYNC_URL) {
       refetch()
       refetch()
     }
     }
   }, [channelId, refetch])
   }, [channelId, refetch])