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

Implement activity-toolbar story #768

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wadjih-bencheikh18
Copy link
Member

@wadjih-bencheikh18 wadjih-bencheikh18 commented Oct 14, 2024

@wadjih-bencheikh18 wadjih-bencheikh18 linked an issue Oct 14, 2024 that may be closed by this pull request
Copy link

cloudflare-workers-and-pages bot commented Oct 14, 2024

Deploying react-science with  Cloudflare Pages  Cloudflare Pages

Latest commit: bbf710a
Status: ✅  Deploy successful!
Preview URL: https://4d2abf67.react-science.pages.dev
Branch Preview URL: https://767-implement-the-activity-t.react-science.pages.dev

View logs

@lpatiny
Copy link
Contributor

lpatiny commented Oct 15, 2024

I like the functionality and that the panels fully disappear when no panel is open.

Not sure if it is now it should be implemented and @stropitek should decide. Here are my thoughts and probably we should create new issues:

  • For the split panel could you take care that in the demo it closes to the right and not to the left ? I would like how it collapse. One of the current issue is that nobody sees that the panels are collapsed and that there is a way to open them. I think that if they are collapse a click on the new toolbar should always open the panels if it is not open, activate the panel if it is not activate butnot desactivate a panel if it is active.
  • We we add in the header of the panels a 'close' icon.
  • Are we able to save the status, which panel are open / close ?
  • Could we think about reordering the panels and save the new order. Header of panels could be draggable.
  • I would like to see this new feature implemented in the demo application

@stropitek
Copy link
Contributor

  • For the split panel could you take care that in the demo it closes to the right and not to the left ?

I agree with that.

  • Are we able to save the status, which panel are open / close ?

The goal of this PR is to:

  • Experiment with the user experience for those "activities", and see where we want to go.
  • See if anything is missing from the building block components in react-science to achieve what we want.

Saving the opened / closed panels is related to the state and will be handled in the final application, not in react-science.

  • We we add in the header of the panels a 'close' icon

Yes

  • Could we think about reordering the panels and save the new order. Header of panels could be draggable.

Not in scope, maybe in the future (let's focus on more fundamental questions first).

  • I would like to see this new feature implemented in the demo application

With @targos we think that the demo app should be removed ultimately and we should only keep stories. We see react-science as a collection of small components to build complex applications, not large and complex components to "easily" build an app.

#767 (comment)

In majority of apps, they dont use these sides icon to add accordions (each icon is an accordion) because technically the height can support more closed accordions then icons before the need of scroll.

But this kind of side icons is used to group accordions

Icon1 -> open a group of accordions
Icon2 -> open diffrent group of accordions ...

Example: Vs code

I do agree with that. I think if we can move away from accordions and instead have 1 to 2 activities speparated by a split slider that would be great. We don't need 2 ways to hide the same content, 1 is enough. @wadjih-bencheikh18 I got inspired by Webstorm, which does things slightly differently to VS code:

CleanShot 2024-10-15 at 10 02 59

@wadjih-bencheikh18 I will discuss this with @lpatiny and @targos and come back to you with more specific instructions.

@stropitek
Copy link
Contributor

Here is what we decided:

  • Each activity in the right part of the SplitPane should no longer be an Accordion. It should be a similar header without the possibility to show / hide the content.
  • There should be an action to hide that activity in the header (similar to clicking on an active item in the activity bar)
  • Double click the split pane slider should close the part on the right, not the part on the left.

Please wait for #776 to be merged and use the ActivityBar component to go on with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the "Activity toolbar" layout in a story
3 participants