Skip to content

LIMS-1204: Remove log area from top of active visits#735

Merged
ndg63276 merged 2 commits intoprereleasefrom
improvement/LIMS-1204/remove-log-area-from-top-of-active-visits
May 31, 2024
Merged

LIMS-1204: Remove log area from top of active visits#735
ndg63276 merged 2 commits intoprereleasefrom
improvement/LIMS-1204/remove-log-area-from-top-of-active-visits

Conversation

@ndg63276
Copy link
Copy Markdown
Collaborator

@ndg63276 ndg63276 commented Feb 29, 2024

JIRA ticket: LIMS-1204

Summary:

At the top of active visits, there is a 4 line 'log' area, which updates to show new data collections. This adds no extra functionality as the page already updates, and on page 2 onwards it doesnt work correctly. So this is to remove it.

Changes:

  • Remove the <div class="lg"> section, from each data collection view
  • Remove the javascript that populated it
  • Add a nopadding class to prevent too much white space
  • Edit the webcam/status link to say 'Show' or 'Hide' and to have a down or up arrow as appropriate
  • Remove the outdated reference to i02, which had 3 webcams displayed, and the style associated with it

To test:

  • Go to an active visit in Synchweb, ensure the other elements are still present:
    • "Data Collections for..." heading
    • "Assign Containers", button "Summary" button etc
    • Show (beamline) Webcams and Beamline Status link, with downward arrow
    • Search bar
    • Filters for "Data Collections", "Grid Scans" etc
    • Page numbers and number per page
  • Expand the webcams and check the heading switches from "Show" to "Hide" and the arrows turn upwards.
  • Go to inactive visit and check everything looks as before, with the same elements as above but without the Webcams/Beamline Status section

@gfrn
Copy link
Copy Markdown
Collaborator

gfrn commented Mar 25, 2024

It all works, however, I was wondering if we were duplicating work a bit by having beamline status/webcam images in two different locations, a few pixels apart (although one does take you to a separate page).

I don't know to which extent having it on the same page makes it easier (maybe you could watch the webcams as new collections stream in), is there any concrete motivation for adding this section?

@gfrn gfrn assigned gfrn and unassigned gfrn Mar 25, 2024
@gfrn gfrn self-requested a review March 25, 2024 11:45
@ndg63276
Copy link
Copy Markdown
Collaborator Author

ndg63276 commented Apr 2, 2024

The webcams section is not new, but previously it just said eg "I03 Webcams and Beamline Status", I thought adding the word "Show" or "Hide" made it clearer that it was something to click.

@gfrn
Copy link
Copy Markdown
Collaborator

gfrn commented Apr 2, 2024

The webcams section is not new, but previously it just said eg "I03 Webcams and Beamline Status", I thought adding the word "Show" or "Hide" made it clearer that it was something to click.

Was it always there and I was blind to it, or was it removed at one point? Because I don't see it currently in MX pages

@ndg63276
Copy link
Copy Markdown
Collaborator Author

ndg63276 commented Apr 2, 2024

Ah, it only appears on active visits. So you can see it on https://ispyb.diamond.ac.uk/dc/visit/cm37235-2 at the moment, but not cm37235-1.

@gfrn
Copy link
Copy Markdown
Collaborator

gfrn commented Apr 2, 2024

Ah, it only appears on active visits. So you can see it on https://ispyb.diamond.ac.uk/dc/visit/cm37235-2 at the moment, but not cm37235-1.

My bad, it completely slipped my mind when responding (even though I went through the process in testing)! That makes a lot more sense

