-
Notifications
You must be signed in to change notification settings - Fork 56
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
Feature: Named views #5532
base: main
Are you sure you want to change the base?
Feature: Named views #5532
Conversation
… as rust with the settings toml
…nput, not just command input bar level
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
one thing ill add is, we have like 150 open bugs, should we really be adding another feature which might break on top... |
fwiw I think this is bug adjacent because it solves problems internal for devs (definitely tests) and has helped reveal a tone of bugs in the engine's camera. while also solving a problem for users and adding polish. But of course 100% agree with you we need to crush bugs. |
yeah fair enough |
…namedview type predicate checking
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.
Played around with it manually and looked working. I specifically was curious about changing themes and then loading the new views, and also duplicate named views.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5532 +/- ##
==========================================
+ Coverage 86.43% 86.46% +0.02%
==========================================
Files 97 97
Lines 37224 37385 +161
==========================================
+ Hits 32176 32326 +150
- Misses 5048 5059 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
relates #4217
Gotchas
Issue
What this solves
NamedViews
NamedView
whenever we want.Implementation
NamedViews
andNamedView
on the settings project.toml (per project)NamedView
format with_version:1.0
since the websocket API may change in the future if we fix camera related issues within the engineNamedViews
are stored in the per projectproject.toml
. You can share this in github with co workers to all share the sameNamedViews
No results found
copy toinputType:options
in the command bar. e.g. When you do the commandLoad named view
if you have no view points, it will sayno results found
since the filtered options is empty. We did this for the commandBar commands but not the options within a command that is "active".let value: Configuration = serde_json::from_str(json).map_err(|e| e.to_string())?;
.Load named view
- instantly calls the engine API to load that view pointCreate named view
- calls the engine API to get the camera values then writes it to disk in project.tomlDelete named view
- deletes that specific viewpoint from project.tomlrabbit hole for
serde_json
NamedView
if a user creates one via the Rust execution.json_str
to be aConfiguration
to case it from aValue
to the real thing calledConfiguration
which will generate all the default values deeply within the settings which will end up creating my default values of_id
and_version
for the user automatically.e.g. The user supplies camera data from the engine but when we write the data to disk in project.toml I want the rust code to automatically append
_id: uuid::Uuid::new_v4()
and_version:1.0
so the TS side does not need to know about this.Video demo
2025-02-26.16-27-57.mp4