posit-dev / posit-dev/positron

Add UI affordance for refreshing plots

Open
#8,155 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: plots enhancement
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 11h
Merged PRs (30d)
206

Description

From discussion in #8112

I know the toolbar is a lil crowded, but what would folks think of having a button on there that performs a plot redraw?

  • button lights up when the plot "needs redrawn" (its current rendered size is not the size recommended by the size policy)
  • button can be used at any time to force a redraw
  • button is latching or has a drop menu to control redraw policy inline (w/o dipping into Settings)

💬

maybe a "Refresh" button works in this scenario, as in, "refresh (the size of) the plot"?

💬

There does happen to be an unimplemented refresh plot action: https://github.com/posit-dev/positron/blob/main/src/vs/workbench/contrib/positronPlots/browser/positronPlotsActions.ts#L180

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the unimplemented refresh plot action in src/vs/workbench/contrib/positronPlots/browser/positronPlotsActions.ts around line 180, then read discussion #8112 for the proposed toolbar behavior. Determine how the refresh control should expose redraw and redraw-policy behavior; done means the plot toolbar provides the agreed affordance and its behavior is covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.