Giter Club home page Giter Club logo

Comments (9)

reynard2007 avatar reynard2007 commented on August 13, 2024

Taking this

from react-components.

reynard2007 avatar reynard2007 commented on August 13, 2024

May I clarify the following:

  1. The parent (whole) navbar component is on flex display so this will be a flex-item
  2. Will the login state change while on the same page will trigger a page change? I'm thinking if I am to handle the login state change in the component or just initialize it as either logged in or not.
  3. The user avatar will also use the purple placeholder?
  4. I see that this uses the std-list-item. Is that something I have to wait for or can I proceed with implementing this I don't think this is necessary since there is no icon for the list items on this component. In that case, can I just use .user-menu-item as class name to avoid conflicts?

from react-components.

vikasrohit avatar vikasrohit commented on August 13, 2024

Go ahead. 👍

1 Ideally, component (user dropdown) should be independent of its parent (nav bar in this case). It should only behave differently based on the context provide by the parent i.e. it should adjust its width based on space provided by the parent. For mobile (width < 768px), we can always assume this component to reduce its header just to the user avatar and omit the username as depicted in the live specks.
2 Good question. I think for the sake of simplicity and speeding up the development, you can just let the component behave based on the log in state. This state would be changed by external page (e.g. login page or /logout page).
3 Yes, you can. You can also use your profile pic as well. :)
4 Good catch. Yes, you can avoid using std-list-item for now. We can handle that in final fixes.

from react-components.

reynard2007 avatar reynard2007 commented on August 13, 2024

Thanks, for answering my queries. Another thing: the codebase uses CamelCase in class names of primary components. Do we follow that or use the dash format (.user-dropdown-menu)?

from react-components.

vikasrohit avatar vikasrohit commented on August 13, 2024

@reynard2007 Basic idea is to have component names in title case (e.g. Panel, StandardListItem etc) while css class names in dash format (e.g. panel-header, panel-body). Only exception to dash format class name is the main css class of the component e.g. FileUploader, Checkbox etc. We are aware that Panel component's main css class is not using title case as of now, we have to fix that.

from react-components.

reynard2007 avatar reynard2007 commented on August 13, 2024

What are we to do if we have this on minimal width state of the user dropdown. Curently it renders like this on my machine:

image

from react-components.

vikasrohit avatar vikasrohit commented on August 13, 2024

I think it is fine. On mobile devices, we would show the dropdown content as inline element in the DOM through the configuration in dropdown component.
Minor changes, as final fixes, can be done even after merging the PR.

from react-components.

vikasrohit avatar vikasrohit commented on August 13, 2024

@reynard2007 There are conflicts in PR#18, please resolve them to enable us to review the code. Further, it would be really great if you can separate out the PRs for #4 and #8. This would allow us to better track changes per task.

from react-components.

vikasrohit avatar vikasrohit commented on August 13, 2024

Closing task. Thanks @reynard2007 for your hard work.

from react-components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.