Skip to content

Conversation

@nbeatty-gpa
Copy link

No description provided.

@elwills elwills requested a review from gcsantos-gpa December 15, 2025 16:09
Copy link
Member

@elwills elwills left a comment

Choose a reason for hiding this comment

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

After peeping the model, I realize that Station actually is the AssetKey, so what's missing is actually Meter.Name. This isn't currently part of the model, so that would need to be added in order to have both. I think for now, we could just drop this requirement.

]} />
<ConfigRuleValueTableField Record={currentRule} Edit={false} updateRule={(rule) => setCurrentRule(rule)} Label={'Value'} />
<Select<MiMD.IConfigRules> Record={currentRule} Field={'AdditionalFieldID'} Disabled={false} Label={'Additional Field'} Setter={(rule) => setCurrentRule(rule)}
<ConfigRuleValueTableField Record={currentRule} Edit={false} Help={'See the Help :question_mark: at the bottom of this window for dynamic expression examples.'} updateRule={(rule) => setCurrentRule(rule)} Label={'Value'}/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<ConfigRuleValueTableField Record={currentRule} Edit={false} Help={'See the Help :question_mark: at the bottom of this window for dynamic expression examples.'} updateRule={(rule) => setCurrentRule(rule)} Label={'Value'}/>
<ConfigRuleValueTableField Record={currentRule} Edit={false} Help={'See the Help ? at the bottom of this window for dynamic expression examples.'} updateRule={(rule) => setCurrentRule(rule)} Label={'Value'}/>

I think this needs a reword in general. Doesn't help have onclick for more information @prestoncraw or am I misremembering that?

Copy link
Contributor

Choose a reason for hiding this comment

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

So help doesnt have an onClick but Help does accept either a string or JSX.Element so you could pass a JSX.Element that has an onClick for Help.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, that's right. Could we do that here with something that says "click to learn more" and get rid of the "?" button?

Copy link
Contributor

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 cleaner

Copy link
Author

Choose a reason for hiding this comment

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

Passing a JSX.Element into the Help parameter will show the JSX.Element below the Help Icon when the user hovers over it, but when the User tries to click the Element, it disappears, since they are no longer hovering over the Help Icon. At least, that's the behavior I've been getting today while working on it.

Copy link
Contributor

Choose a reason for hiding this comment

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

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.

5 participants