Skip to content

Display Transducer Data#134

Draft
jirhiker wants to merge 2 commits intostagingfrom
jir-transducer-data
Draft

Display Transducer Data#134
jirhiker wants to merge 2 commits intostagingfrom
jir-transducer-data

Conversation

@jirhiker
Copy link
Member

@jirhiker jirhiker commented Nov 6, 2025

@chasetmartin @TylerAdamMartinez
This is not fully baked but it might be a good start when you want to add the transducer data to the hydrograph

Why

This PR addresses the following problem / context:

  • Use bullet points here

How

Implementation summary - the following was changed / added / removed:

  • Use bullet points here

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Use bullet points here

@jirhiker jirhiker marked this pull request as ready for review November 6, 2025 06:24
@jirhiker jirhiker changed the title feat: enhance well-show component with transducer data Display Transducer Data Nov 6, 2025
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +221 to +233
const source: IHydrographDatasource[] =
{
id: 2,
name: 'Transducer',
style: 'line',
data:
allTransducerRows.map((obs) => ({
phenomenonTime: new Date(obs.observation.observation_datetime),
result: Number(obs.observation.value),
})) || [],
}
console.log('source', source)
setHydrographDatasource((prevState)=> [...prevState, source])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Assign correct type when creating transducer datasource

The transducer useEffect declares const source: IHydrographDatasource[] = { … } but initializes it with a single object rather than an array. Because IHydrographDatasource[] expects an array, TypeScript will complain that the object literal is missing array members (length, push, etc.) and the file will fail to compile. This needs to be either typed as IHydrographDatasource or wrapped in an array literal before appending it to state.

Useful? React with 👍 / 👎.

@jirhiker jirhiker marked this pull request as draft November 6, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant