many changes

This commit is contained in:
Ross
2026-05-28 22:53:04 +01:00
parent 6368f525e1
commit ee4fe2b85b
16 changed files with 848 additions and 148 deletions
+62 -13
View File
@@ -1,18 +1,67 @@
whilst the dv3d viewer is rendering an image we should show a muted loading text in the middle of the viewport.
the cine button in the viewer should just be an icon, it would be better placed under the viewports fullscreen icon.
when we update a series image stack we should also recalculate the total image size.
on the seties detail page please group the order by buttons into a nested menu so that they take less space.
on the case details page when a series is opened in the viewer from an external element it still triggers a full set of 206 requests and the viewer does not update until this has happened. we should instead just load the exsiting stack (and not trigger any more requests than is absolutely necessary).
on the collections overview page when adding a case via the add case widget if the item is clicked on (not the add button) we get a dialog that offers to add the caes but results in a 500 error. the add button works as intended. we do not want clicking on a case outside fo the buttons to do anything in the widget (please check this won't break the widget in any other locations).
please add a admin case overview page that displays the number of cases that each user has created and other pertinant information. this should have easy access to a list of recently added cases and a summary of the largest cases that a user has (these may be best loaded as required via htmx partials).
on the condition details pages we should have an easier way to set parents and children
the casecollection form should use a widget for the prerequisites that supports autocomplete searching to allow for easy case selection. the selection options should be restricted to those cases that the user is an author of.
if a user has multiple uploads from the same patient waiting to be imported on the uploads page and more than one study in selected to import we should be able to import them and automatically create a set of cases with appropriate case series relations (by setting the model previous_case field appropriately). the workflow should be, multiple studies are selected -> enable the import into cases series button. clicking this should open a dialog that allows a user to set the fields from the CaseForm that will be duplicated across the series. a button at the bottoms should trigger the creation of the cases and import the series appropriately.
if a user has multiple uploads from the same patient waiting to be imported on the uploads page and more than one study in selected to import we should be able to import them and automatically create a set of cases with appropriate case series relations (by setting the model previous_case field appropriately). the workflow should be, multiple studies are selected -> enable the import into cases series button. clicking this should open a dialog that allows a user to set the fields from the CaseForm that will be duplicated across the series. a button at the bottoms should trigger the creation of the cases and import the series appropriately.
when opening the series detail page we get the following error: web-1 | [28/May/2026 22:24:52] "GET /atlas/series/936 HTTP/1.0" 500 158244
web-1 | /opt/venv/lib/python3.14/site-packages/pydicom/dataset.py:589: UserWarning: Invalid value 'DiffusionGradientDirection' used with the 'in' operator: must be an element tag as a 2-tuple or int, or an element keyword
web-1 | warn_and_log(msg)
we also get the following error when trying to view cases (in dev at least):
MemcacheError at /atlas/case/238/
All servers seem to be down right now
Request Method: GET
Request URL: http://127.0.0.1/atlas/case/238/
Django Version: 6.0.1
Exception Type: MemcacheError
Exception Value:
All servers seem to be down right now
Exception Location: /opt/venv/lib/python3.14/site-packages/pymemcache/client/hash.py, line 182, in _get_client
Raised during: atlas.decorators.case_detail
Python Executable: /opt/venv/bin/python
Python Version: 3.14.5
Python Path:
['/usr/src/app',
'/usr/src/app',
'/usr/local/lib/python314.zip',
'/usr/local/lib/python3.14',
'/usr/local/lib/python3.14/lib-dynload',
'/opt/venv/lib/python3.14/site-packages']
Server time: Thu, 28 May 2026 22:28:21 +0100
Error during template rendering
In template /usr/src/app/atlas/templates/atlas/case_display_block.html, error at line 528
All servers seem to be down right now
518 </div>
519
520 </div>
521
522 <details id="dicom-viewer-details">
523 <summary>Viewer</summary>
524
525 <div id="main_viewer" class="dicom-viewer-root"
526 style="box-sizing: border-box; background: #222; width: 100%; height: 600px;"
527 data-auto-cache-stack="false"
528 data-named-stacks='{{case.get_case_named_stacks}}'
529 ></div>
530 </details>
531 <details class="series-panel" id="case-series-panel" open>
532 <summary class="series-panel-summary">
533 <span class="series-panel-title">Series</span>
534 <span class="series-panel-summary-actions">
535 <span class="series-panel-badge">{{ ordered_series|length }} total</span>
536 <button type="button"
537 class="btn btn-outline-primary btn-sm series-summary-btn"
538 id="series-import-uploads-btn"
we need a link to the case admin overview page in the admin menu.