- {/* Update summary */}
- = ({
- {updates.length} cells updated in range {rangeSummary}
- {!expanded && (
-
- {` (+${maxRow - displayMaxRow} more rows, +${uniqueCols.length - colsToShow.length} more columns)`}
-
- )}
-
-
-
);
@@ -188,7 +157,7 @@ const ToolResponse: React.FC
-
-
-
+
+
-
+
+
+
+ {Array.from({ length: displayMaxRow - displayMinRow + 1 }, (_, i) => displayMinRow + i).map(row => (
+
+
+ {row}
+
+ {colsToShow.map(col => {
+ const cellRef = `${col}${row}`;
+ const hasUpdate = updateMap.has(cellRef);
+ const cellValue = updateMap.get(cellRef) || '';
+
+ return (
+
+
+ );
+ })}
+
+ ))}
+
+
{needsExpand && (
- | - {colsToShow.map(col => ( - | - {col} - | - ))} -
|---|---|
| - {row} - | - {colsToShow.map(col => { - const cellRef = `${col}${row}`; - const hasUpdate = updateMap.has(cellRef); - const cellValue = updateMap.get(cellRef) || ''; - - return ( -
-
- {hasUpdate ? cellValue : ''}
-
- |
- );
- })}
-
| + {colsToShow.map(col => ( + | + {col} + | ))} - -
|---|
+ {hasUpdate ? cellValue : ''}
+
+
-
-
- {expanded ? "Showing all" : `+${maxRow - displayMaxRow} more rows`}
-
-
+
)}
- {renderMiniSpreadsheet(updates, spreadsheetExpanded, setSpreadsheetExpanded)}
+ {renderMiniSpreadsheet(updates)}
)}
+
# Probly
- ### AI-Powered Spreadsheet Analysis Made Simple 🚀
+ ### Data analysis with spreadsheets made simple
- [](https://discord.gg/S273ycM6zW)
+ [](https://discord.gg/S273ycM6zW)
[](LICENSE)