Skip to content

[Epic]: App Viewer Navigation - Configuration and Styles #17766

Closed
25 of 27 issues completed
Closed

Description

@dilippitchika

Objective

Sidebar Navigation: Users need an option to set the navigation layout to use either the sidebar or the top bar. The sidebar should be collapsible and follow the same order as the topbar

Grouped Navigation: Users should be able to group pages together under a navigation group so that they show either on expand in the sidebar or under a submenu in the topbar

Appsmith apps are scaling faster than ever with more power users building apps. The navigation must also scale and we need to provide a convenient way of managing app viewer navigation at scale.

Once we enable app viewer navigation to scale and offer our users choices which best work for them, we naturally solve a big problem for them without them having to make a lot of changes

Success Metrics

This is a platform change so the metrics here will be similar to the KPIs we are starting to capture for UI Builders pod

  1. The no. of state changes users do(for managing navigation) will go down drastically
  2. Invites to end users should increase because once user changes the nav styles they are more likely to invite more folks.

Prioritised User Stories

  • When there are a lot of pages, app devs would like to use different navigation styles so that it’s easy to browse and navigate to pages
  • When there are lot of pages, app devs would like to group pages together so that app viewers can browse more easily across navigation
  • When app devs want to visually differentiate pages, they should be able to use icons so that pages are much more easier to recall
  • When adjusting navigation settings, the developer should be able to see a preview of how their changes will look like so that they can tweak the settings before deploying the apps

Developer Handoff Document in Figma

https://www.figma.com/file/EkPT7FdqmArkk9L7mySA5S/NAV---Designs?node-id=748%3A313757

Test Plan

No response

RACI matrix

RACI
Responsible @dhruvikn
Accountable @jsartisan
Consulted @dilippitchika @andrewdietekoki
Informed @areyabhishek @Nikhil-Nandagopal @somangshu @kocharrahul7

Activity

  1. added
    EpicA zenhub epic that describes a project
    App NavigationIssues related to the topbar navigation and configuring it
    on Oct 20, 2022
  2. changed the title [-][Epic]: App viewer navigation settings[/-] [+][Epic]: App Viewer Navigation - Configuration and Styles[/+] on Dec 23, 2022
  3. added a commit that references this issue on Mar 23, 2023
  4. GreenFlux commented on Apr 9, 2023

    @GreenFlux

    @dilippitchika currently, the navigation entries are generated directly from the app's list of pages, similar to how a table widget displays columns of data. Could we add 'custom actions' to the navigation, similar to adding custom columns on a table widget?

    Use Cases:

    • Different links to the same page, with different labels and query params.
      • My Projects, All Projects
      • All Inventory, Out of stock
    • Links to actions that should be on all pages, similar to a button widget, but added to the sidebar nav.
      • EDIT PROFILE action that opens a modal
      • LOGOUT button, when using custom auth
      • SETTINGS action that opens a modal to edit preferences in the appsmith.store.
  5. dilippitchika commented on Apr 10, 2023

    @dilippitchika
    ContributorAuthor

    @GreenFlux we are not yet sure about how to achieve this yet, as the APIs we have are inside a page level but navigation is at an app level. Unless we have reusable actions, i don't think we can do this yet.

  6. Nikhil-Nandagopal commented on Apr 10, 2023

    @Nikhil-Nandagopal
    Contributor

    @dilippitchika I think this should be possible by simply allows users to add a custom URL. That URL can contain query params and the user can write code to detect onPageLoad the query param and trigger an action

  7. dilippitchika commented on Apr 10, 2023

    @dilippitchika
    ContributorAuthor

    @Nikhil-Nandagopal i didn't understand the idea. The idea i had was just for people to give the label and bind some function, we check if the function exists in the page user is currently in and if it does we run the function.

    I didn't understand the custom url solution and how it will work. I get the url has some parameters, but i didn't get how triggering the url will actually run an appsmith function.

  8. Nikhil-Nandagopal commented on Apr 10, 2023

    @Nikhil-Nandagopal
    Contributor

    @dilippitchika so the idea right now is that clicking any button should only trigger a navigation and nothing else since we can't pass custom functions yet. Once the navigation triggers and a page loads, the use can then write code to run JS on page load that reads the query params and triggers the function.
    "EDIT PROFILE": "https://app.appsmith.com/pages/edit-profile?showModal=true"

    onPageLoad: async () => {
    appsmith.URL.queryParams.showModal ? showModal('Edit Profile') : false;
    }

  9. Frederik-Levesque commented on May 4, 2023

    @Frederik-Levesque

    When a page is removed from the navigation, the navigation no longer appears on that page. It would be nice to be able to display the navigation on a page without it being visible in the navigation. These could be two distinct options.

    As for the grouped navigation feature, do you have an ETA?

  10. dilippitchika commented on May 5, 2023

    @dilippitchika
    ContributorAuthor

    When a page is removed from the navigation, the navigation no longer appears on that page. It would be nice to be able to display the navigation on a page without it being visible in the navigation. These could be two distinct options.

    @Navir-fred can you explain who uses the page and how do they access it? I want to understand more about what kind of pages are these

    As for the grouped navigation feature, do you have an ETA?

    Not yet, we are figuring out the engineering details for it

  11. 15 remaining items

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

Metadata

Metadata

Labels

App NavigationIssues related to the topbar navigation and configuring itEpicA zenhub epic that describes a projectWidgets ProductThis label groups issues related to widgets

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions