Skip to content

UI Components Library #44668

Closed
Closed

Description

@ahmaxed

Description:

We need a better way of managing our styles and components. In order to achieve that we should create our own light-weight component library that uses Storybook (isolate the components and document them) and tailwindCSS (style each component) and make sure it meets the web accessibility requirements.

Todo list:

Completed tasks

Development steps

Refer to the Component Library documentation for research and development steps.

Notes

  • After the above-mentioned components are released to production, the rest of the UI components will be added to the library and all CSS will be removed from the client directory.
  • This issue is based on discussions in UI Components Library #41580
  • Comments with lower priority are deleted regularly to reduce the communication overhead.

Activity

  1. added
    scope: UI
    platform: learn
    on Jan 4, 2022
  2. pinned this issue on Jan 4, 2022
  3. masterX89 commented on Jul 27, 2022

    @masterX89
    Contributor

    Hi! I found these components like DropdownButton , Modal and ToggleButton are considered using Headless UI. So I wonder if Tabs, Tab and TabPane could also consider Headless UI's Tabs?
    Can I try to work on these above components?

  4. ahmaxed commented on Jul 27, 2022

    @ahmaxed
    MemberAuthor

    @masterX89, we consider using headlessUI if the component is complex and using headless UI would speed up the implementation considerably.
    Feel free to research a component that you are interested in and summarize your findings in a new issue. Then, we could discuss the implementation in more details.

  5. unpinned this issue on Aug 7, 2022
  6. pinned this issue on Aug 7, 2022
  7. mriiad commented on Aug 8, 2022

    @mriiad

    Hello @ahmadabdolsaheb, I would like to work on Panel & MenuItem please!

  8. ahmaxed commented on Aug 9, 2022

    @ahmaxed
    MemberAuthor

    Thanks for your interest @mriiad.
    Please feel free to proceed with reading the issue and related documentation thoroughly and opening an issue with your research findings on the Panel component.

    Let's hold of on the Menuitem since it is very close to what @shootermv is working on in #47043.

  9. lexyd commented on Aug 18, 2022

    @lexyd

    @ahmadabdolsaheb Is there a design file like on Figma where the consistency of the UI components can be designed first.

    I would like to contribute to it.

  10. ahmaxed commented on Aug 19, 2022

    @ahmaxed
    MemberAuthor

    @lexyd at this point we are focusing on replacing the existing customized react-bootstrap library.

    Once that is done, we will audit our component library's design. We could consider having Figma files then, but it would be more work to keep them in-sync over time.

    I will tag you if we decide to go down that route. Meanwhile, feel free to work on the remaining components if you are interested.

  11. deleted a comment from Jmagero on Aug 19, 2022
  12. 23 remaining items

  13. winniecwng commented on Sep 8, 2023

    @winniecwng

    Hi, there's a comment above that we don't need to be assigned to work on an issue but I just want to make sure that's the case; I'd like to work on the "Audit and clean up any unused CSS" but not sure if this issue will start until all styles are changed to tailwind

  14. Sboonny commented on Sep 8, 2023

    @Sboonny
    Member

    Hi, @winniecwng.

    Ideally the CSS properties removal should occur with the swapping of the components, because if we need to revert the component PR, we won't need to revert multiple PRs, the PR that adds the component, and the PR that removes the CSS properties, which can lead to broken styles if the order of reverting is incorrect.

    if you want to focus purely on cleaning unused CSS, feel free to open PR that clean unused CSS that you find unused, no need to wait, but waiting can make things easier for you.

  15. KSSaiTeja commented on Sep 18, 2023

    @KSSaiTeja
    Contributor

    @ahmaxed i want to work on replacing react-bootstrap. could you please tell me more about this.

  16. ahmaxed commented on Sep 19, 2023

    @ahmaxed
    MemberAuthor

    @KSSaiTeja, thank you for our interest. The component creation phase has been completed. Now @Sboonny is focused on replacing the components and cleaning out the styles from the client. Feel free to start with replacing the Alert component.

  17. KSSaiTeja commented on Sep 19, 2023

    @KSSaiTeja
    Contributor

    @ahmaxed thanks for the reply. could you please tell me what should i do in alert component

  18. KSSaiTeja commented on Sep 19, 2023

    @KSSaiTeja
    Contributor

    @ahmaxed should i optimsize the alert component? if you don't mind.. as a beginner i didn't understand what should i do now. could you please tell me clearly what should i do now and mentioning the file you're saying..

    Hope you will give reply soon..!

  19. Sboonny commented on Sep 19, 2023

    @Sboonny
    Member

    @KSSaiTeja, the workflow should be similar to the Button component PR, and it should be simpler.

    • export the function in tools/ui-components/src/index.ts.
    • build the development environment. so you can easily import the component through TypeScript.
    • remove the Alert import from bootstrap.
    • import the Alert from the library.
    • swap the bsStyle prop with variant prop, TypeScript should warn you if you missed a prop.
    • check if the classes related to .alert and .alert-success are needed, if they aren't needed, remove them.

    Note:

    There are classes in bootstrap.min.css but they shouldn't be changed, because the file will be deleted later when the components are merges.

  20. KSSaiTeja commented on Sep 19, 2023

    @KSSaiTeja
    Contributor

    @Sboonny thanks for the reply. i will follow your instructions and implement them. And will raise a PR soon

  21. Eleazar23 commented on Oct 7, 2023

    @Eleazar23

    Hi, I would like to help with this task: Remove @freecodecamp/react-bootstrap as a dependency

  22. huyenltnguyen commented on Oct 9, 2023

    @huyenltnguyen
    Member

    Hey @Eleazar23, thank you for the interest! We are still in the process of build new components, so the dependency replacement is currently still blocked. Please check back later, and in the meantime, we are looking for contributions with issues labelled with help wanted or first timers only.

  23. Sboonny commented on Oct 12, 2023

    @Sboonny
    Member

    Image and ToggleButton aren't used in the /learn, we can decide what to do with them later, for now I won't create a PR that add them to /learn.

    There are good points mentioned by Huyen about the future of the library, that we can discuss and go into further details and how they can be implemented.

  24. unpinned this issue on Oct 12, 2023
  25. ahmaxed commented on Oct 19, 2023

    @ahmaxed
    MemberAuthor

    The remaining tasks have been migrated to #52030

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: learnscope: UI

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions