Commit graph

135 commits

Author SHA1 Message Date
jaknapper
666dced86d Update the GUI download links to point to new download_zip function 2025-05-07 20:21:03 +01:00
jaknapper
6cf99d5096 Stack settings in GUI 2025-05-07 19:52:21 +01:00
Joe Knapper
327a87e344 Merge branch 'no-tour' into 'v3'
Disable tour

See merge request openflexure/openflexure-microscope-server!238
2025-05-07 14:02:09 +00:00
jaknapper
5bfadceeeb Pink icon for thumbnail placeholders 2025-04-23 16:13:47 +01:00
jaknapper
7617d31194 Errors raised as errors, not logs 2025-04-23 14:28:05 +01:00
jaknapper
91057f164a Thumbnails and accurate durations in scan-list tab 2025-04-22 19:02:29 +01:00
jaknapper
1044764192 Disable tour by removing shortcut and default to run 2025-04-08 19:23:04 +01:00
jaknapper
52532a90d7 More spacing below buttons 2025-04-08 18:41:11 +01:00
jaknapper
4fa2813e6a More spacing and nicer dark mode colours 2025-04-08 18:30:40 +01:00
Joe Knapper
e4ef8b2717 Merge branch 'consistent-logging' into 'v3'
Stop uvicorn.run disabling existing loggers

Closes #284

See merge request openflexure/openflexure-microscope-server!228
2025-04-08 11:31:33 +00:00
Julian Stirling
3a47151694 Serve logfile and logs for UI seperately 2025-04-07 23:45:19 +01:00
Julian Stirling
70d9e2f758 Add custom log handler for sending logs to UI 2025-04-07 23:16:00 +01:00
jaknapper
421d4a5f10 Spaces in tab names, more space, centred 2025-04-07 18:54:30 +01:00
jaknapper
3e82286245 Reorder GUI tabs to match the order of use 2025-04-07 18:18:16 +01:00
jaknapper
01d906e46a Rename exposure (with limit) 2025-04-02 13:02:01 +01:00
Richard Bowman
77794c94eb Update documentation on dependencies/dev tools 2024-12-03 11:18:24 +00:00
Joe Knapper
c2b54da4a1 More explantion of building webapp in README 2024-06-10 11:27:30 +00:00
Richard Bowman
c9aeabf545 Await updatePosition in mounted hook
updatePosition is asynchronous, so we should await it, otherwise
it may not be run correctly (resulting in the navigate pane
being disabled).
2024-03-12 17:19:11 +00:00
Richard Bowman
2ac317307e Clean up debugging code 2024-02-29 22:41:45 +00:00
Richard Bowman
fef53c1176 Start modals on mount, not create
The calibration modal was not starting properly, because
the component was not mounted when its show method
was called. Calling it from the `mounted` method solves
the problem and we don't get the error.

I'm not 100% sure this was introduced by refactoring the
taskSubmitter, though it's possible. However, I think the
fix is uncontroversial and it should probably have been there
all along.
2024-02-29 22:40:41 +00:00
Richard Bowman
fb07343cdd Fix errors introduced by refactoring of taskSubmitter
I removed some defunct properties - this introduced a couple
of problems, which are resolved by:

* no longer checking for fastAutofocusUri
* removing the unused prop availablePlugins from the calibration modal
2024-02-29 22:17:49 +00:00
Richard Bowman
cbd8b090ec Replace tasksubmitter with action-button
I've changed tasksubmitter to accept a "thing" and "action" rather than a single URL. This seems more in keeping with
propertyControl, and eliminates the need for loads of
computed properties.

I've also deleted (rather than just commenting out) chunks of the web app that are no longer in use. These may be
reinstated in the future - but we can get them from git
history. It's less confusing not to have vestigial
code in the repo.

This builds OK but is not, as yet, tested with hardware.
2024-02-29 21:44:39 +00:00
Joe Knapper
f2cfa9faf8 Working delete all and auto reload when deleting or opening tab 2024-02-21 17:45:39 +00:00
Joe Knapper
361130eea6 Download zip button from scan tab 2024-02-21 16:36:17 +00:00
Joe Knapper
97c114b77e Show scan folder instead of name 2024-02-21 15:47:42 +00:00
Joe Knapper
61d7712c27 tiff as an option 2024-02-09 19:05:20 +00:00
Joe Knapper
6aa712e515 Rescaling stitch preview to avoid scrolling in y 2024-02-09 16:08:21 +00:00
Joe Knapper
81d6514eb0 Always show scan name during scan 2024-01-23 11:42:03 +00:00
Richard Bowman
6a47835ea1 Re-label check coverage button 2024-01-17 14:13:12 +00:00
Richard Bowman
1b39f9d5c0 Add a button to stitch scans 2024-01-17 13:46:29 +00:00
Richard Bowman
0b45a5dc76 Allow action URIs to be retrieved without errors if they are missing
thingActionUrl may now be told to return `undefined` insstead of throwing an error if the action is missing.
2024-01-17 13:43:22 +00:00
Richard Bowman
653e1a4159 Added a button to flash the LED 2024-01-17 13:36:26 +00:00
Richard Bowman
50cf8e6f78 Generate zip files before download
Previously, zip files were only downloaded if they already
existed. Now, they are created with  an action, then
downloaded from the result.

Chrome now insists on downloading the files as `output.zip`, I can't see why this has changed, but perhaps it's related
to the security warning. This seems to be specific to zip files.
2024-01-17 13:16:41 +00:00
Richard Bowman
674704b0d6 Display the microscope's hostname in the interface 2024-01-17 11:55:03 +00:00
Richard Bowman
6e18a91d1f Hide background detect settings in an accordion
Feedback from clinicians is that this tab was too busy. This commit hides all but the two essential buttons.
2024-01-17 11:28:36 +00:00
Richard Bowman
011dc2191c Add a control to set whether scans are automatically stitched. 2024-01-15 21:36:15 +00:00
Richard Bowman
7d63c9da44 Add a button to save settings to disk 2024-01-15 21:19:03 +00:00
Joe Knapper
e483c3ddfb custom scan name from gui 2024-01-15 17:40:17 +00:00
Richard Bowman
20efaa2799 Appearance tweaks
actionLogDisplay had white-on-white text in dark mode: I've fixed color to be black now.

added a title for the mini stream display during scans
2024-01-11 14:08:32 +00:00
Richard Bowman
6b6946ec60 Cope with an empty scan list 2024-01-11 13:37:57 +00:00
Richard Bowman
d96dbdd546 Only stringify boolean values when setting properties
My workaround to the axios bug that makes `false` values not work
2024-01-11 13:37:57 +00:00
Richard Bowman
f26230efb6 Swap background detect from argument to property
I've added boolean support to PropertyControl. This required
working around a bug in axios, that ignored `false` when sent
as the body of a request.
2024-01-11 03:01:33 +00:00
Richard Bowman
3de7aa2fb2 Don't invoke stitching from the front-end
Stitching is now done automatically in a sub process by the
server. This is much cleaner - and all we need to do is poll for
file updates.

I've also styled the log display slightly better.
2024-01-11 01:51:17 +00:00
Richard Bowman
9a2b830ff5 Fix completed event 2024-01-11 01:50:01 +00:00
Richard Bowman
6b466c80a9 Add polling for preview stitched images 2024-01-11 01:50:01 +00:00
Richard Bowman
7c88704059 Only show scrollbar if needed 2024-01-10 20:48:22 +00:00
Richard Bowman
215bfb5121 Leave scan log open until closed
The log/progress view is now closed explicitly, rather than disappearing as soon as the scan is over.
2024-01-10 20:46:06 +00:00
Richard Bowman
f03e0188e4 Fix a typo when reacting to an existing invocation
checkExistingTasks was looking up the task's `self` link by
checking for `rel=self`, which failed. I have corrected this
to `rel="self"` - `self` would have evaluated to `undefined`.
2024-01-10 20:46:06 +00:00
Richard Bowman
81540ebc45 Linter fixes 2024-01-10 20:46:06 +00:00
Richard Bowman
29177d7214 Scroll to the bottom when status messages appear
The log viewer was scrolling to the bottom when new logs
appeared, but not when the status updated. This meant that the status update may have been invisible. I now scroll
when the status changes too, which should fix the problem.
2024-01-10 20:46:06 +00:00