Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Records Page to React #10623
base: main
Are you sure you want to change the base?
Migrate Records Page to React #10623
Changes from all commits
bb687c0
a3195c1
d781932
bd3ca24
7625d3f
7d12e2e
743750d
c4b7cf5
e349987
85db683
d47e8ba
b3bf9d2
a577979
f98cedc
ae217b4
cbd107c
f7ce2ba
525da5a
7cabe81
9c9fa3c
91848c1
a919edc
de9b8ae
9ad4b6b
4f1f346
bfa5c44
ab22328
898b49a
50ac182
f345a18
a55c885
230480d
b39295c
69a8546
ce63f1b
dc4fa9c
3cf7223
348f6e6
2914644
b60f906
a11bda1
7ae9c73
ad8b79e
d8b0cc4
0e18de3
7ebbca1
9717007
e326553
a51dfca
92ae2be
7470bf8
d32318a
6577a27
61ca071
2f9238f
257645a
335bb2a
735424e
30c532c
e9aebc9
2dd74f7
5372707
f2ced0c
e299904
b18d903
618d7bf
ae8dafc
ea8afcb
72bf966
aa0d240
4bbe0a4
3dfb4f0
3da44c5
e5f0a6a
645ca87
b435069
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wondering how this was going to work - and seems the answer is 'not well'.
I also thought this was some kind of exception for mbf for a long time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm... I could play around with trying to align it using a sub-header, but if the answer is not forthcoming after ~30 minutes I will just let it be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, it is easy to specify but cumbersome to style. If you have a definition similar to
then Tanstack pushes the competition name and person name header down to be on the same level as the header for
![image](https://private-user-images.githubusercontent.com/6136469/410355657-b0d1780b-5932-4318-80bd-6b2201d21217.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzYyNzYsIm5iZiI6MTczOTMzNTk3NiwicGF0aCI6Ii82MTM2NDY5LzQxMDM1NTY1Ny1iMGQxNzgwYi01OTMyLTQzMTgtODBiZC02YjIyMDFkMjEyMTcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDQ1MjU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGYyMjc4NThhNzdiNTY4ZmI1ODIxMjQ1ODA1OWViZWUyYTU1MjgwN2U5NGY2MTc4OWVjNTNjY2UxNzczOWMzMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.4XxQvSxRjSnZZuctT7GeFmNjUQ7j1NC452hZR17NYgs)
value1
,value2
, etc.In other words, it always pushes down individual column headings as far down as possible. If we could instead set this to pull them up as far as possible, I can adjust the
rowSpan
to make it look nice.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't find anything in their documentation, so I will go ahead and raise an Issue / discussion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems there is TanStack/table#5051 but no official word on whether or when this will be officially supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I managed to implement something based on the discussion linked above:
![image](https://private-user-images.githubusercontent.com/6136469/410360970-64206090-57a2-40db-853c-419a6b2b9f96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzYyNzYsIm5iZiI6MTczOTMzNTk3NiwicGF0aCI6Ii82MTM2NDY5LzQxMDM2MDk3MC02NDIwNjA5MC01N2EyLTQwZGItODUzYy00MTlhNmIyYjlmOTYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDQ1MjU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2Y0MDJlOGY3OWMxMTg5OWJkM2EzOWQzZGQyZGY5ODExMWI4Y2U3YjY5YmJjNDgzNTI4ZWU2YzQ0MmFlYWI0YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.TVg0jRTiiKX1TewTHVZV_o5Mt22ztmkt_T-Jg3hfk4c)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the header margins make this look a bit bloated... Also, it's gonna be tricky figuring out which results to wrap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the way the 'hack' ends up looking is the best, with a single column of span 5. I would leave it as-is then. Possibly renaming
isMultiAttemptsHack
torendersOwnCells
or something like that, which explains the fragment replacing the cell.