@@ -81,7 +81,7 @@ function formatTableData(nodes, setRootNodeId, isSmallScreen = false) {
8181 newRow [ "" ] = (
8282 < button
8383 onClick = { ( ) => setRootNodeId ( row . uuid ) }
84- className = "px-2 py-1 rounded bg-indigo-600 text-white hover:bg-indigo -700 transition"
84+ className = "px-2 py-1 rounded bg-theme-500 text-white hover:bg-theme -700 transition"
8585 >
8686 View
8787 </ button >
@@ -181,13 +181,13 @@ export default function GroupsViewer({ restApiUrl, setRootNodeId }) {
181181 return (
182182 < div className = "flex flex-col md:flex-row gap-4 overflow-auto w-full items-start" >
183183 { /* Left panel */ }
184- < div className = "min-w-[250px] max-w-[400px] flex-shrink-0 bg-slate -50 p-2 px-3 rounded" >
184+ < div className = "min-w-[250px] max-w-[400px] flex-shrink-0 bg-theme -50 p-2 px-3 rounded" >
185185 { /* Top header + button */ }
186- < div className = "flex justify-between items-center mb-2" >
186+ < div className = "flex gap-4 items-center mb-2" >
187187 < h4 className = "font-medium mt-2" > Filter by Node Types</ h4 >
188188 < button
189189 onClick = { ( ) => fetchNodes ( 0 ) }
190- className = "px-3 py-1 rounded bg-indigo-700 text-white hover:bg-indigo-800 transition"
190+ className = "px-3 py-1 rounded bg-theme-500 text-white hover:bg-theme-700 transition"
191191 >
192192 Apply
193193 </ button >
@@ -230,7 +230,7 @@ export default function GroupsViewer({ restApiUrl, setRootNodeId }) {
230230 { tableData . length > 0 && (
231231 < button
232232 onClick = { ( ) => fetchNodes ( offset ) }
233- className = "px-3 py-1 rounded bg-gray-700 text-white hover:bg-gray-800 transition"
233+ className = "px-3 py-1 rounded bg-theme-500 text-white hover:bg-theme-700 transition"
234234 >
235235 Load next 200
236236 </ button >
@@ -244,11 +244,11 @@ export default function GroupsViewer({ restApiUrl, setRootNodeId }) {
244244 value = { searchNode }
245245 onChange = { ( e ) => setSearchNode ( e . target . value ) }
246246 placeholder = "Navigate to a UUID"
247- className = "border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo -700 rounded px-1 py-1"
247+ className = "border border-gray-300 focus:outline-none focus:ring-2 focus:ring-theme -700 rounded px-1 py-1"
248248 />
249249 < button
250250 onClick = { handleNodeSearch }
251- className = "px-1 py-0.5 md:px-2 rounded bg-indigo-600 text-white hover:bg-indigo -700 transition"
251+ className = "px-1 py-0.5 md:px-2 rounded bg-theme-500 text-white hover:bg-theme -700 transition"
252252 >
253253 Go
254254 </ button >
@@ -271,7 +271,7 @@ export default function GroupsViewer({ restApiUrl, setRootNodeId }) {
271271 < DataTable
272272 columns = { columnsToRender }
273273 data = { tableData }
274- sortableCols = { columnsToRender }
274+ sortableCols = { [ "Unique ID" , "Label" , "Type" , "Created" , "Modified" ] }
275275 renderIfMissing
276276 breakableCols = { [
277277 "Unique ID" ,
0 commit comments