Skip to content

Feature: own views on the Results page, results_view!, spot colors - #72

Merged
StackEnjoyer merged 1 commit into
mainfrom
feature/results-views
Nov 6, 2026
Merged

StackEnjoyer merged 1 commit into
mainfrom
feature/results-views

Conversation

@StackEnjoyer

Copy link
Copy Markdown
Owner

Features

  • card_views, CardView: own types show points, fields or series on their card
  • :series views record one value per full solve, emptied by "clear" on the page
  • results_view!, refresh!: the page "Results" of any object in an own figure
  • spot_colors = hit -> color: colors per hit in a detector's spot diagram
BeamletOpticsGUI.card_views(s::MyScreen) = (
    CardView(hit_count, :series; name = :count, unit = "rays"),
    CardView(hit_points, :points; name = :spot))
results_view!(Figure()[1, 1], gui, detector; view = :spot)

Doc changes

  • Widgets page: own results on a card; API page: results views; example live_card_views.jl
  • Agent skill: API.md, WIDGETS.md, VISUALIZATION.md, SKILL.md updated

Internal changes

  • Detector views are card_views(::Detector), their power is integrated by BeamletOptics
  • Needs optical_power(samples, I) of BMO branch feature/power-of-samples on master first
  • AGENTS.md: the GUI displays results, it does not compute them
  • Precompile session covers own views, series and results_view!

Closes #8, closes #70

…ts, a field or a series, whose functions the window calls after full solves and only draws; the views of a Detector are such views, with the power of BeamletOptics; results_view! places the page of any object in an own figure, spot_colors colors the spots per hit

- CardView(f, form; name, label, unit, normalize, preview, text), card_views(obj): a series records one value per full solve of every object, also without a shown card, "clear" empties it
- results_view!(position, [gui,] obj), refresh!, close: shares the options with the cards, without a window computed on build and on refresh!
- The power of the intensity view is optical_power(samples, I) of BeamletOptics; the GUI keeps only display helpers (centroid, radii)
- AGENTS.md: the GUI displays results, it does not compute them
- The buttons of a segmented switch start with a color as stroke color: a switch built while a view expands failed to draw
- Precompile session: own views, the series, results_view! with and without a window

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StackEnjoyer StackEnjoyer added this to the v0.3.1 milestone Nov 6, 2026
@StackEnjoyer StackEnjoyer self-assigned this Nov 6, 2026
@StackEnjoyer StackEnjoyer added the enhancement New feature or request label Nov 6, 2026
@StackEnjoyer
StackEnjoyer merged commit d6af671 into main Nov 6, 2026
1 of 3 checks passed
@StackEnjoyer
StackEnjoyer deleted the feature/results-views branch November 6, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Detector views in own figures, spots colored per hit Feature: Results pages show the user's own calculations

1 participant