-
Notifications
You must be signed in to change notification settings - Fork 10
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: update annotation row name #1163
Conversation
@Janeece @kev-zunshiwang could you review the design please 🙏 I'll have a demo link up soon. one thing I wasn't able to do was add the extra table space because it's not possible to add padding in table rows: |
frontend/packages/data-portal/app/components/Run/AnnotationTable.tsx
Outdated
Show resolved
Hide resolved
@@ -9,12 +9,16 @@ import { ConfigureTomogramDownloadContent } from './ConfigureTomogramDownloadCon | |||
export function ConfigureDownloadContent() { | |||
const { t } = useI18n() | |||
const { datasetTitle, runName, objectName } = useDownloadModalContext() | |||
const { annotationId, objectShapeType } = useDownloadModalQueryParamState() | |||
const { annotationName, annotationId, objectShapeType } = |
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.
could we just derive the name from DownloadModalContextValue.annotationToDownload.id and DownloadModalContextValue.annotationToDownload.annotation.object_name?
also, bit confused cuz I didn't see setAnnotationName()
called anywhere 🤔
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.
oh it's calling openAnnotationDownloadModal()
👍
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.
yeah I think that would be more preferred, I want to eventually refactor the download modal state and that includes getting the full annotation data from the backend using the ID 🤣
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.
don't we already have annotationToDownload
though? (recently renamed from activeAnnotation
😬)
@codemonkey800 (based on the screenshots)
|
4b446e1
to
598b6ee
Compare
@codemonkey800 double checked in the dev environment & i have one more comment -- the Authors text (tertiary text) seems darker than on the all datasets table -- can you double check that it is the right color - |
frontend/packages/data-portal/app/components/Run/AnnotationTable.tsx
Outdated
Show resolved
Hide resolved
598b6ee
to
dfddbc3
Compare
oops yeah was using the wrong color, it should be fixed now! |
@codemonkey800 looks great, thank you! |
🤖 I have created a release *beep* *boop* --- ## [1.31.0](web-v1.30.0...web-v1.31.0) (2024-10-03) ### ✨ Features * Add portal standard badge to tomograms table and integrate alignment metadata accordion with new API ([#1179](#1179)) ([1de70a1](1de70a1)) * Add standard tomogram badge to tomogram selector ([#1181](#1181)) ([ac4ad27](ac4ad27)) * Add tooltip to Alignment ID field in tomogram sidebar ([#1196](#1196)) ([fad5207](fad5207)) * Integrate more V2 API queries ([#1174](#1174)) ([92f80a7](92f80a7)) * Migrate and start using tomograms query in UI ([#1169](#1169)) ([d21ffd9](d21ffd9)) * Undo changes for transforming annotations and add new callout for mismatched alignments ([#1191](#1191)) ([ea1598d](ea1598d)) * update annotation row name ([#1163](#1163)) ([6164201](6164201)) * Update to generic annotation transformation callout during download ([#1186](#1186)) ([5597524](5597524)) ### 🐞 Bug Fixes * address misc UI/UX bugs ([#1192](#1192)) ([178737d](178737d)) * change incorrect deposition links ([#1133](#1133)) ([dc642e5](dc642e5)) * Stop querying depositionTitle ([#1187](#1187)) ([07a08d4](07a08d4)) ### 🧹 Miscellaneous Chores * prefix IDs across the portal ([#1178](#1178)) ([1732fb2](1732fb2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
#1050
{file_id} - {object_name}
Demo
https://dev-annotation-row-name.cryoet.dev.si.czi.technology/