Skip to content

Commit da086ec

Browse files
authored
Merge pull request #633 from ThatCodeBabe/feat/611-universal-data-grid
Feat/611 universal data grid
2 parents 810b5df + 65df2a4 commit da086ec

9 files changed

Lines changed: 683 additions & 7 deletions

File tree

app/frontend/app/demo/page.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import MultiSourceDataAggregator from '../../components/MultiSourceDataAggregato
55
import SessionTimeoutManager from '../../components/SessionTimeoutManager';
66
import { DIDCredentialCard } from '../../components/ui/molecules';
77
import ConferenceFloorMap from '../../components/ConferenceFloorMap';
8+
import UniversalDataGrid, { DEFAULT_ATTENDEES, ATTENDEE_COLUMNS } from '../../components/UniversalDataGrid';
89

910
// Demo page for testing both components
1011
const ComponentDemoPage: React.FC = () => {
@@ -117,6 +118,21 @@ const ComponentDemoPage: React.FC = () => {
117118
/>
118119
</section>
119120

121+
{/* UniversalDataGrid Demo */}
122+
<section>
123+
<h2 className="text-2xl font-semibold text-gray-800 mb-4">
124+
UniversalDataGrid Demo
125+
</h2>
126+
<p className="text-sm text-gray-600 mb-4">
127+
5,000 virtualized rows. Click a header to sort, type in a column filter, use the pin icon to stick a column left/right, and use Export CSV. Arrow keys navigate cells; Enter/Space sorts a focused header.
128+
</p>
129+
<UniversalDataGrid
130+
data={DEFAULT_ATTENDEES}
131+
columns={ATTENDEE_COLUMNS}
132+
getRowId={(row) => row.id}
133+
/>
134+
</section>
135+
120136
{/* MultiSourceDataAggregator Demo */}
121137
<section>
122138
<h2 className="text-2xl font-semibold text-gray-800 mb-4">

0 commit comments

Comments
 (0)