File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/components/MigrationDetails Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,10 @@ function Table({ details }) {
206
206
const rows = ORDERED . reduce ( ( rows , [ status ] ) => (
207
207
filters [ status ] ? rows :
208
208
rows . concat ( ( details [ status ] ) . map ( name => ( [ name , status ] ) ) )
209
- ) , [ ] ) ;
209
+ ) , [ ] ) . sort ( ( a , b ) => (
210
+ ORDERED . findIndex ( x => x [ 0 ] == a [ 1 ] ) - ORDERED . findIndex ( x => x [ 0 ] == b [ 1 ] )
211
+ || a [ 0 ] . localeCompare ( b [ 0 ] ) )
212
+ ) ;
210
213
return (
211
214
< >
212
215
< Filters
@@ -219,6 +222,7 @@ function Table({ details }) {
219
222
< tr >
220
223
< th style = { { width : 200 } } > Name</ th >
221
224
< th style = { { width : 115 } } > PRs made</ th >
225
+ < th style = { { width : 90 } } > # children</ th >
222
226
< th style = { { flex : 1 } } > Immediate Children</ th >
223
227
</ tr >
224
228
</ thead >
@@ -253,6 +257,7 @@ function Row({ children }) {
253
257
) }
254
258
</ td >
255
259
< td > { TITLES [ status ] } </ td >
260
+ < td style = { { textAlign : "center" } } > { immediate . length || null } </ td >
256
261
< td >
257
262
{ immediate . map ( ( name , index ) => ( < React . Fragment key = { index } >
258
263
< span
You can’t perform that action at this time.
0 commit comments