Skip to content
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9d110eb
BE-705: Add a dedicated entities-table query endpoint to the Graph
TimDiekmann Jul 24, 2026
a589d02
BE-705: Clear clippy across all targets
TimDiekmann Jul 24, 2026
0e73f8a
BE-705: Drop the frontend TODO pointing at this ticket
TimDiekmann Jul 24, 2026
e3c2e68
BE-705: Separate the type selection from the excluded types and drop …
TimDiekmann Jul 25, 2026
8cfdd9f
BE-705: Derive the type universe on first pages only
TimDiekmann Jul 25, 2026
880792f
BE-705: Move the entities table view onto the table endpoint
TimDiekmann Jul 24, 2026
51ca62a
BE-705: Let the table query own its page sequence
TimDiekmann Jul 25, 2026
b2b19f4
BE-705: Stub the canvas the row generator measures column widths against
TimDiekmann Jul 25, 2026
919ebe4
BE-705: Restart the sequence on the cursor in effect, not the request…
TimDiekmann Jul 25, 2026
9a7afa1
BE-705: Keep a restart from crashing on active conversions
TimDiekmann Jul 25, 2026
71b2602
BE-705: Keep the resolved types out of the page sequence
TimDiekmann Jul 25, 2026
b7d6d84
BE-705: Answer which request each of the table query's outputs belong…
TimDiekmann Jul 25, 2026
c36e21e
Merge branch 'main' into t/be-705-entities-page-table-view
TimDiekmann Jul 30, 2026
fba4cef
BE-705: Keep the displayed types independent of the active view
TimDiekmann Jul 30, 2026
e44b01e
BE-705: Import the closed-type shape from the type system
TimDiekmann Jul 30, 2026
60e5f08
BE-705: Narrow the row type lists with atLeastOne
TimDiekmann Jul 30, 2026
d33cf4d
BE-705: Keep the table's rows and summary answering across view changes
TimDiekmann Jul 30, 2026
9014dfa
BE-705: Narrow the view-selection fix to the two reported defects
TimDiekmann Jul 30, 2026
4b0412e
BE-705: Keep the held rows and the scope summary across view changes
TimDiekmann Jul 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions apps/hash-frontend/src/components/grid/grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react";

import { gridRowHeight } from "@local/hash-isomorphic-utils/data-grid";

import { getCellHorizontalPadding } from "./utils";
import { getCellHorizontalPadding, gridHeaderBaseFont } from "./utils";
import { ColumnFilterMenu } from "./utils/column-filter-menu";
import {
ConversionMenu,
Expand Down Expand Up @@ -136,8 +136,6 @@ const gridHeaderHeight = 42;

export const gridHeaderHeightWithBorder = gridHeaderHeight + 1;

export const gridHeaderBaseFont = "600 14px Inter";

export const gridHorizontalScrollbarHeight = 17;

export const Grid = <
Expand Down
3 changes: 3 additions & 0 deletions apps/hash-frontend/src/components/grid/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { getMiddleCenterBias, GridCellKind } from "@glideapps/glide-data-grid";

import type { CustomCell, DrawArgs, Theme } from "@glideapps/glide-data-grid";

/** The font a grid draws its column headers in. */
export const gridHeaderBaseFont = "600 14px Inter";

/**
* @returns vertical center of a grid cell, relative to the visible grid area
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export const summarizeEntitiesQuery = gql`
}
`;

export const queryEntitiesTableQuery = gql`
query queryEntitiesTable($request: QueryEntitiesTableParams!) {
queryEntitiesTable(request: $request)
}
`;

export const updateEntityMutation = gql`
mutation updateEntity($entityUpdate: EntityUpdateDefinition!) {
# This is a scalar, which has no selection.
Expand Down
9 changes: 8 additions & 1 deletion apps/hash-frontend/src/pages/entities.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ const EntitiesPage: NextPageWithLayout = () => {
return {};
}, [router]);

// A stable identity β€” the column list feeds the table query hook's
// processing effect, which a fresh array on every render would re-run.
const hideColumns = useMemo(
() => (entityTypeId ? ["entityTypes" as const] : []),
[entityTypeId],
);

const { latestEntityTypes } = useLatestEntityTypesOptional({
includeArchived: true,
});
Expand Down Expand Up @@ -345,7 +352,7 @@ const EntitiesPage: NextPageWithLayout = () => {
<EntitiesVisualizer
entityTypeBaseUrl={entityTypeBaseUrl}
entityTypeId={entityTypeId}
hideColumns={entityTypeId ? ["entityTypes"] : []}
hideColumns={hideColumns}
/>
</Container>
</>
Expand Down
Loading
Loading