generated from allen-cell-animated/github-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Upgrade Ant to version 5 #166
Merged
Merged
Changes from 58 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
781ba97
fix: Changed props for ImageViewerApp to match new w3cv API
ShrimpCryptid 2a4c28c
refactor: Upgrade web-3d-viewer to 2.9.0
ShrimpCryptid 88585e8
fix: Fix styling on channel settings tab due to ant version or font
ShrimpCryptid b4a70e8
fix: Fixed missing ant drawer
ShrimpCryptid 881b654
fix: Icons in toolbar were off-center
ShrimpCryptid 8cf5f14
fix: Missing type declaration in tests
ShrimpCryptid e47064f
test: Update CI action to node v20
ShrimpCryptid 1b60ba1
test: Import type declarations
ShrimpCryptid 1e6ae81
test: Use original type declaration import, change CI action ordering
ShrimpCryptid 74978ef
fix: Fixed build issues caused by local w3cv project instance being i…
ShrimpCryptid ae2c0f0
refactor: Upgrade to Ant ^5.16.2, fix compile issues
ShrimpCryptid 1787e6b
fix: Removed unsupported babel plugin
ShrimpCryptid 020057c
fix: Text colors, title colors, header font weight
ShrimpCryptid 372bc74
fix: Page background color, link color
ShrimpCryptid 877f372
fix: Header alignment
ShrimpCryptid 433c5db
fix: Button colors and shadows, landing page text size
ShrimpCryptid fef7e1f
fix: Title color, paragraph padding, table margins
ShrimpCryptid 1f3f033
fix: Bad colon alignment on dataset descriptions
ShrimpCryptid 8004c2b
fix: Layout issues on viewer page
ShrimpCryptid a1dca40
fix: Loading spinner color
ShrimpCryptid e029d8f
fix: Header colors, alignment
ShrimpCryptid 6ca9243
feat: Increased tab icon sizes, alignment fixes
ShrimpCryptid d0422a9
refactor: Make palette colors a constant
ShrimpCryptid 8ad0a01
fix: Fixed overlap of viewer title and menu tab buttons
ShrimpCryptid fd77766
fix: Header menu tab styling
ShrimpCryptid c89e8a2
fix: Incorrect font in cookie banner
ShrimpCryptid 37bc4eb
fix: Sider background colors
ShrimpCryptid a2bb87b
fix: Card action formatting
ShrimpCryptid 1c271b4
fix: Gallery background width, transparency
ShrimpCryptid 0537334
fix: Button and icon styling on gallery sidebar
ShrimpCryptid 30ee436
fix: Action list on button icons
ShrimpCryptid ffd7e99
fix: Menu header being the incorrect height
ShrimpCryptid be18836
fix: Album list hover and selection colors
ShrimpCryptid dd30974
fix: Removed extra margin at bottom of page caused by gallery sider
ShrimpCryptid 4f3a361
fix: Unclickable gallery close button, searchbar overlapping scrollbar
ShrimpCryptid 251f827
fix: Removed deprecated properties on menus, modals, and dropdowns
ShrimpCryptid 56ab427
fix: Checkbox colors
ShrimpCryptid 98d0b72
fix: Fixed 3d viewer and plot extending into gallery sider
ShrimpCryptid aa6025e
fix: Close button on selected set
ShrimpCryptid d6bfbc2
fix: Album text alignment
ShrimpCryptid ac98ffa
fix: Popconfirm background color, removed button shadows
ShrimpCryptid 764224a
fix: Axis dropdown not changing on selection, showing keys instead of…
ShrimpCryptid 992104c
feat: Adjusted selected set delete button style
ShrimpCryptid 57f1b2f
fix: Style matching on thumbnail popover
ShrimpCryptid 458d8ea
fix: Popover now follows mouse
ShrimpCryptid 4043c34
refactor: Deleted unused style CSS
ShrimpCryptid 0268ebc
feat: Adjusted margin on gallery buttons
ShrimpCryptid e0101f8
fix: Gallery card button spacing, fixed download dropdown
ShrimpCryptid b3fa257
fix: Dropdowns extending up into header and being unclickable
ShrimpCryptid 2d8fc3e
fix: Temporarily fixed dropdowns by overriding width
ShrimpCryptid 6074c51
fix: Linting
ShrimpCryptid 79e3889
refactor: Restored .gitkeep
ShrimpCryptid cd073c0
refactor: Import sorting, renamed variables
ShrimpCryptid 2a6eeab
refactor: Palette now has base colors to prevent reused strings
ShrimpCryptid 5e4155a
refactor: Code cleanup, increased tab icon size
ShrimpCryptid 33c3083
fix: Alignment of 3d viewer text, increased plot height
ShrimpCryptid 6c9b43e
fix: Dropdown arrow color, dropdown width
ShrimpCryptid 0883829
fix: Alignment on gallery header
ShrimpCryptid dd6c38c
refactor: Removed style overrides for CellViewer
ShrimpCryptid 0b2f0fe
refactor: Removed unused less dependencies
ShrimpCryptid 0fff136
refactor: Removed additional unused dependencies
ShrimpCryptid e1310dc
refactor: Sorted imports, moved CSS
ShrimpCryptid 20b7368
refactor: Moved imports, prevented theme re-calculation
ShrimpCryptid 98ee918
refactor: Use single JSX tag instead of opening + closing tags
ShrimpCryptid ac0bb28
refactor: More import sorting, removed unused CSS
ShrimpCryptid 0010843
Merge branch 'feat/upgrade-ant' of https://github.com/allen-cell-anim…
ShrimpCryptid f366e61
fix: Disabled button styling in Gallery view
ShrimpCryptid 345cbfc
fix: Linting
ShrimpCryptid f34d2f7
Merge branch 'main' into feat/upgrade-ant
ShrimpCryptid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
{ | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/transform-runtime", | ||
["babel-plugin-import", { | ||
"camel2DashComponentName": false, | ||
"libraryDirectory": "", | ||
"libraryName": "lodash" | ||
}, "lodash" | ||
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/transform-runtime"], | ||
"presets": [ | ||
"@babel/preset-react", | ||
["@babel/preset-env", { "modules": false }], | ||
"@babel/preset-typescript" | ||
], | ||
["import", { "libraryName": "antd", "libraryDirectory": "es", "style": true }, "ant"], | ||
["import", { "libraryName": "antd-mobile", "libraryDirectory": "lib"}, "antd-mobile"] | ||
|
||
], | ||
"presets": [ | ||
"@babel/preset-react", | ||
["@babel/preset-env", { "modules": false }], | ||
"@babel/preset-typescript" | ||
], | ||
"env": { | ||
"commonjs": { | ||
"presets": [["@babel/preset-env", { "modules": true }]] | ||
"env": { | ||
"commonjs": { | ||
"presets": [["@babel/preset-env", { "modules": true }]] | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* Style overrides to fix alignment caused by an Ant version + font mismatch. | ||
* TODO: Remove this when Ant version is upgraded? | ||
*/ | ||
|
||
.cell-viewer-container { | ||
/* Align header items; fix a bug where the entire div would show pointer-interactive | ||
* when only the icon (span) was clickable. | ||
*/ | ||
& :global(.ant-collapse-header) { | ||
align-items: center !important; | ||
cursor: auto !important; | ||
|
||
& :global(.ant-collapse-arrow) > span { | ||
cursor: pointer !important; | ||
} | ||
|
||
& :global(.ant-collapse-extra) { | ||
width: 45% !important; | ||
} | ||
} | ||
|
||
/* Remove outlines on channel settings toggles */ | ||
& :global(.channel-visibility-controls) > :global(.ant-btn-icon-only) { | ||
border-color: transparent !important; | ||
} | ||
|
||
/* Fix missing bottom drawer */ | ||
& :global(.ant-drawer.ant-drawer-bottom) { | ||
height: 100% !important; | ||
position: relative !important; | ||
} | ||
|
||
/* Fix icons in toolbar not being centered */ | ||
& :global(.viewer-toolbar-group) > button:global(.ant-btn-icon-only) { | ||
padding: 0 !important; | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,14 +66,14 @@ const DatasetCard: React.FunctionComponent<DatasetCardProps> = ({ | |
/> | ||
{/* Spacer div to push `Descriptions` to the bottom of the card */} | ||
<div className={styles.spacer}/> | ||
<Descriptions column={1} size="small"> | ||
{userData.totalCells && <Descriptions.Item label="Number of Cells"> | ||
<Descriptions column={1} size="small" colon={false}> | ||
{userData.totalCells && <Descriptions.Item label="Number of Cells:"> | ||
Comment on lines
+69
to
+70
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes colons part of the label to prevent a weird alignment bug with multiline labels |
||
{userData.totalCells.toLocaleString("en")} | ||
</Descriptions.Item>} | ||
{userData.totalFOVs && <Descriptions.Item label="Number of FOVs"> | ||
{userData.totalFOVs && <Descriptions.Item label="Number of FOVs:"> | ||
{userData.totalFOVs.toLocaleString("en")} | ||
</Descriptions.Item>} | ||
{userData.totalTaggedStructures && <Descriptions.Item label="Number of tagged structures"> | ||
{userData.totalTaggedStructures && <Descriptions.Item label="Number of tagged structures:"> | ||
{userData.totalTaggedStructures} | ||
</Descriptions.Item>} | ||
</Descriptions> | ||
|
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Fixed a bug where the colons would appear in strange places when the description stretched to multiple lines. This removes the auto-added colons and instead makes them part of the description itself.