Skip to content

Grid pages in applications (frontend) #3099

Open

Description

@enjeck

We would like for a Tables application becomes a small app of its own. It has a menu, and the menu opens pages. Each page is a grid of widgets that you can arrange. Widgets can be headings, text, and live tables or views. A data widget can only show the application’s own tables and views. Sharing the application therefore shares its pages and the data on them.

Here's what this could look like in the end:

Image

Walkthrough

Orange marks what is new. Blue marks what exists today.


The application start page looks the same as today. The only addition is the page bar under the description: “Start page”, one tab per grid page, and “Add page”:

Image

A grid page. “Overview” has a header widget, a text widget and two live tables. Milestones sits next to the text, and Tasks spans the full width underneath:

Image

Edit mode. “Edit page” turns every widget into a card you can drag and resize, each with a menu to configure or remove it. “Save” stores the whole layout at once:

Image

The widget types: a header, a text block (shown as “Description” in the menu), and a table or view:

Image

The data widget only offers the application’s own tables. The admin also owns a “Salaries” table that isn’t in this application, and it doesn’t appear in the list:

Image

Adding a page asks for a title, an emoji and a description:

Image

A user the application is shared with read-only. Bob sees the same page with live data, but has no “Add page”, no “Edit page” and no “Create row”. He didn’t need any table shared with him directly.

Image ---

Behavior

  • Only people who manage the application can add, edit or delete pages.
  • The grid has 12 columns and changes to 6 and then 1 column on narrow screens.
  • A widget shows its title when it has one.
  • If a table or view leaves the application, its widget stays on the page and asks the editor to pick another one.
  • The page bar is for designing in the Tables interface. The application menu is the navigation in the standalone app.
  • New applications get a menu item for the start page. Users can rename, move or remove it.
  • Each widget type registers its component in one place. New types need no change to the grid or the dialogs.

Activity

  1. rubenvdlinde commented on Oct 16, 2026

    @rubenvdlinde
    Contributor

    Thanks @enjeck, this reads as a clean version of what we proposed in #3075. We've discussed it with the team and we'll build on it. There are three places where it differs from our proposal, and here's what we think of each:

    Widgets in their own tables. Better than our version. tables_contexts_page_content and node_rel_id stay as they are, so existing start pages are never touched, and the query that loads applications doesn't change. The source table makes the link to the application's node a real column. We also prefer your behaviour when a table leaves the application: the widget stays and asks for a new table.

    The start page stays a list. We had the start page become a grid, so an application's start page could be its dashboard. Your schema allows widgets on any page, since widget.page_id is just a page. From our experience, builders want to customise the start page / landing page for their application, and a quick look at the App Store confirms that. So we would suggest the start page always be a grid that we autofill with a tables overview widget, but that can then be fully customised by the app developers.

    One row per setting. We'd suggest one JSON column on the widget instead. A setting is never queried on its own (at least we're not seeing that right now), and the server validates the whole set against the type's schema on save either way. Views already store filter and sort as JSON. One row per setting also means many rows for a single page read. If you prefer rows, we'll do rows, but it feels a bit too fragmented compared to how the rest of Tables is set up, and it adds unnecessary database load.

    One thing we'd like to add: a technical_name on pages, unique within the application and generated from the title when none is given. Views and columns have one for the same reasons. A re-imported scheme then finds its existing pages instead of adding them again, and a menu item or an external handler can address a page by name.

    The rest matches: the page fields, the API, read access for reading and manage access for changes, and scheme import and export through the node mapping of importContext().

  2. enjeck commented on Oct 16, 2026

    @enjeck
    ContributorAuthor

    6. We'd suggest one JSON column on the widget instead. A setting is never queried on its own (at least we're not seeing that right now), and the server validates the whole set against the type's schema on save either way. Views already store filter and sort as JSON. One row per setting also means many rows for a single page read. If you prefer rows, we'll do rows, but it feels a bit too fragmented compared to how the rest of Tables is set up, and it adds unnecessary database load.

    @blizzz can probably talk more about this, but we've had regrets in the past with using JSON? We wouldn't want to keep adding JSON just because it's what's we currently use despite the issues it brings

  3. Aveyron-RetD commented on Oct 20, 2026

    @Aveyron-RetD

    Mm should this live inside the tables app ? Could it not be more beneficial to live in the teams app via the widgets ?
    There is lot of work going inside that direction. Creating a similar interface here seems not ideal
    nextcloud/circles#2552
    nextcloud/circles#3010
    Looks like the tables app is not mentionned from this new widgets and you are creating a new layer on top of the tables app to do something similar 😕

    What is really missing in the tables app is a team filter view or content aware mechnism => With the new widget circles => An admin could create some tables like an adress book table and every team could use this table because it will be available => I could therefore admin at organisation level one table used by 100s of teams.
    See my feature request
    nextcloud/circles#2964
    #1340

  4. remko48 commented on Oct 21, 2026

    @remko48

    @enjeck At the moment the design looks like this wich is really close to your original design:

    Image Image Image Image Image Image Image
  5. Aveyron-RetD commented on Oct 21, 2026

    @Aveyron-RetD

    I have to say it looks nice 👍.
    I hope to share a constructive feedback. Keep up the good work on improving this app.
    I am not designer here but following my work on #3054 #3091 @marcoambrosini wanted more content to be displayed.
    I feel we are regressing in this output. How does this even look on mobile ?
    Looks like it will be impossible to interact with the tables unless the tables are put at the bottom of the page or they can expand to full screen on widget selection

    You should play along with my two PRs to see what i came up with #3091 and #3054. It is all AI generated but i feel it is going in the right direction and there could be ideas to be taken from there.
    I was recently thinking that I should do a new submission with taking some good ideas from both of my PR #3054 and #3094 with a carousel instead of tabs. Because you need to be able to scroll and look good on small display and tell the user that there is more table content available. I always thought as well the card display is superior to tabs because we could add after some subtle notifications.

    Another question why can a widget be not a deck board, a calendar widget or a text file ?

  6. rubenvdlinde commented on Oct 22, 2026

    @rubenvdlinde
    Contributor

    @Aveyron-RetD The route we are currently working on would allow apps to "register" widgets for tables, so anything inlcuding textfiles, deck crads, deck boards etc etc can become a widget :) We are however first setting up the widget frame work. And then start adding widgets.

    Besides being editable a gird system would provide basic support for mobile friendly design, but in the end that up to the widgets themselfs and the nextcloud vue libarry a layer lower. We are currently working on sepperate upstreams for nextcloud vue to make tables more mobile friendly in general.

    I'm going to take a look at #3091 an #3054 and see what we can integrate from there into this work, thanxs for oointing them out!

  7. blizzz commented on Oct 22, 2026

    @blizzz
    Member

    8. > 6. We'd suggest one JSON column on the widget instead. A setting is never queried on its own (at least we're not seeing that right now), and the server validates the whole set against the type's schema on save either way. Views already store filter and sort as JSON. One row per setting also means many rows for a single page read. If you prefer rows, we'll do rows, but it feels a bit too fragmented compared to how the rest of Tables is set up, and it adds unnecessary database load.

        [@blizzz](https://github.com/blizzz) can probably talk more about this, but we've had regrets in the past with using JSON? We wouldn't want to keep adding JSON just because it's what's we currently use despite the issues it brings
    

    We can store JSON in the database, but we ought not to use the JSON column type, as the usage is wildly different between database engines and it caused pain in the past. Storing JSON in a text column itself is fine. Only data that might be queried directly should be then a standalone column.

  8. jancborchardt commented on Oct 22, 2026

    @jancborchardt
    Member

    @remko48 looks very nice! :)

    Some first design feedback and questions:

    • The navigation bar could be more present and use our component as we do in the sidebar
    • What does "Overview" in the top right mean?
    • Is "Start page" a set wording? If so we should adjust it to use wording we use elsewhere, like "Home" in Talk, or "Dashboard", but not a new term
    • Minor alignment issues with the description texts below title and below navigation, should be left-aligned with the navigation and widget texts (move a bit to right)
    • "Edit page" is left-aligned on "Start page" but right-aligned on "Overview"
    • Titles of widgets often duplicate the titles in the content and thus take vertical space away, could we remove either the outside or inside title?
    • Save button: We generally try and avoid using the outdated floppy icon in favor of a single checkmark
    • Edit mode: The border-color can be toned down to var(--color-border)
    • Edit mode: When changing in and out of edit mode, there is a slight jump in the widgets which makes things look a bit unstable. It would be good if there is no jump at all, so things take the exact same space in view and edit mode (which the system already nicely seems to try and do). :)
  9. added
    design
    2. developing
    on Oct 22, 2026
  10. 5 remaining items

  11. rubenvdlinde commented on Nov 6, 2026

    @rubenvdlinde
    Contributor

    Thanks @jancborchardt, that makes sense. Everything from your list is in now:

    • Page bar: the page tabs look like the NcAppSidebar tabs: an icon above the title, the selected tab tinted and underlined.
    • "Overview": it's now "Manage application" in the actions menu next to "Edit page". That part comes with the menu PRs.
    • "Start page": it's called "Home" now.
    • Description alignment: the descriptions under the title and under the page bar line up with the widget texts.
    • "Edit page" alignment: it's on the right on every page.
    • Widget titles: a table widget shows its title once, in the widget's header. Without a title of its own it takes the name of its table or view.
    • Save button: it uses the checkmark.
    • Edit mode border: toned down to var(--color-border).
    • Jump when switching edit mode: gone. Widgets take exactly the same space in view and edit mode; a widget without a title gets its menu floating in the corner instead of an extra header.
    View Edit
    A page
    Home
    "Manage application" in the actions menu
  12. rubenvdlinde commented on Nov 10, 2026

    @rubenvdlinde
    Contributor

    Thanks @AndyScherzinger and @blizzz for the reviews of the grid pages stack. Almost everything is fixed in the PRs now and answered in the review threads. What's left are questions we'd like answered before we change more, so here they are in one place.

    Design (@enjeck)

    1. Where a data widget keeps its table or view (#3131). Today that's a separate table, tables_contexts_widget_source. Andy suggests a nullable, indexed node_rel_id column on the widget, like menu items have: fewer queries and less code, with the same checks. The schema isn't released, so now is the time to switch.
    2. Header colours (#3132). A header has a free background and text colour, so it can become unreadable, for instance when only one is set and the other comes from the viewer's theme. Options: keep both, derive black or white text from the background, or offer one choice of theme colour pair (primary, success, warning, error) that works in light, dark and high contrast themes.
    3. The generated header on the start page (#3211). A new start page gets a header with the application's name and description, which the page already shows above the page bar, so the name appears twice and the copy goes stale after a rename. Options: no generated header, or a header that shows the application's name live.
    4. What the start page shows (#3211). A table added later now gets a widget at the bottom of the start page. Should the order in the Edit application dialog arrange the start page as well, and would one tables overview widget, as we proposed in this comment, be better than one widget per table?

    For @blizzz

    1. Technical names on pages (#3131). We'd like to keep them as a readable name only: all writes go by id, imports link by exported id, and there's one read route by name. Does that work for you?
    2. Matching pages on a scheme import into an existing application (#3201). Nothing links the pages of the file to those of the application, so the start page is matched to the start page and any other page by technical name. Is that the key you'd like, or another one?
    3. Translations. May the messages of the page, widget and menu services be translated in a follow-up, so this stack doesn't grow further? There we'd also name a widget by its title or type instead of its index.

    For @AndyScherzinger

    1. Reserved names for views and columns (#3131). Reserving view_<id> and column_<id> like page_<id> changes behaviour for existing views and columns. Shall we do that in its own PR, with an issue first?

    Merge order (both)

    1. No release between feat(contexts): keep widgets in step with pages and applications #3132 and feat(pages): fill the start page of an application with widgets #3211 (#3211), so an export can't be missing the start page widgets, and feat(pages): fill the start page of an application with widgets #3211 in the same release as feat(pages): show the start page of an application as a grid page #3216, which shows them.
    2. Version bumps. Whichever of this stack and 🗃️ Make archiving tables/applications a personal option #2476 lands second bumps past what main has then, and the same goes for feat(contexts): give applications a menu with its own API #3135 and feat(pages): fill the start page of an application with widgets #3211. Our migration steps are dated after 🗃️ Make archiving tables/applications a personal option #2476's, so they sort after them either way. OK?
  13. enjeck commented on Nov 18, 2026

    @enjeck
    ContributorAuthor
    1. Where a data widget keeps its table or view

    The column is fine

    1. Header colours

    I don't have a preference, whatever you believe works best.

    1. The generated header on the start page

    No generated header seems good then

    1. What the start page shows

    One tables overview widget is cool.

  14. rubenvdlinde commented on Nov 19, 2026

    @rubenvdlinde
    Contributor

    Thanks @enjeck! All four are in the pull requests now:

    1. Data widget source: a data widget keeps its table or view in a nullable, indexed node_rel_id column on the widget (feat(contexts): data model for grid pages #3131); the separate tables_contexts_widget_source table, its entity and mapper are gone, and feat(contexts): keep widgets in step with pages and applications #3132 reads and writes the column.
    2. Header colours: a header now picks one colour pair of the theme instead of free colours: primary (the default), neutral, success, warning or error. The text uses the theme's own colours, so it stays readable in light, dark and high contrast (feat(contexts): keep widgets in step with pages and applications #3132, feat(pages): add the grid canvas and its widgets #3213).
    3. Generated header: gone. A new or migrated start page no longer gets a header that repeats the application's name (feat(pages): fill the start page of an application with widgets #3211).
    4. Start page: a new or migrated start page gets one "Tables and views" widget that shows every table and view of the application, one below the other, the way the start page did before it became a grid page. Rows stay editable there, so people who reach a table only through the application keep working as before, and a table added later shows up in it without a widget of its own. App builders can move, resize or remove it like any other widget (feat(contexts): keep widgets in step with pages and applications #3132, feat(pages): fill the start page of an application with widgets #3211, feat(pages): add the grid canvas and its widgets #3213).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    2. developingdesignskill: frontend

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions