Google Sheets inventory app for a café reorder list
Open the original 12-row spreadsheet for fictional Alder Street Coffee, then try the published read-only app. The worksheet calculates stock status and order quantity. The app gives the next shift a buying list grouped by supplier.
Check the source against the published app
- Open Inventory and find PCK-001 on row 8. The spreadsheet shows 4 sleeves on hand, a reorder point of 8, a target of 26, and 2 on order.
- Open the published inventory app. In Reorder List, choose Union Paper Supply.
- Check the two visible rows. PCK-001 shows 20 sleeves and PCK-003 shows 12 sleeves. Neither recommendation places an order.
- If Load more rows appears, select it to check for additional records. The supplier filter stays selected. Compare the SKU lists before relying on the counts for a handoff.
- Open All Inventory and search for ING-002. Cocoa Powder has a missing count and appears as Needs count, with no suggested quantity.
Check which SKUs reached the app
Open All Inventory with the search and supplier filters cleared. Compare the SKU on each item card with cells A2:A13 in the source workbook. On November 26, 2026, we found the same 12 distinct SKUs at phone and desktop widths. All 12 were already present while Load more rows was visible. Clicking it left the same 12 SKUs.
Search for BEAN-003 in All Inventory. The demo shows one match, Decaf Espresso. Clear the search and open Reorder List. The five SKUs should be BEAN-001, BEAN-003, ING-001, PCK-001, and PCK-003. Compare them with the rows whose Stock Status is Reorder in the source workbook.
When you rebuild the app with another sheet, compare identifiers as well as the total. A missing SKU and a duplicate can give the same count. After the IDs match, check their supplier assignments. If you export to Excel, you can also test the import range before expecting the app to show the full list.
Check which supplier each reorder goes to
In the published app, PCK-001 appears under Union Paper Supply with 20 sleeves to reorder. To test whether a migration can send the same recommendation to the wrong supplier, swap only two supplier values in a copy.
| SKU | Original supplier | Supplier in the test copy | Suggested order |
|---|---|---|---|
| MLK-001 | Brookfield Dairy Supply | Union Paper Supply | 0 cartons |
| PCK-001 | Union Paper Supply | Brookfield Dairy Supply | 20 sleeves |
Both versions had 12 distinct SKUs, four valid suppliers, and three rows per supplier. The stock-status counts and recommended quantities by unit matched. The test copy still directed the 20 sleeves of cold cups to the dairy supplier. Python and a SQLite join on SKU both found the two changed assignments.
Download the original inventory workbook and the supplier check script into the same folder. The script makes the swap in memory. It reads the original workbook without writing to the sheet or app.
python3 -m pip install openpyxl==3.1.5
python3 check_supplier_assignments.py alder-street-coffee-inventory.xlsxRun the source-to-app check in Chrome
We used Codex to build a Playwright check that reads the published workbook and opens the real read-only café app in two fresh Chrome sessions. It compares the 12 inventory SKUs and the five reorder SKUs, then matches each supplier’s reorder list against the source. It also checks that ING-002 still shows Needs count with no suggested order. The check never edits the app or the spreadsheet.
Save the source workbook and browser check in one folder. With Node.js 24 and Google Chrome installed, run these commands in that folder:
npm install playwright@1.62.1 https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz
node verify-reorder-app.mjsEach result lists the viewport width and the SKU list for every supplier on the reorder screen. To see an assertion fail, swap the suppliers of PCK-001 and BEAN-002 in a workbook copy. Run node verify-reorder-app.mjs swapped.xlsx. The inventory and reorder totals stay the same, but the supplier check identifies the SKU in the wrong list.
Check whether Apple Numbers recalculates the imported formulas
On November 30, 2026, we opened the sample XLSX in Apple Numbers 15.2.1 on macOS. Cells J8 and K8 still contained formulas. We changed only F8 (On Hand) on the Inventory tab for PCK-001, with its reorder point of 8, target of 26, and 2 already on order.
| On hand (F8) | Stock status (J8) | Suggested order (K8) |
|---|---|---|
| 4 (original) | Reorder | 20 |
| 5 | Reorder | 19 |
| 8 | Covered by PO | 0 |
| 9 | OK | 0 |
To repeat the check, open the workbook in Numbers, select Inventory, and enter 5, 8, then 9 in F8. At 8, the 2 sleeves on order put expected stock above the reorder point. At 9, stock on hand alone clears it. In the published read-only app, choose Union Paper Supply in Reorder List to see the original recommendation of 20 sleeves. The edits in Numbers were local to the imported copy. Spreadsheet to App ran this test with Codex on fictional inventory.
Check which rows a read-only Excel import can see
The Excel download contains 12 SKUs under an 11-column header. We tested it and two copies with openpyxl 3.1.5 in read-only mode. Each copy adds one range declaration to the worksheet XML and keeps the cell data identical.
| Declared range | Default read | After resetting dimensions |
|---|---|---|
| Absent in original | 12 SKUs | 12 SKUs |
| A1:K13 | 12 SKUs | 12 SKUs |
| A1:A1 (deliberately narrow) | 0 SKUs | 12 SKUs |
The narrow copy returned only the SKU header and completed without an error. Calling reset_dimensions() before iterating recovered every expected SKU. Use stable record keys to verify a successful import. openpyxl read-only documentation
Download the original inventory workbook and the Python script to the same folder. The script checks the workbook hash, makes its copies in a temporary folder, and compares the 12 exact IDs.
python3 -m pip install openpyxl==3.1.5
python3 measure.py alder-street-coffee-inventory.xlsxDownload the openpyxl results (JSON)
Repeat the check with pandas
Both pandas 2.3.3 engines returned all 12 SKUs and 11 columns in all three files. The pandas openpyxl adapter resets dimensions before iterating a read-only sheet. pandas source
Add the pandas script to the same folder. Use the existing measure.py and the original workbook with it.
python3 -m pip install pandas==2.3.3 python-calamine==0.4.0
python3 compare_pandas.py alder-street-coffee-inventory.xlsxRepeat the check with Polars
We read the Inventory tab with Polars 2.2.0 using its calamine, openpyxl, and xlsx2csv engines. All nine reads returned the same 12 SKU IDs and 11 columns, including the three reads of the A1:A1 copy. These are results for the workbook and versions below. The direct openpyxl read above uses read-only mode.
Save the Polars script beside measure.py and the original workbook. The script checks the exact IDs for each engine and file.
python3 -m pip install polars==2.2.0 fastexcel==0.21.0 openpyxl==3.1.5 xlsx2csv==0.8.7
python3 compare_polars.py alder-street-coffee-inventory.xlsxDownload the Polars results (JSON) or check the IDs in the demo app.
What the original sheet contains
The Inventory tab has one header row and one item per SKU. Columns A–E identify the item, category, supplier, and unit. Columns F–I contain On Hand, Reorder Point, Target Stock, and On Order. Columns J–K contain Stock Status and Suggested Order, with formulas stored in the original cells.
At or below the reorder point, the status is Reorder if on-hand stock plus outstanding orders still leaves the item at or below the threshold. The suggested order then subtracts stock on hand and already on order from target stock, with a minimum of zero. A blank count produces Needs count. A target at or below the reorder point produces Check inputs.
| SKU | Source check | Published result |
|---|---|---|
| PCK-001 | 4 + 2 stays below 8. 26 − 4 − 2 = 20. | Reorder · 20 sleeves |
| PCK-003 | 8 + 0 equals 8. 20 − 8 = 12. | Reorder · 12 sleeves |
| MLK-001 | 4 + 8 exceeds the threshold of 8. | Covered by PO · 0 cartons |
| ING-002 | On Hand is blank. | Needs count · no quantity |
| CLN-001 | Target 4 is below the reorder point of 5. | Check inputs · no quantity |
Rebuild it from the original spreadsheet
- Open the source and use File → Make a copy in your own Google Drive. Keep the Inventory tab and the formulas in columns J and K.
- Start a Google Sheets to app build with the copied sheet URL. Sign in, connect Google, and select your copy.
- Describe the two views with the prompt below. In Studio, review the generated interface, code, and data settings. Choose the Inventory tab and approve read access for the needed fields.
- In the private preview, repeat the supplier, missing count, and boundary checks. Publish a read-only view for fictional or intentionally shareable data. Open it in a signed-out browser to verify what a visitor can see.
Build a phone-friendly, read-only inventory app over the Inventory worksheet, columns A–K. Make Reorder List the first view. Show only rows whose Stock Status is Reorder, group by Supplier, and display SKU, Product, Suggested Order, and Unit. Add a supplier filter and a searchable All Inventory view. Display Stock Status and Suggested Order from the sheet. Show the loaded range and mark counts as provisional while more rows are available. Refresh reads only.The original sheet remains useful for entering stock counts and reviewing formulas. The app focuses on looking up items and reading the next order list. If the work requires only one person already comfortable in Sheets, a saved filter may cover it. For a view that changes counts, test a disposable edit in a private copy before sharing it with coworkers.
Questions from the Show HN discussion
Does the spreadsheet need a particular format?
Use a header row, a stable identifier, and consistent column types. A predictable source makes it easier to verify the generated interface. Original formatting question
How should I handle numbers and text in my columns?
Keep codes as text so 001 and 1 can identify different records. Check quantities separately. In this inventory workbook, nonnumeric stock values and invalid targets get a Check inputs status. Use the three-row import exercise to see how automatic typing changes IDs. Original question about mixed column types
Where do the existing formulas run?
In this build, Stock Status and Suggested Order calculate in Google Sheets. The browser reads those outputs. Keeping the calculation in the spreadsheet lets a teammate verify an order without opening the app. Original formula question
What we verified
The Spreadsheet to App team checked the linked sheet values and formulas and opened the published app in a signed-out Chromium browser on November 25, 2026. The sheet and hosted app returned the outcomes above. The app started with rows 1–201 and expanded to 1–1000. Those numbers are worksheet addresses. The sample has 12 inventory records.
For an editable, four-row exercise that resets on reload, try the spreadsheet inventory demo. The spreadsheet app examples include service requests and sales pipeline changes.