@ndg63276 ndg63276 merged commit 24c9e1d into prerelease May 31, 2024
@ndg63276 ndg63276 deleted the improvement/LIMS-1204/remove-log-area-from-top-of-active-visits branch May 31, 2024 12:18
ndg63276 added a commit that referenced this pull request Jun 24, 2024
* LIMS-1204: Remove log area from top of active visits (#735)

* LIMS-1204: Remove log area from the top of active visits

* LIMS-1204: Remove dclog.js

---------

Co-authored-by: Mark Williams <[email protected]>

* ULIMS-50: Shipping service incoming shipment redirect (#731)

* LIMS-1113: Redirect to shipping-service on dispatch

* LIMS-1113: Fix typos in shipping service URLs

* LIMS-1113: Change text on submit button if redirecting

* LIMS-1113: Fix shipment request requests for Dewars with no pucks/samples

* LIMS-1113: Don't redirect for international shipments

* LIMS-1113: Tweak logic for international shipments

* LIMS-1113: Propagate shipping service error codes to client

* LIMS-1113: Link to shipping service from shipping page

* LIMS-1113: Restore commented code

* LIMS-1113: Include Dewar data in dispatch error log

* LIMS-1113: Apply GdF suggestions

* LIMS-1113: Update config_sample.php

* LIMS-1113: Limit redirects to supported countries

* LIMS-1113: Add supported country dropdown to dispatch from

* ULIMS-50: Redirect to shipping service to book incoming shipments

* Update client/src/js/modules/shipment/views/createawb.js

Co-authored-by: Guilherme Francisco <[email protected]>

* Update client/src/js/modules/shipment/views/createawb.js

Co-authored-by: Guilherme Francisco <[email protected]>

* Update api/src/Page/Shipment.php

Co-authored-by: Guilherme Francisco <[email protected]>

* Update api/src/Page/Shipment.php

Co-authored-by: Guilherme Francisco <[email protected]>

* ULIMS-50: Add better error messages, make hidden fields not required

* ULIMS-50: Update description and date validation in dispatch model

* Restore EM menu in dropdown (#766) (#767)

* Merge master into prerelease (#773)

* Restore EM menu in dropdown (#766)

* Pre release/2024 r2.2 (#770)

* LIMS-1201: Amend name of XPDF capillary crystal to use user acronym (#738)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1256: Remove validation from Local Contact field (#756)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-667: Make the Requested Imager a required field if a plate is being created (#733)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1261: Fix the grid scan heat maps on the VMXi container view (#744)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1289: Fix sample and pdb count on protens page (#753)

Co-authored-by: Mark Williams <[email protected]>

---------

Co-authored-by: Mark Williams <[email protected]>

* Pre release/2024 r2.3 (#772)

* LIMS-1207: Move Calendar link to top left

* LIMS-1207: Move Migrate link to Lab Contacts page

* LIMS-1207: Re-order menu, remove Assign Containers

* LIMS-1201: Amend name of XPDF capillary crystal to use user acronym (#738)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1256: Remove validation from Local Contact field (#756)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-667: Make the Requested Imager a required field if a plate is being created (#733)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1261: Fix the grid scan heat maps on the VMXi container view (#744)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1289: Fix sample and pdb count on protens page (#753)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1304: Correct the order of before and after snapshots

* LIMS-1304: Update to fix typo

Co-authored-by: Mark W <[email protected]>

* LIMS-1235: Queries for implicit samples and DCs in project time out (#758)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1200: CSV file upload ignores first sample (#737)

* LIMS-1200: CSV file upload ignores first sample

* LIMS-1200: Fix bug uploading csv with one sample

---------

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1174: Handle blank proposal on visits page (#740)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-44: Speed up visit query (#759)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1059: Add visit column to shipments list (#742)

Co-authored-by: Mark Williams <[email protected]>

* Restore EM menu in dropdown (#766) (#768)

* Add 2.2a changes to 2.3 (#771)

* Restore EM menu in dropdown (#766)

* Pre release/2024 r2.2 (#770)

* LIMS-1201: Amend name of XPDF capillary crystal to use user acronym (#738)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1256: Remove validation from Local Contact field (#756)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-667: Make the Requested Imager a required field if a plate is being created (#733)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1261: Fix the grid scan heat maps on the VMXi container view (#744)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1289: Fix sample and pdb count on protens page (#753)

Co-authored-by: Mark Williams <[email protected]>

---------

Co-authored-by: Mark Williams <[email protected]>

---------

Co-authored-by: Guilherme Francisco <[email protected]>
Co-authored-by: Mark Williams <[email protected]>

---------

Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Dominic Oram <[email protected]>
Co-authored-by: Guilherme Francisco <[email protected]>

---------

Co-authored-by: Guilherme Francisco <[email protected]>
Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Dominic Oram <[email protected]>

---------

Co-authored-by: Guilherme Francisco <[email protected]>
Co-authored-by: Mark W <[email protected]>
Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Dominic Oram <[email protected]>

* LIMS-1331: Send all dispatch requests to Goods Handling unless international via DHL for BI/MX (#779)

Co-authored-by: Mark W <[email protected]>

* LIMS-1206: Remove stacked usage bar chart from visit page (#743)

* LIMS-1206: Remove stacked usage bar chart from visit page

* Remove no longer used modules/stats/views/stack.js

---------

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1203: Remove hidden temporary button to 'Use facility account' (#741)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1342: Show regular create AWB form if shipping redirect not enabled (#780)

* LIMS-1342: Show regular create AWB form if shipping redirect not enabled

* LIMS-1342: hide extra country dropdown if shipping service redirect not enabled

* LIMS-1342: Json encode any error responses

* LIMS-1342: define shipping service url even any redirect in use

* LIMS-1342: Dont assume https

* LIMS-1342: Only show 1 country select dropdown

* LIMS-1342: Simplify logic a little

* LIMS-1342: Same fixes for dewar dispatch

* LIMS-1342: Show correct button if country changes

---------

Co-authored-by: Mark Williams <[email protected]>

---------

Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Matthew Pritchard <[email protected]>
Co-authored-by: Guilherme Francisco <[email protected]>
Co-authored-by: Dominic Oram <[email protected]>
Co-authored-by: James Hall <[email protected]>
ndg63276 added a commit that referenced this pull request Jun 24, 2024
* LIMS-1204: Remove log area from top of active visits (#735)

* LIMS-1204: Remove log area from the top of active visits

* LIMS-1204: Remove dclog.js

---------

Co-authored-by: Mark Williams <[email protected]>

* ULIMS-50: Shipping service incoming shipment redirect (#731)

* LIMS-1113: Redirect to shipping-service on dispatch

* LIMS-1113: Fix typos in shipping service URLs

* LIMS-1113: Change text on submit button if redirecting

* LIMS-1113: Fix shipment request requests for Dewars with no pucks/samples

* LIMS-1113: Don't redirect for international shipments

* LIMS-1113: Tweak logic for international shipments

* LIMS-1113: Propagate shipping service error codes to client

* LIMS-1113: Link to shipping service from shipping page

* LIMS-1113: Restore commented code

* LIMS-1113: Include Dewar data in dispatch error log

* LIMS-1113: Apply GdF suggestions

* LIMS-1113: Update config_sample.php

* LIMS-1113: Limit redirects to supported countries

* LIMS-1113: Add supported country dropdown to dispatch from

* ULIMS-50: Redirect to shipping service to book incoming shipments

* Update client/src/js/modules/shipment/views/createawb.js

Co-authored-by: Guilherme Francisco <[email protected]>

* Update client/src/js/modules/shipment/views/createawb.js

Co-authored-by: Guilherme Francisco <[email protected]>

* Update api/src/Page/Shipment.php

Co-authored-by: Guilherme Francisco <[email protected]>

* Update api/src/Page/Shipment.php

Co-authored-by: Guilherme Francisco <[email protected]>

* ULIMS-50: Add better error messages, make hidden fields not required

* ULIMS-50: Update description and date validation in dispatch model

* Restore EM menu in dropdown (#766) (#767)

* Merge master into prerelease (#773)

* Restore EM menu in dropdown (#766)

* Pre release/2024 r2.2 (#770)

* LIMS-1201: Amend name of XPDF capillary crystal to use user acronym (#738)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1256: Remove validation from Local Contact field (#756)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-667: Make the Requested Imager a required field if a plate is being created (#733)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1261: Fix the grid scan heat maps on the VMXi container view (#744)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1289: Fix sample and pdb count on protens page (#753)

Co-authored-by: Mark Williams <[email protected]>

---------

Co-authored-by: Mark Williams <[email protected]>

* Pre release/2024 r2.3 (#772)

* LIMS-1207: Move Calendar link to top left

* LIMS-1207: Move Migrate link to Lab Contacts page

* LIMS-1207: Re-order menu, remove Assign Containers

* LIMS-1201: Amend name of XPDF capillary crystal to use user acronym (#738)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1256: Remove validation from Local Contact field (#756)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-667: Make the Requested Imager a required field if a plate is being created (#733)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1261: Fix the grid scan heat maps on the VMXi container view (#744)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1289: Fix sample and pdb count on protens page (#753)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1304: Correct the order of before and after snapshots

* LIMS-1304: Update to fix typo

Co-authored-by: Mark W <[email protected]>

* LIMS-1235: Queries for implicit samples and DCs in project time out (#758)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1200: CSV file upload ignores first sample (#737)

* LIMS-1200: CSV file upload ignores first sample

* LIMS-1200: Fix bug uploading csv with one sample

---------

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1174: Handle blank proposal on visits page (#740)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-44: Speed up visit query (#759)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1059: Add visit column to shipments list (#742)

Co-authored-by: Mark Williams <[email protected]>

* Restore EM menu in dropdown (#766) (#768)

* Add 2.2a changes to 2.3 (#771)

* Restore EM menu in dropdown (#766)

* Pre release/2024 r2.2 (#770)

* LIMS-1201: Amend name of XPDF capillary crystal to use user acronym (#738)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1256: Remove validation from Local Contact field (#756)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-667: Make the Requested Imager a required field if a plate is being created (#733)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1261: Fix the grid scan heat maps on the VMXi container view (#744)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1289: Fix sample and pdb count on protens page (#753)

Co-authored-by: Mark Williams <[email protected]>

---------

Co-authored-by: Mark Williams <[email protected]>

---------

Co-authored-by: Guilherme Francisco <[email protected]>
Co-authored-by: Mark Williams <[email protected]>

---------

Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Dominic Oram <[email protected]>
Co-authored-by: Guilherme Francisco <[email protected]>

---------

Co-authored-by: Guilherme Francisco <[email protected]>
Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Dominic Oram <[email protected]>

---------

Co-authored-by: Guilherme Francisco <[email protected]>
Co-authored-by: Mark W <[email protected]>
Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Dominic Oram <[email protected]>

* LIMS-1331: Send all dispatch requests to Goods Handling unless international via DHL for BI/MX (#779)

Co-authored-by: Mark W <[email protected]>

* LIMS-1206: Remove stacked usage bar chart from visit page (#743)

* LIMS-1206: Remove stacked usage bar chart from visit page

* Remove no longer used modules/stats/views/stack.js

---------

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1203: Remove hidden temporary button to 'Use facility account' (#741)

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1342: Show regular create AWB form if shipping redirect not enabled (#780)

* LIMS-1342: Show regular create AWB form if shipping redirect not enabled

* LIMS-1342: hide extra country dropdown if shipping service redirect not enabled

* LIMS-1342: Json encode any error responses

* LIMS-1342: define shipping service url even any redirect in use

* LIMS-1342: Dont assume https

* LIMS-1342: Only show 1 country select dropdown

* LIMS-1342: Simplify logic a little

* LIMS-1342: Same fixes for dewar dispatch

* LIMS-1342: Show correct button if country changes

---------

Co-authored-by: Mark Williams <[email protected]>

* LIMS-1353: Cannot book multiple dewars in one shipment

* LIMS-1353: Remove outdated comment

---------

Co-authored-by: Mark Williams <[email protected]>
Co-authored-by: Matthew Pritchard <[email protected]>
Co-authored-by: Guilherme Francisco <[email protected]>
Co-authored-by: Dominic Oram <[email protected]>
Co-authored-by: James Hall <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants