-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
In the app view, all pages should also be shown as a list on the left menu bar #813
Comments
All apps I've seen created so far by internal dogfooding are one page only. Another idea could be to optimize for this use-case and remove the concept of pages altogether. Each app would be just one single page. We could then later down the road provide multi-page organization with folders in the workspace. |
Quick experiment for what this would look like: Screen.Recording.2022-12-09.at.4.50.32.PM.mov |
This looks good, much like react admin output. We would soon have to conclude how we should show pages, like this way or retool way (page and folders, no concept of app). Until then, I think we should it. It makes the app look complete. |
I suggest we do it as it will definitely make the app look more complete. Let me know if there are any objections. |
I realised that this creates an issue about authorisation, since in this case, sharing only one page of an app with a user is not possible any more. |
If we were to add this as an option, I believe it should be configurable separately from the deployment lifecycle. e.g. somewhere under "application options", or maybe even on a per page basis. I'm also wondering:
|
Agreed, I think we must communicate clearly that one option means every page of the app is accessible to everyone with who the app is shared via URL, versus the other option allows sharing only individual pages via URL. |
These points make me think that a navigational component like tabs can handle it all, I mean even if we make 1 app=1 page, if someone would want multiple pages on header bar they can use this component. Appsmith deploys like this. Similarly, if we use drawer component, user would be able to have multiple pages on the left bar. |
As discussed here we decided to show a deployed app with all pages listed on a left drawer. And that there will be default a page. This will:
So, maybe it makes sense to not take this forward till we get further clarity. |
@prakhargupta1 I'm not sure I follow, didn't we decide to add a drawer to the left:
|
Yes we did. Cool, let's take it forward then. Just reiterating how I understood it:
|
Retool has also started supporting sidebar navigation (in addition to header navigation). Example app |
What does this mean? |
Duplicates
Latest version
Summary 💡
When previewing an app that has multiple pages, we can show a toggle asking if the pages should appear in a menu bar on the left. This is how most admin panels look.
We can also ask the developer to set one of the pages as default and show it when the app opens.
This is just one way of implementing it, we can discuss more ways like adding this menu bar as a component.
Examples 🌈
Later on:
Motivation
https://community.retool.com/t/building-side-nav-and-multiple-pages-dashboard/6219
Reference:
https://www.notion.so/mui-org/UI-layout-for-navigation-between-pages-5e69b677da7c4a469205b133c3133fa5
Benchmark
https://www.npmjs.com/package/react-pro-sidebar
High level tasks
?toolpad-display=standalone
The text was updated successfully, but these errors were encountered: