-
Notifications
You must be signed in to change notification settings - Fork 2
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: Data value search #3646
feat: Data value search #3646
Conversation
2b95284
to
e6a67a9
Compare
Removed vultr server and associated DNS entries |
605c1d4
to
5575c3c
Compare
(item["data"] as unknown as FileUploadAndLabel)["fileTypes"][refIndex][ | ||
"fn" | ||
], |
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.
There's a fair amount of type casting in this data structure as IndexedNode
(and our flow as a whole) are not strongly typed.
We can't use a type guard as the types of IndexedNode["data"]
and various components have no overlap - we hit the "A type predicate's type must be assignable to its parameter's type"
error.
This means that casting is unfortunately necessary, but it's better than using any
or just optional chaining the whole way down.
|
||
const handleClick = () => { | ||
console.log("todo!"); | ||
console.log({ nodeId: result.item.id }); | ||
console.log({ result }); |
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.
The next PR should be handling this!
Ready for review, just getting some Vultr issues. Will destroy / recreate if latest re-run fails. |
@DafyddLlyr FYI data sync failed here & can't log into pizza! https://hasura.3646.planx.pizza/console/data/default/schema/public/tables/users/browse |
Thanks for flagging @jessicamcinchak - taking a look! |
…for each component variant
c978bb3
to
78be419
Compare
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.
Working as expected on pizza & tests are clear here ! Displays values feel very clear 🙌
What does this PR do?
DataDisplayMap
data structureScreen.Recording.2024-09-10.at.11.01.26.mov
Next up...