GithubHelp home page GithubHelp logo

newprojectboardsdemo's Introduction

NewProjectBoardsDemo

Repo for containing issues as part of new project boards demo

newprojectboardsdemo's People

Contributors

jackeallen avatar

Watchers

 avatar

newprojectboardsdemo's Issues

Lock Sidebar for Spectrum Viewer Window

Desired Behaviour

Lock spectrum viewer window sidebar in position.

Current Behaviour

Sidebar is not locked in place which means it's easy for the user to minimise and potentially struggle to understand how to get back again.

Acceptance Criteria

What is the acceptance criteria?

  • Sidebar is locked and can't be minimised

Extra Information

Why it is needed?

  • Feature requested by user
  • Project requirement

Where required files/links are

Current Behaviour

Open Closed
image image

How to Test

verbose instructions for the reviewer to test changes

  • Open GUI
  • Open Spectrum Viewer window
  • Try to drag the sidebar to the left to minimise (if not possible, desired functionality is achieved)

Spectrum export button enable/disable

As a User: I would like the export spectrum button to be disabled if there is not a currently active stack in the spectrum viewer window as currently this causes a ValueError.

The export spectrum button should be disabled if there is not a currently active stack in the spectrum viewer window.

image

Acceptance Criteria

What is the acceptance criteria?

  • Export spectrum button is disabled if there not active stack in the spectrum viewer window.
  • Export spectrum button enabled if there is an active stack in the spectrum viewer window.
  • Export spectrum button when clicked does not trigger a ValueError when there is no active stack in the spectrum viewer window.

Extra Information

Why it is needed?

  • Feature requested by user
  • Project requirement

Where required files/links are

How to Test

verbose instructions for the reviewer to test changes

  • Open up GUI and Load Dataset File > Load dataset > Sample
  • Open Spectrum Viewer `Workflow > Spectrum Viewer (Beta)
  • Click the Export button and export a spectrum
  • While keeping Spectrum Viewer window open, in the main window, delete the active stack by right clicking and selecting delete
  • Go back to Spectrum Viewer window and validate export button is disabled
  • While keeping Spectrum Viewer window open, in the main window, repeat steps one to three to validate that export button is enabled again and has expected behaviour.

Create "Add ROI" button to Spectrum Viewer Window

Desired Behaviour

Create "Add ROI" button to spectrum viewer window which can create multiple ROIs.

Current Behaviour

No functionality exists for this feature yet.

Acceptance Criteria

What is the acceptance criteria?

  • "Add ROI" button exists in spectrum viewer window
  • "Add ROI" button can add a new ROI.
  • Each ROI added is a different colour

Extra Information

Why it is needed?

Where required files/links are

How to Test

verbose instructions for the reviewer to test changes

  • Open GUI
  • Open Spectrum Viewer window
  • Click "Add ROI" button
  • Confirm that a new ROI is added each time button is pressed
  • Confirm that each new ROI added is a different colour

Add a spectrum viewer dialog

I've pushed everything I've prepared on this to branch 1498-add-spectrum-viewer, so you should be able to pick the branch up to start looking at the ROI side when you're ready. The things I've put in place are:

  1. Adding "Spectrum Viewer" to the "Workflows" menu in the main window. Clicking this option opens the spectrum viewer in a new window (this is why I wasn't keen to put it into PR at this stage, although if this was temporarily removed the rest could probably go in if needed).

  2. The layout for the new window has a splitter, the same as the recon and operations windows use, to separate the section for input fields and the section for the image. The layout is likely to need resizing/settings tweaks as you continue to work on it, particularly around what happens when you re-size.

  3. I've setup the two dropdowns to populate with stacks from the main window using the DatasetSelectorWidget. The second dropdown can be enabled and disabled with a checkbox. For now I've left it so that the checkbox simply enables and disables the dropdown, I figured we could decide further down the line if there was a need for it to do anything with the contents of the dropdown when the state changes.

  4. The second dropdown will automatically try to select a flat for the selected sample dataset, if one is available. I've noticed that if you keep the window open, delete all the datasets in the main window and then (with the window still open) reload a dataset it doesn't correctly select the flat. This seemed a very minor, niche issue and so I didn't want to delay handing this over to fix it. I can continue to investigate and comment here with anything I find about how to resolve it, though.

Draggable ROIs

Desired Behaviour

Allow all ROIs added to spectrum viewer window to be draggable.

Current Behaviour

Can create ROIs, but unable to move/drag them implemented as part of #1620

Acceptance Criteria

What is the acceptance criteria?

  • ROI's can be dragged around the view

Extra Information

Why it is needed?

Where required files/links are

How to Test

verbose instructions for the reviewer to test changes

  • Open GUI
  • Open Spectrum Viewer window
  • Confirm that ROIs added can be moved around using the mouse

Spectrum Viewer: Table of ROIs

Desired Behaviour

Allow all ROIs added to be viewed within a table in the spectrum viewer window sidebar using the reconstruction windows COR table for design inspiration (See umbrella issue for image of COR table).

The table should display the name (ID) for each ROI added and a key to describe the colour each ROI is set too using squares e.g. ๐ŸŸฆ ๐ŸŸฅ ๐ŸŸฉ

ROI Colour
roi_id_1 ๐ŸŸฉ

Current Behaviour

Can create ROIs, but unable to see them in a table in the sidebar.

Acceptance Criteria

What is the acceptance criteria?

  • ROIs added can be seen in a table within the sidebar of the spectrum viewer window
  • The name / ID for the ROIs exists in column
  • The colour set for the ROIs can be seen in a second column

Extra Information

Why it is needed?

Where required files/links are

How to Test

verbose instructions for the reviewer to test changes

  • Open GUI
  • Open Spectrum Viewer window
  • Add ROIs using "Add ROI" button
  • Confirm that ROIs details are added to table
  • Ensure table correctly display ROI name and colour key

Spectrum viewer handle switching stacks

A bit more needs to be done when switching stacks.

Auto Zoom if sized changed

Auto levels?

Handle switching to None

Handle selected stack being closed in main window.

Show first stack when spectrum window first opened

When the spectrum window is first opened no stack is shown. The first sample stack should be shown.

Current work around is to select a different stack and then reselect the one that you want to see.

Spectrum viewer ROI

Add a Region of Interest rectangle to the image view in the spectrum window.

The spectrum should show the values for the RoI area.

Multiple ROIs (Umbrella Ticket)

As an instrument Scientist, I want to create multiple ROIs within the spectrum viewer window.
Acceptance Criteria

  • #11
  • #12
  • #13
    • ROI Name
    • ROI line colour using squares e.g. ๐ŸŸฆ ๐ŸŸฅ ๐ŸŸฉ
  • ROI names can be changed
  • A line is displayed for each ROI in a different colour in the line plot
  • ROIs can be removed
  • ROIs can be exported to a CSV file
  • Documentation exists to describe usage of new functionality added to spectrum viewer window

Current Behaviour

  • ROI is not yet a feature

Extra Information

why it is needed?

  • Feature requested by user
  • Project requirement

Where required files/links are

Reconstruction Window COR Table:
image

How to Test

Verbose instructions for the reviewer to test changes
(To be filled out on completion of ticket)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.