Skip to content

feat(ui-components): implement Tabs components - #47313

Merged
Sembauke merged 17 commits into
freeCodeCamp:mainfrom
masterX89:feat/ui-component-tabs
Aug 18, 2023
Merged

Sembauke merged 17 commits into
freeCodeCamp:mainfrom
masterX89:feat/ui-component-tabs

Conversation

@masterX89

@masterX89 masterX89 commented Aug 18, 2022 •

Copy link
Copy Markdown
Contributor

Checklist:

  • I have read freeCodeCamp's contribution guidelines.
  • My pull request has a descriptive title (not a vague title like Update index.md)
  • My pull request targets the main branch of freeCodeCamp.
  • I have tested these changes either locally on my machine, or GitPod.

part #47247,
plan step one

closes

I would like to know if I am allowed to use @headlessui/react After reading #47043, if I can use Transition in @headlessui/react, the implementation of animation will be simpler and more elegant

@gitpod-io

gitpod-io Bot commented Aug 18, 2022

Copy link
Copy Markdown

@github-actions github-actions Bot added the scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. label Aug 18, 2022
@ghost

ghost commented Aug 18, 2022 •

Copy link
Copy Markdown

👀 Review this PR in a CodeSee Review Map

View the CodeSee Map of this change

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@masterX89 masterX89 changed the title Feat/UI component tabs feat(ui-components): implement basic Tabs component Aug 18, 2022
@masterX89 masterX89 mentioned this pull request Aug 18, 2022
6 tasks
@masterX89
masterX89 force-pushed the feat/ui-component-tabs branch from a3a12bb to 5892825 Compare August 18, 2022 03:46
@majestic-owl448

Copy link
Copy Markdown
Contributor

part Closes #47247, plan step one

if it's only partly, don't use the Closes keyword, or the PR is going to close the issue when merged

@Sboonny
Sboonny requested review from ahmaxed and huyenltnguyen and removed request for Nirajn2311 and scissorsneedfoodtoo August 18, 2022 16:01
@masterX89
masterX89 force-pushed the feat/ui-component-tabs branch 2 times, most recently from b1a0d53 to 24c0099 Compare August 19, 2022 09:09
@ahmaxed ahmaxed self-assigned this Aug 19, 2022
@raisedadead raisedadead added the status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. label Aug 22, 2022
@ahmaxed

ahmaxed commented Aug 26, 2022

Copy link
Copy Markdown
Member

Thank you for for your patience with the review.

This is a great start and here are a few points I would like to discuss about this implementation.

  1. Yes, @headlessui/react simplifies the development a lot. If you decide to go down that route, please make sure Tabs and TabPane still receive the same props and have the same structure when used.

  2. If you decide develop the component from scratch, I highly recommend to also look into how the current version of Tabs and its related components are developed and how the state is managed.

  3. The current usage of Tabs and TabPane could be simplified in learn so we could spend less time creating the Tabs related components. For instance, TabPane could be replaced with Tab and onSelection could be completely removed.

  4. I would appreciate it if you could do the research for the mountOnEnter and unmountOnExit and learn about performance benefits and see how we could implement them.

  5. Animation is not needed at this point. But we will include it across our components if necessary in the next iterations.

Let me know if the above makes sense to you.

@Sembauke Sembauke added status: waiting update Is awaiting update, after feedback or request for changes and removed status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. labels Sep 29, 2022
@ahmaxed

ahmaxed commented Sep 30, 2022 •

Copy link
Copy Markdown
Member

@masterX89 how is the progress going with this component? Let me know if you need any help.

@raisedadead raisedadead added status: decayed Stale issues that need follow up from commentators. Were closed for inactivity and removed status: waiting update Is awaiting update, after feedback or request for changes labels Oct 26, 2022
@raisedadead

Copy link
Copy Markdown
Member

Hi,

We are closing old issues/pull requests that we think are stale. If you still need help or are fixing this, please open a new issue/pull request.

Thanks for your understanding.

Happy contributing.

@ahmaxed

ahmaxed commented Apr 6, 2023

Copy link
Copy Markdown
Member

@Sboonny, here is the tabs component for your consideration.

@Sboonny Sboonny reopened this Apr 6, 2023
@Sboonny Sboonny removed the status: decayed Stale issues that need follow up from commentators. Were closed for inactivity label Apr 6, 2023
@Sboonny Sboonny self-assigned this Apr 6, 2023
@Sboonny
Sboonny force-pushed the feat/ui-component-tabs branch from f49fbaf to f3a7c3a Compare May 8, 2023 15:09
@Sboonny

This comment was marked as resolved.

@ahmaxed

ahmaxed commented Jun 5, 2023

Copy link
Copy Markdown
Member

@Sboonny thank you for working on this pr. Let me know if you need my help to finalize it.

@Sboonny

Sboonny commented Jun 5, 2023

Copy link
Copy Markdown
Member

No need, if you are happy with the current implementation, I will sort the conflicts and we merge this.

@Sboonny Sboonny removed their assignment Jun 5, 2023
@Sboonny
Sboonny marked this pull request as ready for review June 5, 2023 10:35
@moT01 moT01 added the MERGE CONFLICT! To be applied to PR's that have a merge conflict and need updating label Jun 9, 2023
@ahmaxed

ahmaxed commented Jul 31, 2023 •

Copy link
Copy Markdown
Member

Other than the following CSS changes, everything LGMT:

  1. The tabs could stick together on the sides.
  2. Full borders for tabs are not necessary.
  3. Only the list should have a lower border. If not, all tabs should have a lower border.

@Sboonny Sboonny self-assigned this Jul 31, 2023
Comment thread tools/ui-components/src/tabs/tabs.tsx Resolved
@Sboonny Sboonny removed their assignment Aug 5, 2023
@ahmaxed ahmaxed added status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending. and removed MERGE CONFLICT! To be applied to PR's that have a merge conflict and need updating labels Aug 11, 2023
@Sembauke
Sembauke merged commit 239c928 into freeCodeCamp:main Aug 18, 2023
@Sboonny Sboonny changed the title feat(ui-components): implement basic Tabs component feat(ui-components): implement Tabs components Aug 25, 2023
@Sboonny Sboonny mentioned this pull request Aug 25, 2023
37 of 49 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. status: waiting review To be applied to PR's that are ready for QA, especially when additional review is pending.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants