@gen3/frontend 0.11.14 → 0.11.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -5634,8 +5634,19 @@ const ProtectedContent = ({ children, referer })=>{
5634
5634
  onUnauthenticated();
5635
5635
  }, 2000);
5636
5636
  };
5637
+ const [stableStatus, setStableStatus] = React.useState();
5637
5638
  const { status, pending } = useSession(true, delayRedirect);
5638
- if (status !== 'issued') {
5639
+ React.useEffect(()=>{
5640
+ if (!pending && stableStatus !== status) {
5641
+ // only update stableStatus if session is not pending
5642
+ // this prevents flickering of the status
5643
+ setStableStatus(status);
5644
+ }
5645
+ }, [
5646
+ status,
5647
+ pending
5648
+ ]);
5649
+ if (stableStatus !== 'issued') {
5639
5650
  // not logged in
5640
5651
  if (pending) return /*#__PURE__*/ jsxRuntime.jsx("div", {
5641
5652
  className: "flex justify-center w-full mt-10",
@@ -23642,15 +23653,16 @@ const SelectedItemsTable = ({ validatedItems, rowSelection, setRowSelection, siz
23642
23653
  const table = mantineReactTable.useMantineReactTable({
23643
23654
  columns,
23644
23655
  data: tableRows.rows,
23645
- enableColumnResizing: false,
23646
23656
  icons: TableIcons,
23647
23657
  enableTopToolbar: false,
23648
23658
  enableRowSelection: true,
23649
23659
  enableBottomToolbar: tableRows.rows.length > 10,
23650
23660
  enablePagination: tableRows.rows.length > 10,
23651
23661
  enableRowActions: false,
23652
- enableStickyFooter: true,
23662
+ enableColumnResizing: true,
23663
+ enableGrouping: true,
23653
23664
  enableStickyHeader: true,
23665
+ enableStickyFooter: true,
23654
23666
  enableHiding: true,
23655
23667
  onRowSelectionChange: handleRowSelectionChange,
23656
23668
  state: {
@@ -23658,6 +23670,9 @@ const SelectedItemsTable = ({ validatedItems, rowSelection, setRowSelection, siz
23658
23670
  },
23659
23671
  initialState: {
23660
23672
  density: 'xs',
23673
+ grouping: [
23674
+ 'datasetId'
23675
+ ],
23661
23676
  columnPinning: {
23662
23677
  left: [
23663
23678
  'mrt-row-select',