Skip to content

Commit 34582c2

Browse files
committed
add a more robust data table that allows filtering
1 parent 9fa02e5 commit 34582c2

File tree

5 files changed

+429
-27
lines changed

5 files changed

+429
-27
lines changed

data/aboutsync.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ html {
119119
cursor: pointer;
120120
}
121121

122+
.filterHeader {
123+
inline-size: 100%;
124+
padding: 4px;
125+
font-size: 14px;
126+
}
127+
122128
/* =============================================================================
123129
Panel and PanelGroup
124130
============================================================================= */

package-lock.json

Lines changed: 101 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@
2727
]
2828
},
2929
"dependencies": {
30+
"@tanstack/react-table": "^8.7.4",
3031
"classnames": "^2.2.5",
32+
"json-stringify-safe": "^5.0.1",
3133
"prop-types": "^15.6.0",
3234
"react": "^18.2.0",
35+
"react-data-grid": "^7.0.0-beta.20",
3336
"react-dom": "^18.2.0",
3437
"react-dom-factories": "^1.0.2",
3538
"react-inspector": "^6.0.1",

src/CollectionsViewer.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const { PlacesSqlView, promiseSql } = require("./PlacesSqlView");
1414
const { BookmarkValidator } = require("./bookmarkValidator");
1515

1616
const validation = require("./validation");
17+
const {default: DynamicTableView} = require("./components/DynamicTableView");
1718

1819
const { Weave } = importLocal("resource://services-sync/main.js");
1920
const { AddonValidator } = importLocal("resource://services-sync/engines/addons.js");
@@ -260,7 +261,7 @@ class CollectionViewer extends React.Component {
260261
</TabPanel>
261262

262263
<TabPanel name="Records (table)" key="records-table">
263-
<TableInspector data={this.state.records}/>
264+
<DynamicTableView data={this.state.records} />
264265
</TabPanel>
265266

266267
<TabPanel name="Records (object)" key="records-object">

0 commit comments

Comments
 (0)