Add row visibility metadata to sheet table data#868
Merged
YusukeHirao merged 5 commits intodevfrom Mar 24, 2026
Merged
Conversation
Add Sheet.getRowMetadata() to fetch hiddenByUser/hiddenByFilter from Google Sheets API rowMetadata. Each row returned by SheetTable.getData() now includes _hiddenByUser and _hiddenByFilter boolean flags. Closes #865 https://claude.ai/code/session_01RTFQ6jWKWVC5vFUBQPoAm1
Rename _hiddenByUser/_hiddenByFilter to hiddenByUser/hiddenByFilter to match Google Sheets API property names directly. https://claude.ai/code/session_01RTFQ6jWKWVC5vFUBQPoAm1
Add unit tests covering hiddenByUser/hiddenByFilter combinations, empty rowMetadata, missing sheets data, and range parameter passing. Also improve type safety of getData() by using spread instead of Record<string, unknown>. https://claude.ai/code/session_01RTFQ6jWKWVC5vFUBQPoAm1
Document hiddenByUser/hiddenByFilter semantics and add reference link to Google Sheets API DimensionProperties. https://claude.ai/code/session_01RTFQ6jWKWVC5vFUBQPoAm1
Add documentation for HeaderCell, SheetTableOptions, SearchTableHeaders, DefineHeader, SheetTable class and its public methods, and internal helper functions (getHeaders, getClmName). Add @returns to getRowMetadata. https://claude.ai/code/session_01RTFQ6jWKWVC5vFUBQPoAm1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change adds support for retrieving and exposing row visibility metadata (hidden by user or filter) when fetching data from Google Sheets. Each row in the returned data now includes
_hiddenByUserand_hiddenByFilterboolean flags.closes: #865
Key Changes
getRowMetadata()method in Sheet class: Fetches row metadata from the Google Sheets API using grid data, extracting hidden state information for each rowSheetTable.read()to fetch row data and metadata concurrently usingPromise.all()for improved performance_hiddenByUserand_hiddenByFilterproperties alongside the regular column dataImplementation Details
getWithGridData()API call on a single column range to minimize data transferfalseif not present)https://claude.ai/code/session_01RTFQ6jWKWVC5vFUBQPoAm1