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

refactor: neo tabs #6231

Merged
merged 21 commits into from
Jul 5, 2023
Merged

refactor: neo tabs #6231

merged 21 commits into from
Jul 5, 2023

Conversation

preschian
Copy link
Member

@preschian preschian commented Jun 15, 2023

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.

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

PR Type

  • Bugfix
  • Feature
  • Refactoring

Needs QA check

  • @kodadot/qa-guild please review

Context

Did your issue had any of the "$" label on it?

Screenshot 📸

  • My fix has changed UI

Copilot Summary

🤖 Generated by Copilot at 2c984d8

The pull request refactors and updates the tab components used in various pages and components of the application. It replaces the BootstrapVue b-tabs and b-tab-item components with custom components that extend the Oruga UI library, namely NeoTabs and NeoTabItem. These custom components offer better style and functionality for the tabs, such as icons, labels, tooltips, and fallback content. The pull request also removes some unused and redundant code, and fixes some import paths and method accessibility issues.

🤖 Generated by Copilot at 2c984d8

The tabs in the app were outdated
So they were replaced and updated
With NeoTabs and NeoTabItem
They look much more delightful
And the code is less complicated

@netlify
Copy link

netlify bot commented Jun 15, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 037e3c2
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/64a5536400fe37000828ed88
😎 Deploy Preview https://deploy-preview-6231--koda-canary.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 configuration.

@preschian preschian changed the title Refactor/neo-tabs refactor: neo tabs Jun 15, 2023
@reviewpad
Copy link
Contributor

reviewpad bot commented Jun 15, 2023

AI-Generated Summary: This pull request consists of major changes across multiple Vue, SCSS and story files, mainly involving a migration of Oruga UI and Buefy tab components to custom NeoTabs and NeoTabItem components from the Kodadot1 brick UI library. Import statements, component names, and related logic have been updated accordingly. Styles have been removed, added or modified to better support the new custom components. Unused components, files, and imports have been removed for better adherence to the single responsibility principle.

Key updates include:

  1. Replacement of <b-tabs>, <b-tab-item>, <o-tabs>, and <o-tab-item> with <NeoTabs> and <NeoTabItem> components.
  2. Importing NeoTabItem, NeoTabs, and other required custom components from the Kodadot1 brick library.
  3. Extending Vue instances to include new custom components.
  4. Changes to style rules and removal of unnecessary or unused styles.
  5. Deletion of DisablableTab component, NeoTab.vue, _o-tabs.scss, and related story and style files.

@reviewpad reviewpad bot added the large Pull request is large label Jun 15, 2023
@reviewpad
Copy link
Contributor

reviewpad bot commented Jun 15, 2023

Reviewpad Report

⚠️ Warnings

  • Please link an issue to the pull request

@roiLeo roiLeo mentioned this pull request Jun 15, 2023
37 tasks
@preschian preschian marked this pull request as ready for review June 15, 2023 08:44
@preschian preschian requested a review from a team as a code owner June 15, 2023 08:44
@preschian preschian requested review from roiLeo, daiagi and prury and removed request for a team June 15, 2023 08:44
@prury
Copy link
Member

prury commented Jun 15, 2023

  • General - active tab texts are green, it should be something like white on dark mode and the usual pink on white mode i suppose.
    image

  • GalleryItemDescription.vue ok

  • ProfileDetail.vue ok - Mobile problem:

15.06.2023_15.54.13_REC.mp4
  • SearchSuggestion.vue - beta was supper buggy and its now fixed with this deploy ❤️

  • create.vue - ok

  • settings.vue - Mobile - cant reach the other options

image

GalleryItemTabsPanel.vue - Scrolls appearing even if not needed

image

@prury prury added the S-changes-requested-🤞 PR is almost good to go, just some fine tunning label Jun 15, 2023
@preschian
Copy link
Member Author

@prury fixed

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.

Small stuff otherwise lgtm ✅

libs/ui/src/components/NeoTabs/NeoTabs.scss Show resolved Hide resolved
libs/ui/src/components/NeoTabs/NeoTabs.scss Outdated Show resolved Hide resolved
components/rmrk/Profile/ProfileDetail.vue Outdated Show resolved Hide resolved
components/search/SearchSuggestion.vue Outdated Show resolved Hide resolved
libs/ui/src/components/NeoTabs/NeoTabs.scss Outdated Show resolved Hide resolved
pages/bsx/create.vue Outdated Show resolved Hide resolved
pages/ksm/create.vue Outdated Show resolved Hide resolved
pages/rmrk/create.vue Outdated Show resolved Hide resolved
pages/snek/create.vue Outdated Show resolved Hide resolved
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.

Tabs in /settings?tab=metadata look weird (hover state and stuff) could you check why?

Capture d’écran 2023-06-16 à 10 38 54 AM

@preschian
Copy link
Member Author

Tabs in /settings?tab=metadata look weird (hover state and stuff) could you check why?

how about now, I changed it to k-primary

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.

Maybe we should reintroduce content padding see screenshots

beta
Screenshot 2023-06-16 at 11-32-42 KodaDot - NFT Market Explorer

preview
Screenshot 2023-06-16 at 11-33-01 KodaDot - NFT Market Explorer

@roiLeo
Copy link
Contributor

roiLeo commented Jun 23, 2023

Can be fixed later
Screenshot 2023-06-23 at 09-26-34 KodaDot - NFT Market Explorer

@roiLeo roiLeo mentioned this pull request Jun 26, 2023
8 tasks
@vikiival
Copy link
Member

@prury is it possible to recheck pls? 🥺

@prury
Copy link
Member

prury commented Jun 27, 2023

@prury is it possible to recheck pls? 🥺

Ofc my dear viki, I'll be home soon, recheck this one and everything else

@prury
Copy link
Member

prury commented Jun 27, 2023

  • General issue:
    Hover effect across all of them

Canary: (text also have hover effect)

27.06.2023_11.58.57_REC.mp4

This version:

332.mp4
  • Item description.vue - ok
  • GalleryitemtabsPanel.vue - Offers needs some padding:
    image
  • Profiledetail.vue - ok
  • Searchsuggestion.vue - ok, only bug from Hover issue PR
  • BSX - Create.vue - ok
  • KSM - Create.vue - ok
  • RMRK - Create.vue - ok
  • SNEK - Create.vue - ok
  • Settings.vue - ok

@prury prury added S-changes-requested-🤞 PR is almost good to go, just some fine tunning and removed S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked labels Jun 27, 2023
@preschian
Copy link
Member Author

  • General issue:
    Hover effect across all of them
  • GalleryitemtabsPanel.vue - Offers needs some padding:

updated

@prury
Copy link
Member

prury commented Jun 30, 2023

  • sorry, i only saw this one now(padding):
    image

  • Profile:
    Tabs that have a hover tool tip are not changing the text color when hovering:

hover.profile.mp4
  • I believe some padding is needed here as well(desktop and mobile):
    image

  • side padding for item offers on mobile(BSX):
    image

@preschian
Copy link
Member Author

@prury @roiLeo updated, related padding/margin and hover

@prury prury added S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked and removed S-changes-requested-🤞 PR is almost good to go, just some fine tunning labels Jul 4, 2023
@roiLeo roiLeo enabled auto-merge July 5, 2023 11:26
@codeclimate
Copy link

codeclimate bot commented Jul 5, 2023

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

View more on Code Climate.

@roiLeo roiLeo merged commit c375e47 into main Jul 5, 2023
12 of 14 checks passed
@roiLeo roiLeo deleted the refactor/neo-tabs branch July 5, 2023 11:28
@preschian preschian mentioned this pull request Jul 6, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
large Pull request is large S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants