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

feat: Collection description long text wrap #5383

Merged
merged 7 commits into from
Mar 28, 2023

Conversation

Jarsen136
Copy link
Contributor

Thank you for your contribution to the KodaDot NFT gallery.

👇 _ Let's make a quick check before the contribution.

PR Type

  • Bugfix
  • Feature
  • Refactoring

Context

Before submitting pull request, please make sure:

  • My contribution builds clean without any errors or warnings
  • I've merged recent default branch -- main and I've no conflicts
  • I've tried to respect high code quality standards
  • I've didn't break any original functionality
  • I've posted a screenshot of demonstrated change in this PR

Optional

  • I've tested it at </bsx/collection>
  • I've tested PR on mobile
  • I've written unit tests 🧪
  • I've found edge cases

Had issue bounty label?

  • Fill up your KSM address: Payout

Community participation

Screenshot 📸

  • My fix has changed something on UI; a screenshot is best to understand changes for others.

image

As we also have a markdown format of the description, I have to put the see more button under the description section.

@Jarsen136 Jarsen136 requested a review from a team as a code owner March 26, 2023 09:01
@Jarsen136 Jarsen136 requested review from preschian and vikiival and removed request for a team March 26, 2023 09:01
@kodabot
Copy link
Collaborator

kodabot commented Mar 26, 2023

SUCCESS @Jarsen136 PR for issue #5374 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime!

@netlify
Copy link

netlify bot commented Mar 26, 2023

Deploy Preview for koda-nuxt ready!

Name Link
🔨 Latest commit e0db4c1
🔍 Latest deploy log https://app.netlify.com/sites/koda-nuxt/deploys/6421ed688b5caf0008ded3ca
😎 Deploy Preview https://deploy-preview-5383--koda-nuxt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@exezbcz
Copy link
Member

exezbcz commented Mar 26, 2023

I think we can show more words

  • Also is possible that the see more links in on the same line at the end of sentence? like on rarible/opensea?
  • can you add underline please

image

@Jarsen136
Copy link
Contributor Author

I think we can show more words

OK, It would show more words now.

  • Also is possible that the see more links in on the same line at the end of sentence? like on rarible/opensea?

I have no idea to make it at the end of the sentence now. Because we also have a markdown format of the description, I have to put the see more button under the description section.

  • can you add underline please

Underline was added.

@exezbcz
Copy link
Member

exezbcz commented Mar 26, 2023

@Jarsen136 nice!

last changes

  • different hover effect - from k-grey to either black or white, based on the mode

can you put the link to the left?
image

@Jarsen136
Copy link
Contributor Author

last changes

different hover effect - from k-grey to either black or white, based on the mode
can you put the link to the left?

✅ Done

image

@exezbcz
Copy link
Member

exezbcz commented Mar 26, 2023

I forgot to mention also the option to see less once you expand the description :D
image
can you add that please as well, sorry for that

@Jarsen136
Copy link
Contributor Author

That's OK. Will check later

@Jarsen136
Copy link
Contributor Author

I forgot to mention also the option to see less once you expand the description :D image can you add that please as well, sorry for that

✅ Done

@exezbcz
Copy link
Member

exezbcz commented Mar 26, 2023

yes, works good

the button is activated even in the middle of the screen - can you make the hover area contrained only to the button/text
Screenshot 2023-03-26 at 17 49 54

@Jarsen136
Copy link
Contributor Author

yes, works good

the button is activated even in the middle of the screen - can you make the hover area contrained only to the button/text !

Fixed

Copy link
Member

@vikiival vikiival left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise good

Comment on lines +82 to 105

const toggleSeeAllDescription = () => {
seeAllDescription.value = !seeAllDescription.value
}

const hasSeeAllDescriptionOption = computed(() => {
return (
(collectionInfo.value?.meta?.description?.length || 0) >
DESCRIPTION_MAX_LENGTH
)
})

const visibleDescription = computed(() => {
const desc = collectionInfo.value?.meta?.description

return (
(!hasSeeAllDescriptionOption.value || seeAllDescription.value
? desc
: desc?.slice(0, DESCRIPTION_MAX_LENGTH)
)?.replaceAll('\n', ' \n') || ''
)
})

const { stats } = useCollectionDetails({ collectionId: collectionId.value })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

, Would move

It into the component

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

50 via max Len prop it would se available else where

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean moving these parts into markdown component? If so, PR #5366 should be merged firs, then we could do the refactor.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets do it in other PR

Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DescriptionWrapper is sitting in the corner :(

Not confiant about this "link" button variant, I would replace it with stylised <a /> or create is-text equivalent

@Jarsen136
Copy link
Contributor Author

Jarsen136 commented Mar 27, 2023

DescriptionWrapper is sitting in the corner :(

Thanks for reminding me of it. I think we are about to remove this component after the recent collection redesign as it does not meet our requirements anymore. I will create a new markdown wrapper component.

Not confiant about this "link" button variant, I would replace it with stylised <a /> or create is-text equivalent

Good idea. I have wrapped it with is-text class.

@vikiival
Copy link
Member

@Jarsen136 please fix deepscan and we can continue

image

@codeclimate
Copy link

codeclimate bot commented Mar 27, 2023

Code Climate has analyzed commit e0db4c1 and detected 0 issues on this pull request.

View more on Code Climate.

@Jarsen136
Copy link
Contributor Author

@Jarsen136 please fix deepscan and we can continue

It's fixed after merging main branch.

image

@vikiival
Copy link
Member

pay 20 usd

@vikiival vikiival merged commit 37a2cbb into kodadot:main Mar 28, 2023
@yangwao
Copy link
Member

yangwao commented Mar 28, 2023

pay 20 usd

1 similar comment
@yangwao
Copy link
Member

yangwao commented Mar 28, 2023

pay 20 usd

@yangwao
Copy link
Member

yangwao commented Mar 28, 2023

😍 Perfect, I’ve sent the payout
💵 $20 @ 32.46 USD/KSM ~ 0.616 $KSM
🧗 Caiv9TbPz68q5dC8EcHu5xKYPRnremimGzqmEejDFNpWWLG
🔗 0x769bb7a7ea1431240d2bd8302b89bc2bc614f2906d874c9de9b648ae7cd05b3d

🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues

@yangwao yangwao added the paid pull-request has been paid label Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paid pull-request has been paid S-visual-ok-✅
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collection description long text wrap
7 participants