Skip to content

Link, links, quicklinks, tile and menu widgets #3427

Todo

Description

@rubenvdlinde

Is your feature request related to a problem? Please describe.

  • A start page is mostly a way into the rest of the application. Today the only navigation is the application menu.
Why this is needed
  • A start page is the way into an application, but today the only navigation is the application menu; a builder cannot put a tile or a quick link to a page, table or view on the page itself.
  • buildiq parity: link, links, quicklinks, tile and menu are buildiq presentational widgets (feature comparison, section 3).
  • Plan: part of the step "copy of the keep widgets", target sprint 6. The menu widget reads the menu API of feat(contexts): give applications a menu with its own API #3135 (in review, target sprint 5); visibility by group (Limit menu items, pages and widgets to groups #3444) decides which targets a viewer may open.

Describe the solution you'd like

  • Navigation widget types for grid pages: one link button, a list of links, a row of quick links with icons, a tile (an icon, a title and a link), and a menu widget that shows the application menu or a group of it on the page.
Diagram
flowchart TD
    V[viewer opens the start page] --> W{widget}
    W -- "link, links, quicklinks, tile" --> T{target}
    W -- menu --> M["menu of the application (#3135)"]
    T -- "page, table or view by slug" --> A{can the viewer open it?}
    T -- URL --> U[open the URL]
    A -- yes --> O[open inside the application]
    A -- no --> H[link not shown]
    M --> A
Loading
Acceptance Criteria
Components
  • CnLinkButtonWidget (keep, week 44): the link widget type: one button to a page, a table, a view or a URL.
  • CnLinksWidget (keep, week 44): the links widget type: a list of links.
  • CnQuicklinksWidget (keep, week 44): the quicklinks widget type: a row of links with icons.
  • CnTileWidget (keep, week 44): the tile itself: an icon, a title and a link, in theme colours.
  • CnDashTileWidget (keep, week 44): the renderer of the tile widget type around the tile, with three link kinds (another Nextcloud app, an outside URL, a page of the application). It also reads an older flat tile shape; Tables has no old tiles, so we propose to leave that branch out (new).
  • CnMenuWidget (keep, week 44): the menu widget type: the application menu or one group of it on the page, as a dropdown, a mega menu or a tree, with the current page highlighted.
  • CnMenuItemEditor (keep, week 46): the tree editor in the menu widget's form: label, link and icon per item, children up to three levels, add and remove per row.
Out of scope

Describe alternatives you've considered

Questions for maintainers

  1. What happens to a link when its target goes? Options: (a) removed from the widget in the same transaction as the delete, (b) kept and hidden when the page renders. We would go with (a), as blizzz asked on Grid pages in applications (data model and API) #3100 for dependent data.
  2. What does the menu widget show? Options: (a) one group of the menu of feat(contexts): give applications a menu with its own API #3135, chosen in its settings, (b) always the whole menu. We would go with (a), with the whole menu when no group is chosen.
  3. Which word for the page an application opens on? jancborchardt asked on Grid pages in applications (frontend) #3099 for a word Nextcloud already uses. Options: (a) "Home", as in Talk, (b) "Dashboard", (c) keep "Start page". We would go with (a) "Home": Jan named Talk as the example, and "Dashboard" is already the Nextcloud Dashboard app, so two dashboards would confuse. The slug in the code can stay dashboard (Page::START_PAGE_SLUG).

Additional context

Linking to other objects
Relevant files:
Related issues

Drafted with AI assistance from the project plan; @remko48 reviews it. Part of #3419.

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

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions