All posts
Published at Mon Feb 06 2023 in
Rows HQ

2023 W5: Spreadsheet Grids and.. friendly business

Humberto
Humberto
The Grid

Every week I post about one thing that happened at Rows. We're building in public!

---

We are in the middle of upgrading our spreadsheet, and the first of 5 announcements is out. Because of this large upgrade, this past week our team spent some time testing our Grid. Spreadsheets tables look simple, but there's *a lot* to know about the grids that power them, and so I'd love to share a bit of how we discuss Grids!

This post is almost like a double issue, because on top of 1 major thing there was also a smaller thing that I will briefly mention. This second topic was a surprise message by a user late Friday.

-

Spreadsheet Grids

If there's one thing every spreadsheet has, is a grid. Wether they're small tables or gigantic spreads, The Grid is the fundamental building block for models, calculators, tabular data, logs and more.

So, what's in a grid? In our multi-year journey, we have gotten to know them inside and out, and we produced a map for talking about Grid challenges. If you're considering developing a project that is close to a spreadsheet or will have lots of tables, read on and beware! It's not for the faint of heart!!

Here's the issue tree that I use to review changes related to our Grid.

  1. Grid dimensions and structure

    1. How many rows and cols do you want to support?

    2. What's the width and height of each column/row?

    3. How do you show rulers? Are they always visible? Where do you display controls for selecting and re-ordering?

    4. What are the styles of the grid? Can you color cells, hide grid lines? What else?

    5. How does the size of columns and rows respond to changing sizes of cell content? Is it automatic? What is the default?

  2. Cells

    1. What kinds of content will you have inside the cells? Text, numbers, links, html, markdown? Do you support images? Files? Data structures?

    2. What are the styles that cell contents will have? Can you bold Text, pick a font, can you align text horizontally and vertically, can you color it? How does text wrapping work?

    3. Will you support cell tooltips for status information and cell helpers for quick actions?

    4. Is there data verification for cells, and do you enforce it (e.g. must be number)?

    5. Do you need to support formulas? Will formulas be cell-based, column-based, or both? How will you handle loading states while computation is working? Note: all of this dependes on how powerful the formulas are, which is not strictly a table topic; but computations influence the development of tables, for example if you want to allow computations to have side-effects and automations.

  3. Filter and Sort

    1. Do you allow filtering and sorting data in the grid? What conditions are available?

    2. Is filtering shared between users or is it per user? Is it persisted or per session?

    3. Is sorting permanent? Can you sort based on particular columns?

    4. Do filters and sorts auto-update when there's new data or changes in the data in the table?

    5. Do filters and sorts apply to the table as a whole, or do they work within sections of the grid too?

  4. Basic Behaviors

    1. Is your table WYSIWYG (what you see is what you get), that is, you edit and share exactly the same thing? Do you hide part of it?

    2. How do you add, remove and move new rows and columns?

    3. Do you have freeze panes, and how do they work?

  5. Selecting

    1. Do you select cells (spreadsheets) or content (text inside the cell, like an HTML page)? Can you make multiple selections?

    2. Can you cut and copy-paste cells inside and outside your application? How will you handle multi-media and other types of data when copy-pasting and the data that is on the clipboard?

  6. Scrolling.

    1. Does scrolling work in a pixel-based fashion, or row/col fashion? (per pixel or per row/col)?

    2. Do pages with multiple objects behave like a canvas (like Figma or Miro) or like individual objects (like Notion)? That is, on a page context, do you have a global vertical scroll, or one scroll per element (kind of like an iframe)? What about for horizontal scrolls?

    3. Does scroll happen one direction at time (vertical or horizontal) or does it work simultaneously (that is, diagonal scrolls work)?

    4. Should you keep the scrolling speed equal for both directions, or should you do smart scrolling?

    5. Do table titles and grid rulers float above the table, or not?

    6. Do you use inertial scrolling and allow rubber-banding of scroll movements, like modern Operating Systems do, or not?

  7. Responsiveness

    1. How should a grid render on mobile? Is it a WYSIWYG with the desktop version, do you scale everything down or let the browser handle it?

    2. Should row and column size be responsive on mobile?

    3. Should freeze panes work on mobile? How should they work in the context of a constrained space?

  8. Technical

    1. What is the architecture for your grid component? What technologies will you use?

    2. How do you sync data to the grid, is it streamed? How do you optimize the loading data for the effective viewable space?

    3. How will you handle interactions with the grid?

As you have noticed, the list is long, and I have really just focused on the most interesting problems that require team decisions.

If your needs for tables and grids is simple, you should stick to HTML and standard components. But as your need expands to millions of data points, and a custom application, you probably need to go custom!

-

One more thing.

Late on Friday I received a WhatsApp audio message from a user who runs a marketing agency. He's found a bunch of nice use cases for Rows, and was sending me an update: one of their client organizations is fully converted, another one is half-way through, and there's 2 more leads he's working on who might have a fit.

We are not directly connected to this agency, we don't have a revenue share model or anything; we're also not a huge part of their business and the reverse is also true.

He just did an excellent job on keeping us updated and excited. This is infrequent but not unique.

In the middle of the COVID pandemic, one of our investors flew in to Porto to have a lunch with me and do a regular status check. We had no urgent decisions or fires that had to be put out. He could have called or texted (as he also does). But he took the time to come over and see how we were doing.

This is how you motivate people. This is how we should all operate our businesses.

See you next week!

- Humberto