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

Dropdown buttons for associated libs in PyAnsys #500

Open
Revathyvenugopal162 opened this issue Sep 13, 2024 · 6 comments
Open

Dropdown buttons for associated libs in PyAnsys #500

Revathyvenugopal162 opened this issue Sep 13, 2024 · 6 comments
Labels
css Requires or modifies cascading style sheets js Requires or modifies JavaScript code ui/ux Related with UI/UX design

Comments

@Revathyvenugopal162
Copy link
Contributor

Add associated libraries as dropdown button:

example
image
https://vega.github.io/vega/

Initial idea by @clatapie in #399 (comment)

pinging @mia-guo-ux for design idea and UI/UX approval as we discussed in private

pinging @ansys/pyansys-core

@mia-guo-ux
Copy link

mia-guo-ux commented Sep 13, 2024

@Revathyvenugopal162 @clatapie

There are several routes to this problem.

Route 1: Reorganizing the libraries.
For those with associated libraries, we can add an extra layer so there is a parent library for all the relevant libraries. For example, the user is able to select which sub-library to view when the user lands on DPF homepage. The hierarchy thus would be: PyAnsys -> PyDPF home -> PyDPF sub-libraries (core/composites/post) home -> Doc pages.

Please feel free to let me know if there are some technical concerns that I'm not aware of.
image

Route 2: Dropdown in the breadcrumb (preferred)
The current Ansys Design Library does not really support dropdowns in navigations, and I don't think we have designs in this pattern. However, an alternative solution is to have a dropdown in the breadcrumb. In addition, we need to redesign the homepages of DPF libraries so they are consistent with other library homepages.
image

One side comment:
The current search function does not seem to work well. It is unclear if there is no search result (although there are docs related to "PyDPF") or is it still searching or it is not meant to be used this way...I think we should update the search bar too. Instead of using a popup, I prefer a subtler way (see discussion). If this popup style is mandated, I think we should add some hints so the user knows what the search status is.
image

@greschd
Copy link
Member

greschd commented Sep 14, 2024

Route 1: Reorganizing the libraries.

I'm not sure there's a clean "tree hierarchy" of libraries which can be considered related.

Using the example of PyDPF Composites: it it related to PyDPF Core, but also PyACP (Composites pre-processor), and more indirectly the solvers (PyMAPDL mostly, maybe PyDyna).
But neither PyACP nor the solver libraries are "sub-libraries" of PyDPF Core.

Maybe a "see also" section somewhere (maybe at the bottom of the landing page) could serve a similar purpose?

@mia-guo-ux
Copy link

The original comment has been updated. Route 2 is my preference @Revathyvenugopal162 @greschd

@clatapie
Copy link
Contributor

clatapie commented Oct 3, 2024

Hello,

I created a few examples to visualize the dropdown button I had in mind when seeing the Vega one. I also added at the end of this comment pros and cons for this solution. I am not a UI-UX expert and would be happy having feedbacks on those propositions.

Examples

PyAnsys

pyansys_before
pyansys_after

PyAnsys Geometry

pyansys_geometry_after

PyAEDT

pyaedt_after
pyaedt_hovering

PyEDB

pyedb_after

Discussions

Pros

  • This solution could fix the home page button issue that is raised in Add home section in the navigation bar #498
  • Users would quickly know which libraries are highly related to the one they are checking.
  • It would ease navigation between the different package documentations
  • It would increase visibility on the PyAnsys dev guide which contains a lot of information, especially for new contributors.

Cons

  • This solution might imply a certain time to be developed due to the complexity of the changes. Discussions need to be handled prior to its implementation within the PyAnsys ecosystem to make sure this solution would be appreciated and adopted.

@RobPasMue
Copy link
Member

Hello,

I created a few examples to visualize the dropdown button I had in mind when seeing...

I really like this approach!

@mia-guo-ux
Copy link

mia-guo-ux commented Oct 3, 2024

@clatapie @RobPasMue
Hi Camile. This looks good! However we do not support this function in our design system. Therefore, I suggest adding the dropdown menu to the drilldown
image

@jorgepiloto jorgepiloto added ui/ux Related with UI/UX design js Requires or modifies JavaScript code css Requires or modifies cascading style sheets labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css Requires or modifies cascading style sheets js Requires or modifies JavaScript code ui/ux Related with UI/UX design
Projects
None yet
Development

No branches or pull requests

6 participants