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

beta update #8621

Merged
merged 106 commits into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
b11a9aa
add: profile collection filter working
hassnian Dec 5, 2023
79d252c
fix: collection clear on tab change
hassnian Dec 5, 2023
c89ee33
fix: modal width
hassnian Dec 5, 2023
ea62f1b
fix: profile tab change reset filters
hassnian Dec 5, 2023
0e72372
Merge branch 'main' into issue-8384
hassnian Dec 5, 2023
a0c4389
Merge branch 'main' into issue-8384
prury Dec 5, 2023
77e2416
Merge branch 'main' into issue-8384
hassnian Dec 7, 2023
90c56cd
Merge branch 'issue-8384' of https://github.com/hassnian/nft-gallery …
hassnian Dec 7, 2023
6245a4a
Merge branch 'main' into issue-8384
hassnian Dec 7, 2023
6948547
ref: pr review
hassnian Dec 7, 2023
2c48b9d
Merge branch 'issue-8384' of https://github.com/hassnian/nft-gallery …
hassnian Dec 7, 2023
5fd080d
ref: remove paddings and margins chekcbox
hassnian Dec 7, 2023
8de93ff
fix: show skeleton on new search
hassnian Dec 7, 2023
c10bdba
add: is ready satte auto teleport
hassnian Dec 7, 2023
d007161
add: actionTxFees fetched state
hassnian Dec 7, 2023
a9d3bca
fix: add scrollabale dropdown
hassnian Dec 8, 2023
72c8e4f
add: keep collection filter on new search
hassnian Dec 9, 2023
826e91e
Merge branch 'main' into issue-8384
hassnian Dec 9, 2023
ab99ee8
ref: collection filter checked values
hassnian Dec 9, 2023
13afbd7
fix: multiple new search queries
hassnian Dec 9, 2023
c9e4eb5
fix: disable auto page reset
hassnian Dec 9, 2023
3268cf9
fix: add sold query only for created tab
hassnian Dec 9, 2023
033a579
fix: wrong tab
hassnian Dec 9, 2023
0ca6e9b
ref: fix sonarcloud issue
hassnian Dec 9, 2023
fa80d6c
ref:added needsTeleport to has fetched details
hassnian Dec 9, 2023
97effeb
ref: does not need teleport
hassnian Dec 10, 2023
9ac43f7
add: acive grid size controls
hassnian Dec 10, 2023
d4a87ad
fix: Profile: Every time you refresh - The token order changes
Jarsen136 Dec 10, 2023
160fb0a
add: grid configs
hassnian Dec 11, 2023
3c1a86e
fix: actionAutoFees added lazy fee fetch
hassnian Dec 11, 2023
9bbbf3e
ref: remove log
hassnian Dec 11, 2023
aaf1d15
ensure copy works on all devices
daiagi Dec 11, 2023
a901e71
better interface
daiagi Dec 11, 2023
95c415c
rename
daiagi Dec 11, 2023
45e237c
fix: add burned_eq: false to query
hassnian Dec 11, 2023
10312bc
fix: remove collection filter on url prefix change
hassnian Dec 13, 2023
d15b306
Merge branch 'main' of https://github.com/kodadot/nft-gallery into fi…
daiagi Dec 13, 2023
3018028
ref: disabled filter onloading
hassnian Dec 13, 2023
a8c2d84
bug fix- directive did not update properly
daiagi Dec 13, 2023
4ce6831
remove console log
daiagi Dec 13, 2023
b6e698b
ref: add grid section as enum
hassnian Dec 13, 2023
d1f1cf4
Merge branch 'main' into fix/copy-doesnt-work-mobile
daiagi Dec 13, 2023
a174dfe
fix: force integer number
hassnian Dec 13, 2023
0bda4cc
add: Check ED on auto teleport
hassnian Dec 13, 2023
1e27043
Merge branch 'main' into issue-8482
hassnian Dec 13, 2023
e454f94
teleport ED modal + bug fix
daiagi Dec 13, 2023
5b8ef84
Merge branch 'main' into fix/copy-doesnt-work-mobile
daiagi Dec 13, 2023
daf9173
Merge branch 'main' into issue-8507
prury Dec 13, 2023
e724e55
code review
daiagi Dec 14, 2023
2217d26
Merge branch 'main' of https://github.com/kodadot/nft-gallery into te…
daiagi Dec 14, 2023
1835930
override container max-width
daiagi Dec 14, 2023
9fa6eb6
add: drop autotelport
hassnian Dec 14, 2023
bfa54c3
ref: hide top button section
hassnian Dec 14, 2023
f472bec
Merge branch 'main' into issue-8482
hassnian Dec 14, 2023
c60dc7d
ref: chain uppercased
hassnian Dec 14, 2023
0084608
removed: duplicate import
hassnian Dec 14, 2023
891c840
ref: open confirm modal on autoteleport modal close
hassnian Dec 14, 2023
bc4a0c5
Merge branch 'main' into issue-8384
hassnian Dec 14, 2023
c9623ac
fix: sort not working
hassnian Dec 14, 2023
a5822fd
Merge branch 'main' into issue-8384
hassnian Dec 14, 2023
05e4ae3
ref: rename resetSearchQueryParamsValues
hassnian Dec 14, 2023
cf2d18d
Merge branch 'issue-8384' of https://github.com/hassnian/nft-gallery …
hassnian Dec 14, 2023
c911605
Merge branch 'main' into fix/copy-doesnt-work-mobile
vikiival Dec 14, 2023
78d4ff7
Merge branch 'main' into fix/copy-doesnt-work-mobile
daiagi Dec 14, 2023
fc31574
Merge branch 'main' into issue-8406
prury Dec 14, 2023
dce616e
add currency to EDWarningModal
daiagi Dec 15, 2023
39ef0ec
Merge branch 'main' into teleport-warning
daiagi Dec 15, 2023
c0eae01
fix: autoteleport button enabled too soon
hassnian Dec 15, 2023
7cefa15
Merge branch 'main' into issue-8482
hassnian Dec 15, 2023
51bbc87
ref: change drop key to generative_drop
hassnian Dec 15, 2023
14a73c4
fix: identity item border color
hassnian Dec 15, 2023
5640f53
fix: isTestnet no longer computed
hassnian Dec 15, 2023
6e19b2a
Merge branch 'main' into fix/copy-doesnt-work-mobile
roiLeo Dec 15, 2023
6b85c08
💅 landing top collection asset hub
roiLeo Dec 15, 2023
0d9fb69
🔧 hotfix floor
roiLeo Dec 15, 2023
4cbfeab
🔧 comments
roiLeo Dec 15, 2023
33bb62b
🔧 USD value
roiLeo Dec 15, 2023
24417ed
🔧 topCollection from prefix
roiLeo Dec 15, 2023
d57bbd2
Merge branch 'main' into feature/landing/topCollectionAh
roiLeo Dec 15, 2023
877d849
ref: reduce duplicate translation keys
hassnian Dec 16, 2023
e6bac66
Merge branch 'main' into issue-8482
hassnian Dec 16, 2023
574c0a0
add: new add funds modal for holder of generative
hassnian Dec 16, 2023
35ce04c
add: on chain name
hassnian Dec 16, 2023
8c00ec0
fix: use drop chain
hassnian Dec 16, 2023
bb4619a
fix: use chain drop chain
hassnian Dec 16, 2023
f8acfc7
fix: uppercase
hassnian Dec 16, 2023
e3ceb84
removed: unused code
hassnian Dec 16, 2023
f426f2c
fix: use chain properties
hassnian Dec 16, 2023
8dd058d
fix: deepscan issue
hassnian Dec 16, 2023
e3fd5b1
Merge pull request #8615 from hassnian/issue-8613
yangwao Dec 16, 2023
73f8f34
Merge pull request #8565 from kodadot/fix/navbar-width
yangwao Dec 16, 2023
5267dc1
Merge pull request #8549 from kodadot/teleport-warning
yangwao Dec 16, 2023
281bfd0
Merge pull request #8452 from hassnian/issue-8406
yangwao Dec 16, 2023
6021a03
Merge pull request #8522 from Jarsen136/issue-8510
yangwao Dec 16, 2023
b55134b
Merge branch 'main' into issue-8482
hassnian Dec 16, 2023
942ed70
Merge pull request #8547 from hassnian/issue-8482
yangwao Dec 16, 2023
a4686dc
Merge branch 'main' into issue-8507
hassnian Dec 16, 2023
c229f20
Merge branch 'issue-8507' of https://github.com/hassnian/nft-gallery …
hassnian Dec 16, 2023
fd819d4
Merge pull request #8589 from roiLeo/feature/landing/topCollectionAh
yangwao Dec 16, 2023
202b79b
Merge branch 'main' into issue-8384
hassnian Dec 16, 2023
2a1afc5
Merge pull request #8508 from hassnian/issue-8507
yangwao Dec 16, 2023
dc336cb
Merge pull request #8531 from kodadot/fix/copy-doesnt-work-mobile
yangwao Dec 16, 2023
1292ab4
Merge branch 'main' into issue-8384
hassnian Dec 16, 2023
8fa72c4
Merge pull request #8414 from hassnian/issue-8384
yangwao Dec 16, 2023
1103eb5
Revert "feat: Drops requiring funds to enable auto-teleport"
yangwao Dec 16, 2023
b53059c
Merge pull request #8620 from kodadot/revert-8547-issue-8482
yangwao Dec 16, 2023
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
15 changes: 15 additions & 0 deletions assets/styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ a.has-text-grey {
background-color: theme('k-redaccent');
}
}
.k-grey-light {
background-color: var(--k-grey-light) !important;
}
.theme-background-color {
@include ktheme() {
background-color: theme('background-color');
Expand Down Expand Up @@ -587,3 +590,15 @@ a.has-text-grey {
.has-text-inherit {
color: inherit !important;
}

.cursor-default {
cursor: default;
}

.min-width-0 {
min-width: 0;
}

.pointer-events-none {
pointer-events: none !important;
}
2 changes: 2 additions & 0 deletions assets/styles/layouts/_main-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@
height: 40px;
}
}

max-width: 100% !important;
}
}

Expand Down
28 changes: 24 additions & 4 deletions components/balance/MultipleBalances.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
</div>

<div
v-for="(chain, key) in multiBalances.chains"
v-for="(data, key) in multiBalancesChainsList"
:key="key"
class="is-size-6">
<div
v-for="token in filterEmptyBalanceChains(chain)"
v-for="token in filterEmptyBalanceChains(data.chain)"
:key="token.name"
class="balance-row">
<div class="is-capitalized is-flex-grow-3">
{{ key }}
{{ data.key }}
</div>
<div class="has-text-right is-flex-grow-1">
{{ token.name.toUpperCase() }}
Expand Down Expand Up @@ -61,12 +61,32 @@
import { formatNumber } from '@/utils/format/balance'

import { NeoSkeleton } from '@kodadot1/brick'
import { ChainToken, useIdentityStore } from '@/stores/identity'
import { ChainToken, type ChainType, useIdentityStore } from '@/stores/identity'

const displayChainOrder: ChainType[] = [
'polkadot',
'polkadotHub',
'kusama',
'kusamaHub',
'basilisk',
]
const identityStore = useIdentityStore()

const { multiBalances } = useMultipleBalance(true)

const multiBalancesChainsList = computed(() => {
return Object.keys(multiBalances.value.chains)
.sort(
(a, b) =>
displayChainOrder.indexOf(a as ChainType) -
displayChainOrder.indexOf(b as ChainType),
)
.map((key) => ({
key,
chain: multiBalances.value.chains[key],
}))
})

const isBalanceLoading = computed(
() => identityStore.getStatusMultiBalances === 'loading',
)
Expand Down
2 changes: 2 additions & 0 deletions components/collection/drop/Generative.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
v-dompurify-html="
$t('mint.unlockable.minimumFundsDescription', [
`${minimumFunds} ${token}`,
chainName,
])
"
class="minimum-funds-description" />
Expand Down Expand Up @@ -192,6 +193,7 @@ const isImageFetching = ref(false)
const isConfirmModalActive = ref(false)
const isAddFundModalActive = ref(false)

const chainName = computed(() => getChainName(props.drop.chain))
const token = computed(() => prefixToToken[props.drop.chain])

export type DropMintedNft = DoResult & {
Expand Down
2 changes: 2 additions & 0 deletions components/collection/drop/HolderOfGenerative.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
v-dompurify-html="
$t('mint.unlockable.minimumFundsDescription', [
`${minimumFunds} ${token}`,
chainName,
])
"
class="minimum-funds-description" />
Expand Down Expand Up @@ -194,6 +195,7 @@ const {
status,
} = useMetaTransaction()

const chainName = computed(() => getChainName(props.drop.chain))
const token = computed(() => prefixToToken[props.drop.chain])

const mintedNft = ref<DropMintedNft>()
Expand Down
10 changes: 5 additions & 5 deletions components/common/autoTeleport/AutoTeleportActionButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const amount = ref()

const {
isAvailable: isAutoTeleportAvailable,
hasBalances,
isReady,
hasEnoughInCurrentChain,
hasEnoughInRichestChain,
optimalTransition,
Expand Down Expand Up @@ -163,12 +163,12 @@ const showAutoTeleport = computed(
() =>
!hasEnoughInCurrentChain.value &&
isAutoTeleportAvailable.value &&
hasBalances.value &&
isReady.value &&
!props.disabled,
)

const allowAutoTeleport = computed(
() => needsAutoTelport.value && canAutoTeleport.value && hasBalances.value,
() => needsAutoTelport.value && canAutoTeleport.value && isReady.value,
)

const hasNoFundsAtAll = computed(
Expand All @@ -188,7 +188,7 @@ const autoTeleportLabel = computed(() => {
return props.label
}

if (!hasBalances.value) {
if (!isReady.value) {
return $i18n.t('autoTeleport.checking')
}

Expand Down Expand Up @@ -291,7 +291,7 @@ watchSyncEffect(() => {
}
})

defineExpose({ hasBalances, optimalTransition })
defineExpose({ isReady, optimalTransition })
</script>

<style lang="scss" scoped>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const { urlPrefix } = usePrefix()
const autoteleport = ref()
const actions = computed(() => [props.action])

const loading = computed(() => !autoteleport.value?.hasBalances)
const loading = computed(() => !autoteleport.value?.isReady)

const mode = computed(() => prefrencesStore.getCompletePurchaseModal.mode)

Expand Down
5 changes: 2 additions & 3 deletions components/common/listingCart/ListingCartModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
ref="autoteleportButton"
:actions="actions"
:disabled="Boolean(listingCartStore.incompleteListPrices)"
:fees="{ actionLazyFetch: true }"
:label="confirmListingLabel"
@confirm="confirm" />
</div>
Expand Down Expand Up @@ -96,9 +97,7 @@ const floorPricePercentAdjustment = ref()
const autoTeleport = ref(false)
const autoteleportButton = ref()

const loadingAutoTeleport = computed(
() => !autoteleportButton.value?.hasBalances,
)
const loadingAutoTeleport = computed(() => !autoteleportButton.value?.isReady)

const teleportTransitionTxFees = computed(() =>
format(
Expand Down
2 changes: 1 addition & 1 deletion components/create/Confirm/MintConfirmModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const emit = defineEmits(['confirm', 'update:modelValue'])
const networkFee = ref(0)
const autoteleport = ref()

const loading = computed(() => !autoteleport.value?.hasBalances)
const loading = computed(() => !autoteleport.value?.isReady)

const isNFT = computed(
() => props.nftInformation.mintType === CreateComponent.NFT,
Expand Down
16 changes: 13 additions & 3 deletions components/explore/ActiveCount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div
v-if="count"
class="count is-flex is-justify-content-center is-align-items-center"
:class="{ rounded: rounded }">
:class="[`count--${position}`, { rounded: rounded }]">
{{ count }}
</div>
</template>
Expand All @@ -12,10 +12,12 @@ withDefaults(
defineProps<{
count?: number
rounded?: boolean
position?: string
}>(),
{
rounded: false,
count: 0,
position: 'top-left' as 'top-left' | 'top-right',
},
)
</script>
Expand All @@ -25,13 +27,21 @@ withDefaults(

.count {
position: absolute;
bottom: 1.5rem;
left: -0.75rem;
height: 1.5rem;
width: 1.5rem;
line-height: 1.5rem;
text-align: center;

&--top-left {
bottom: 1.5rem;
left: -0.75rem;
}

&--top-right {
bottom: 1.5rem;
right: -0.75rem;
}

@include ktheme() {
border: 1px solid theme('border-color');
background: theme('k-primary');
Expand Down
4 changes: 2 additions & 2 deletions components/explore/DesktopControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
<ExploreSort />
<ExploreOffer class="is-flex-grow-1" />
<ChainDropdown v-if="!route.name?.includes('prefix-collection-id')" />
<ExploreGrid v-if="!isCollection" />
<GridLayoutControls v-if="!isCollection" />
</div>
</div>
</template>

<script setup lang="ts">
import ExploreTabs from './ExploreTabs.vue'
import ExploreSort from './ExploreSort.vue'
import ExploreGrid from './ExploreGrid.vue'
import ExploreOffer from './ExploreOffer.vue'
import FilterMenuButton from './FilterMenuButton.vue'
import ChainDropdown from '@/components/common/ChainDropdown.vue'
import GridLayoutControls from '@/components/shared/GridLayoutControls.vue'

const route = useRoute()

Expand Down
35 changes: 0 additions & 35 deletions components/explore/ExploreGrid.vue

This file was deleted.

19 changes: 14 additions & 5 deletions components/items/ItemsGrid/ItemsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
v-if="total !== 0 && (!isLoading || !isFetchingData)"
:id="scrollContainerId"
v-slot="slotProps"
:grid-section="gridSection"
:mobile-cols="2"
class="my-5">
<div
Expand Down Expand Up @@ -54,6 +55,7 @@
<!-- skeleton on first load -->
<DynamicGrid
v-if="total === 0 && (isLoading || isFetchingData)"
:grid-section="gridSection"
class="my-5"
:mobile-cols="2">
<NeoNftCardSkeleton
Expand All @@ -80,13 +82,16 @@ import isEqual from 'lodash/isEqual'
import { useListingCartStore } from '@/stores/listingCart'
import { getTokensNfts } from './useNftActions'
import { NFT } from '@/components/rmrk/service/scheme'
import { GridSection } from '@/stores/preferences'

const { listingCartEnabled } = useListingCartConfig()
const listingCartStore = useListingCartStore()
const route = useRoute()

const props = defineProps<{
search?: Record<string, string | number>
resetSearchQueryParams?: string[]
gridSection?: GridSection
}>()

const emit = defineEmits(['total', 'loading'])
Expand All @@ -103,6 +108,7 @@ const gotoPage = (page: number) => {
endPage.value = page
isFetchingData.value = false
isLoading.value = true
total.value = 0

clearFetchResults()
fetchSearch({ page, search: parseSearch(props.search) })
Expand Down Expand Up @@ -132,16 +138,20 @@ const {

const skeletonCount = first.value

const resetPage = useDebounceFn(() => {
const resetPage = () => {
isLoading.value = true
gotoPage(1)
}, 500)
}

const debouncedResetPage = useDebounceFn(resetPage, 500)

const { items, fetchSearch, clearFetchResults, usingTokens } = useFetchSearch({
first,
total,
isFetchingData,
isLoading,
resetSearch: resetPage,
resetSearch: debouncedResetPage,
resetSearchQueryParams: props.resetSearchQueryParams,
})

watch(
Expand Down Expand Up @@ -181,8 +191,7 @@ watch(
return
}
if (!isEqual(newSearch, oldSearch)) {
isLoading.value = true
gotoPage(1)
resetPage()
}
},
{ deep: true },
Expand Down
Loading