Procházet zdrojové kódy

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 před 1 rokem
rodič
revize
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/),
 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
 
 ### Fixed

+ 1 - 1
packages/atlas/package.json

@@ -1,7 +1,7 @@
 {
   "name": "@joystream/atlas",
   "description": "UI for consuming Joystream - a user governed video platform",
-  "version": "2.0.2",
+  "version": "2.0.3",
   "license": "GPL-3.0",
   "scripts": {
     "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> = {
   channelsConnection: relayStylePagination(getChannelKeyArgs),
   extendedChannels: (existing, { toReference, args, canRead }) => {
-    if (args?.where.id_eq) {
+    if (args?.where?.id_eq) {
       // get single channel
       const channelRef = toReference({
         __typename: 'Channel',
@@ -160,7 +160,7 @@ const queryCacheFields: CachePolicyFields<keyof Query> = {
         // get single nft
         const nftRef = toReference({
           __typename: 'OwnedNft',
-          id: args?.where.id_eq,
+          id: args?.where?.id_eq,
         })
         if (canRead(nftRef)) {
           return [nftRef]

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

@@ -53,7 +53,16 @@ export const useFullChannel = (
 ) => {
   const { data, ...rest } = useGetExtendedFullChannelsQuery({
     ...opts,
-    variables,
+    variables: {
+      ...variables,
+      where: {
+        ...variables?.where,
+        channel: {
+          ...variables?.where?.channel,
+          id_eq: id,
+        },
+      },
+    },
   })
   return {
     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])
 
   useEffect(() => {
-    if (channelId) {
+    if (channelId && YPP_SYNC_URL) {
       refetch()
     }
   }, [channelId, refetch])