Commit graph

23 commits

Author SHA1 Message Date
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
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
7c88704059 Only show scrollbar if needed 2024-01-10 20:48:22 +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
Richard Bowman
46444770f3 Improved styling and synchronisation 2024-01-10 20:46:06 +00:00
Richard Bowman
53644a691b Refactored taskSubmitter to enable bits to be re-used 2024-01-10 20:46:06 +00:00
Joe Knapper
ddfce7dcff Success and warning alerts in webapp 2024-01-10 18:29:43 +00:00
Richard Bowman
9a3e870d21 Remove unused taskId data
taskSubmitter's "taskId"  data member was usually incorrect and
wasn't necessary - it is removed.
2024-01-08 17:35:06 +00:00
Richard Bowman
ec61019d76 Improve modal progress dialog
I've tidied up the UI a bit here:
* The modal box stays open and must be explicitly closed.
  Pretty much everywhere we want to use this, it would be nice
  to see the final confirmation it's worked - so I have removed
  the line that closes it after the task completes.
* The progress bar no longer animates after the task has
  finished (logic previously didn't consider that state as the
  bar wasn't visible except while it was running).
* A helpful message is printed when the task completes or is
  cancelled.
2024-01-08 16:24:43 +00:00
Richard Bowman
bea9bdee02 Handle cancellation gracefully
Cancellation is now confirmed with a modal notification, and
won't result in an error in the console.
2024-01-04 16:35:13 +00:00
Richard Bowman
7dd4c1f4c6 Add modal progress box for stage recentering
I've also added a title to the modal box
2024-01-04 15:54:56 +00:00
Richard Bowman
2bc585fe33 Make failed modal actions stay on screen
There's not currently any way to view the log of a failed
action - an easy win is to keep the log on screen until it's
closed by the user.
2024-01-04 02:09:30 +00:00
Richard Bowman
2ce6ea4bc0 Working modal progress/cancel dialog for actions. 2024-01-04 01:05:24 +00:00
Richard Bowman
40580327c6 Linter fixes 2024-01-03 21:53:14 +00:00
Richard Bowman
5ca8070bc8 WIP: modal progress dialog for TaskSubmitter
Longer-running tasks would benefit hugely from showing the
operator a progress indicator. This branch will add a basic
log display allowing messages to be shown to the user.
This branch may also add an abort button to the above dialog.
2024-01-03 21:40:12 +00:00
Richard Bowman
8865d88e20 Remove unnecessary components 2023-11-30 23:22:00 +00:00
Richard Bowman
c5c02eb029 Linted 2023-11-02 20:30:54 +00:00
Richard Bowman
79752a2a4c Camera settings for labthings-picamera2
I've updated URLs and tidied things a bit, so that we can
now adjust the key camera settings with the new camera
drivers.
2023-11-02 16:54:22 +00:00
Richard Bowman
799dc7f522 WIP: update webapp to use new backend
This is still very much WIP, but I now have fast
autofocus, stage moves, image streaming, and click-to-move.
2023-09-04 22:00:56 +01:00
Kaspar Emanuel
b2eb1e0f05 Rename js directory to webapp 2021-09-16 15:13:19 +01:00