Skip to content

Commit

Permalink
get ready for first 100 rows
Browse files Browse the repository at this point in the history
  • Loading branch information
jzhang621 committed Nov 30, 2024
1 parent 702e43f commit 4c4fa9c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion web/src/pages/FullScreenExplore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ function Explore() {
[dataset, datasetId]
);

// ====================================================================================================
// Default rows logic.
// ====================================================================================================
// Contains state for the default rows that are shown in the table when the page loads.
// These are the rows that are shown when there are no filters active.
// ====================================================================================================
const [page, setPage] = useState(0);

const PER_PAGE = 100;

const [defaultIndices, setDefaultIndices] = useState([]);

// ====================================================================================================
// Scatterplot related logic
// ====================================================================================================
Expand Down Expand Up @@ -197,7 +209,7 @@ function Explore() {
setFilteredIndices(selectedIndices);
};

const [filteredIndices, setFilteredIndices] = useState([]);
const [filteredIndices, setFilteredIndices] = useState(defaultIndices);

// ====================================================================================================
// NN Search
Expand Down Expand Up @@ -431,6 +443,7 @@ function Explore() {
selectedIndices,
filteredIndices,
columnFilterIndices,
defaultRows: defaultIndices,
});

if (!dataset)
Expand Down

0 comments on commit 4c4fa9c

Please sign in to comment.