added an extra column to the table and changed styling of numbers - #6
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the RADeNet datasets table to display an additional “Images” field and replaces the previous dataset-size heatmap badge with a richer numeric-cell visualization.
Changes:
- Introduces a
FancyNumericCellcomponent for rendering numeric values with color + bar styling. - Adds a new “Images” column to the table and includes it in CSV export output.
- Extends XLSX parsing to read a “Processed Images” field into the dataset model.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <FancyNumericCell valStr={row.datasetSize} allSizes={numericSizes} /> | ||
| </td> | ||
| <td className="whitespace-nowrap py-5 px-8 text-sm"> | ||
| <FancyNumericCell valStr={row.images} allSizes={numericImages} /> |
Comment on lines
+266
to
274
| // If there are no valid sizes (all sizes are zero/empty array), logMin and logMax might be invalid | ||
| const validSizes = allSizes.filter(x => x > 0); | ||
| let t = 0.5; | ||
| if (validSizes.length > 0) { | ||
| const logN = Math.log10(n); | ||
| const logMin = Math.log10(Math.max(1, Math.min(...validSizes))); | ||
| const logMax = Math.log10(Math.max(...validSizes)); | ||
| t = logMin === logMax ? 0.5 : Math.max(0, Math.min(1, (logN - logMin) / (logMax - logMin))); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.