Skip to content

#grid [2/4] Show projected fields and let users copy cell values in Table view #1103

Done

Description

Scope: Build on #1101 so users can narrow the grid to the fields they want to compare and copy an identifier without switching to JSON view.

Acceptance criteria

  • When a query uses a projection, show the fields in the projected result. Remove stale columns from previous queries, respect explicit exclusions such as _id: 0, and restore normal column discovery when the projection is cleared.
  • Account for fields present in some returned documents but missing in others. An empty projected result must not leave the previous result’s columns visible.
  • Provide Copy Cell Value through a context-menu action and a keyboard shortcut when a cell is focused. Copy the full value, not truncated display text, and keep it distinct from copying the entire document.

Depends on #1101. Related: #263 and #81.

Activity

  1. changed the title [-]Show projected fields and let users copy cell values in Table view[/-] [+]#grid [2/4] Show projected fields and let users copy cell values in Table view[/+] on Dec 1, 2026
  2. tnaum-ms commented on Dec 1, 2026

    @tnaum-ms
    CollaboratorAuthor

    Clipboard step 2/4, after #1101; before #1158 and #1160. The current keyboard shortcut already copies a scalar's entire display string, even when CSS ellipsizes it. An object copies its bounded preview and an array its count; that is not the full underlying value. Provide a real native Copy Cell Value action plus keyboard access. Resolve the value from the matching executed page/row/path, even for projected rows without an actionable _id; do not parse previews or target a document by position in a new result. Keep ordinary display Copy usable and retain the desktop body-targeted Copy path.

    The Table still takes headers from the accumulated collection SchemaStore and always prepends _id. Test a projected result after a wider previous query, explicit _id: 0, heterogeneous rows, an empty projected result, and clearing projection. Do not clear the shared completion schema to fix visible columns. Layout-only hiding (#1156) is not query projection. #81/#134 removed an inert menu; only enable functional native commands in the intended grid context. Rectangles/TSV and additional typed formats are owned by #1158/#1160, not this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions