Skip to content

New imagery view for disparity map based measurement#8333

Merged
akhenry merged 12 commits into
masterfrom
feature-imagery-disparty-map
Jun 23, 2026
Merged

New imagery view for disparity map based measurement#8333
akhenry merged 12 commits into
masterfrom
feature-imagery-disparty-map

Conversation

@shefalijoshi

@shefalijoshi shefalijoshi commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Closes VIPEROMCT-565

Describe your changes:

  • Adds a new right-click menu item to view imagery tools.
  • Adds a new view provider for the imagey tool view.
  • Adds scaffolding for a new view to hold the tool.
    AH
  • Modify view context to expose additional imagery metadata. Note that I changed the shape of the data here as it was exposing a Vue context object. Somewhere along the line the intent of getViewContext() has got confused. It is NOT for exposing Vue contexts :) We don't want to expose Vue internals via our API.
  • Emit event when view context changes.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this a notable change that will require a special callout in the release notes? For example, will this break compatibility with existing APIs or projects that consume these plugins?

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes? N/A - No new functionality, existing tests sufficient to catch regressions.
  • Has this been smoke tested?
  • Have you associated this PR with a type: label? Note: this is not necessarily the same as the original issue.
  • Have you associated a milestone with this PR? Note: leave blank if unsure.
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?

…ew provider and scaffolding for a new view to hold the tool
Comment thread src/plugins/imagery/plugin.js Fixed
Comment thread src/plugins/imagery/plugin.js Fixed
@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.77%. Comparing base (8c719d6) to head (7e09fe4).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/plugins/imagery/components/ImageryView.vue 40.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8333      +/-   ##
==========================================
+ Coverage   55.67%   56.77%   +1.09%     
==========================================
  Files         728      728              
  Lines       29719    29732      +13     
  Branches     2816     2817       +1     
==========================================
+ Hits        16545    16879     +334     
+ Misses      12845    12523     -322     
- Partials      329      330       +1     
Flag Coverage Δ
e2e-ci 64.80% <100.00%> (+3.14%) ⬆️
e2e-full 39.48% <0.00%> (-0.04%) ⬇️
unit 45.71% <78.94%> (+0.01%) ⬆️
Files with missing lines Coverage Δ
src/plugins/imagery/ImageryView.js 100.00% <100.00%> (+3.33%) ⬆️
src/plugins/imagery/components/ImageryView.vue 41.83% <40.00%> (-0.16%) ⬇️

... and 39 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c719d6...7e09fe4. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

charlesh88 and others added 4 commits June 4, 2026 14:48
- New .scss file measuring-tool.scss.
- Markup added and smoke-tested.
- Added new property called `isScaling` that controls verbiage contextually:
 - false if the user is measuring rover to point A.
 - true if the user measuring point A to B
- Minor refinement to CSS for Notebook.
@shefalijoshi shefalijoshi requested a review from akhenry June 16, 2026 23:44
@shefalijoshi shefalijoshi marked this pull request as ready for review June 17, 2026 00:09
@akhenry akhenry added this to the VIPER GDS 9.1 RC7 milestone Jun 22, 2026

@davetsay davetsay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I put two comments/questions on the PR but it looks good.

Comment thread src/styles/notebook.scss
> * + * {
margin-top: $interiorMargin;
}
gap: $interiorMargin;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

was this intentional?

@akhenry akhenry Jun 23, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤷 ? @charlesh88 ?

},
template:
'<imagery-view :focused-image-timestamp="focusedImageTimestamp" @update:focusedImageTimestamp="value => focusedImageTimestamp = value" ref="ImageryContainer"></imagery-view>'
'<imagery-view :focused-image-timestamp="focusedImageTimestamp" @update:focusedImageTimestamp="value => focusedImageTimestamp = value" @relatedTelemetryIsAvailable="informListenersThatRelatedTelemetryIsAvailable" ref="ImageryContainer"></imagery-view>'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should work fine but i think Vue naming convention is @related-telemetry-is-available="informListenersThatRelatedTelemetryIsAvailable"

@akhenry akhenry merged commit a4aae41 into master Jun 23, 2026
22 of 23 checks passed
@akhenry akhenry deleted the feature-imagery-disparty-map branch June 23, 2026 01:45
davetsay pushed a commit that referenced this pull request Jun 23, 2026
* Adds a new right-click menu item to view imagery tools. Adds a new view provider and scaffolding for a new view to hold the tool

* Markup and CSS for Imagery Measuring Tool

- New .scss file measuring-tool.scss.
- Markup added and smoke-tested.
- Added new property called `isScaling` that controls verbiage contextually:
 - false if the user is measuring rover to point A.
 - true if the user measuring point A to B
- Minor refinement to CSS for Notebook.

* Markup and CSS for Imagery Measuring Tool

- New markup

* Remove viper specific code

* Refactored view context object. Emit event when related telemetry is available

* Tweak colors

* Expose spacecraft Z

* Fixed failing tests

* Fix lint error

---------

Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
Co-authored-by: Charles Hacskaylo <charlesh88@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants