-
Notifications
You must be signed in to change notification settings - Fork 388
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
Text
migration to archetypes
#2793
Comments
We use the strings in a few different parts of our API:
What do these have in common, and how are they different?Labels and text boxes might both want more sibling components like font size or mime type (markdown or not), but that does not make as much sense for the scrolling text logs. The scrolling text log has a The question is how we should structure these into datatypes and components.We want to reuse as much as possible, but still make it possible for the viewer to distinguish them from each other, so that we don't automatically create a scrolling text log for all labeled rectangles, for instance. If we use the archetype marker components, we have no problems. ProposalEDIT: see PR description for an up-to-date TODO-list
|
So just to clarify, you're proposing to replace the Label component with the Text component? |
Yes |
M 2 cents:
|
Related to |
We could use |
We had these discussions during the API pain points session in Stockholm.
We picked
IIRC we had this discussion too, and decided to keep
We decided against calling it At some point we'd want to generalize the notion of log level to all archetypes, at which point a general |
Markdown for a label could make sense - why not support large labels at some point? Markdown for text logs entries seems more exotic to me, but why not 🤷 |
Scalar
+TextEntry
migration to archetypesTextEntry
migration to archetypes
I split out |
Eh. Yeah actually now that I think about it I guess they can both make sense! |
I will go for a single Right now the datatype is also called |
A |
* Part of #2793 ### What * Rename `datatypes.Label` to `datatypes.utf8` * Rename `components.Label` to `components.Text` * Add new `archetypes.TextDocument { body: components.Text }` ![image](https://github.com/rerun-io/rerun/assets/1148717/a274177f-f0d3-4383-93d4-f76cb2278a68) ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/3173) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/3173) - [Docs preview](https://rerun.io/preview/5e785feff2c57c3f8b7080e55e59fef3cd98a009/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/5e785feff2c57c3f8b7080e55e59fef3cd98a009/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/) --------- Co-authored-by: Clement Rey <[email protected]>
### What * Part of #2793 Adds * component `TextLogLevel` * archetype `TextLog` ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/3261) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/3261) - [Docs preview](https://rerun.io/preview/6b7d5facdeb2da0d3a04b52788e5ac42e472ae7b/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/6b7d5facdeb2da0d3a04b52788e5ac42e472ae7b/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
Related:
Overall:
(checked = merged or done in branch
emilk/text-log
)datatype Utf8
component Text(Text)
component TextLogLevel(Text)
archetype TextDocument { body: Text }
archetype TextLog { body: Text, level: TextLogLevel }
TextLogLevel::INFO
etc helpers for Rust, Python, C++component Text
for rectangles, scalars, points etcReplace"INFO"
in Python withrr2.components.TextLogLevelType.INFO
or whateverre_components
The text was updated successfully, but these errors were encountered: