Skip to content

Introduce a TimeSeries archetype and use it to control the plot legend#4867

Merged
jleibs merged 7 commits intomainfrom
jleibs/time_series_archetype
Jan 19, 2024
Merged

Introduce a TimeSeries archetype and use it to control the plot legend#4867
jleibs merged 7 commits intomainfrom
jleibs/time_series_archetype

Conversation

@jleibs
Copy link
Copy Markdown
Contributor

@jleibs jleibs commented Jan 18, 2024

What

This is the basic pattern we expect to see for all of these view-configuration type tasks:

  • Add a new archetype / component
  • Add logic to the TimeSeries space-view-class implementation that both reads and writes the components directly from the blueprint store.

This generally seems to be much easier to think about than dealing with the EntityProperties struct as this was handled previously as it's exclusively a contact between the TimeSeries archetype and the TimeSeriesSpaceView implementation.

Open question:

  • Should we suffix all our view archetypes with something like TimeSeriesView?

Needs #4609 to land first since I developed there before rebasing to main.

Will be nice to come back and clean this up again once #3384 is done.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

@jleibs jleibs added 🟦 blueprint The data that defines our UI exclude from changelog PRs with this won't show up in CHANGELOG.md labels Jan 18, 2024
@jleibs jleibs marked this pull request as ready for review January 18, 2024 22:35
Copy link
Copy Markdown
Member

@abey79 abey79 left a comment

Choose a reason for hiding this comment

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

LGTM but shouldn't the legend stuff be removed from EntityProperties then?

@jleibs
Copy link
Copy Markdown
Contributor Author

jleibs commented Jan 19, 2024

LGTM but shouldn't the legend stuff be removed from EntityProperties then?

Still being used separately in the BarChart -- I'll introduce more Archetypes and remove it in a future PR.

@jleibs jleibs force-pushed the jleibs/time_series_archetype branch from f83f446 to d76ed77 Compare January 19, 2024 17:13
@jleibs jleibs merged commit 965d063 into main Jan 19, 2024
@jleibs jleibs deleted the jleibs/time_series_archetype branch January 19, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🟦 blueprint The data that defines our UI exclude from changelog PRs with this won't show up in CHANGELOG.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants