Skip to content

ISIS alarm UI improvement work #3995

Open

Description

@LordIdra

Following up on the discussions during the monthly meetings and the Codeathon, I have created a more precise list of work I want to do on the alarm system over the next few months.

Thought it best to create a issue so that the alarm work I'm planning is written down somewhere (please let me know if you'd prefer this split up into multiple issues).

I'm not 100% sure on how every work item should be implemented and whether any will cause problems for other facilities, so please let me know any thoughts or if anyone is interested in helping, discussion is very welcome and this issue will likely evolve.

Context

I am an industrial placement student (i.e. senior intern™) working at ISIS Neutron and Muon source until August, focused on alarms.

We are migrating from an old control system (Vista) to EPICS. As part of this work, we are migrating and improving our alarm system. Over the last 2 months I have talked with our control room crew and head of operations to find out the current issues with the alarm system, prototyped some solutions, and gathered feedback and iterated on them. I have discussed most of these work items at the monthly meetings and was present for the alarm discussion at the Codeathon.

Alarm configuration improvements

  • Add editing mode to alarm tree #3991
  • Move alarm config menu out of dialog box and into 'properties' panel #4007
  • Enabling filter UI improvements #4010
  • Alarm tree copy+cut+paste #4029
  • Improve add component dialog #4043
  • Drag and drop
    • Allow selected alarms/nodes to be dragged and dropped
  • Alarm configuration table inlining (blocked: waiting for feedback on property panel PR before proceeding)
    • Improve UI for tables by inlining the tables into the config panel instead of having a dialog pop up
    • (Relatedly: validate that screen exists when selected?)
  • Allow an enabling filter to be set on components? (blocked: ideally need more feedback before implementing)
  • Add a 'timeout' option which automatically deactivates latched alarms after a certain period of OK (blocked: needs discussion)
  • Multiple copy/cut (blocked: need to be in a very strong place mentally before attempting...)
  • Bulk alarm configuration (blocked: need more feedback on property-style alarm editing PR first)
    • Allow 'common things' between alarms to be edited e.g. guidance that appears across all alarms, latching (even if different between alarms), delay (even if different between alarms), add guidance to all selected alarms, etc
    • Allow descriptions to be edited with regexes?

Prototype:

647802928-133c50ac-a7e0-41ea-b56e-c757522971ac.mp4

General alarm UI improvements

Alarm disable improvements

  • Overhaul disable alarms dialog #4013
  • Alarm disable reasons (blocked: need more feedback before implementing)
    • Add a 'Disable reason' radio selection to the alarm disable dialog box containing a set of predefined reasons from settings, or 'custom'
    • To make this a non-breaking change, reasons can be null - but add an option to settings.ini to require operators to add a reason
    • Change alarm tree to display disabled reason alongside 'Disabled'
    • Change config dialog box to display disabled reason next to 'Enabled' (enabled checkbox will need to be moved)
  • Track severity of disabled alarms on the alarmserver (blocked: need more feedback before implementing)
  • Disabled alarms table (blocked: need more feedback before implementing)
    • A separate application for viewing disabled alarma
    • Columns: PV, re-enable time, disable reason, description, value, PV severity and message they would have if enabled

End-of-project tasks

  • Figure out what to do with AlarmTreeConfigView - it duplicates a lot of code from AlarmTreeView and I have not been updating it so far
  • Possible technical changes/refactors
    • Sealed interface for client components as I have to do if (item instanceof AlarmClientNode) { ... } else { ... } a lot
    • Figure out what we are doing with FXML. Should I migrate my changes to use FXML? Many are not really suitable for it but maybe we want to for consistency?
  • Organise structure of packages as it is a bit haphazard / not very helpful for finding things
  • Overhaul alarm documentation page to improve presentation, include more details, and bring up to date with new changes
  • Localization go brrr
  • Context menu small polish
    • Icon improvements for context menu - alarms can probably have their own 'family' of icons now
    • Make wording consistent between alarm options

Potential other non-alarm improvements

  • Set auto close by default on popovers (this is bugging me an unreasonable amount)
  • Change display array properties to have up/down/remove/add buttons instead of having a spinner for the column count

Activity

  1. changed the title [-]ISIS alarm improvement work[/-] [+]ISIS alarm UI improvement work[/+] on Nov 6, 2026
  2. lcaouen commented on Nov 30, 2026

    @lcaouen
    Contributor

    @LordIdra @shroffk Is there a branch with all the changes included ? It is not easy to test all the PR one by one and it seems that some of the PRs are linked to other ones.

  3. LordIdra commented on Nov 30, 2026

    @LordIdra
    Author

    @LordIdra @shroffk Is there a branch with all the changes included ? It is not easy to test all the PR one by one and it seems that some of the PRs are linked to other ones.

    I made one a while ago but it is out of date now. I'll create a new one today to make it easier to test

  4. lcaouen commented on Nov 30, 2026

    @lcaouen
    Contributor

    @LordIdra thanks for the branch creation, it's gonna help us for the test.
    We will do them on Wednesday

  5. LordIdra commented on Dec 2, 2026

    @LordIdra
    Author

    have now also merged #4044 and #4045 into that branch

  6. lcaouen commented on Dec 3, 2026

    @lcaouen
    Contributor

    @LordIdra
    Here is the feedback from CEA (@achoqt and @lcaouen )

    #3991
    #4018
    #4007
    #4039

    • Emphasize the "save" and "discard" buttons (maybe a blue color like when something has not been saved)
    Screenshot from 2026-12-02 15-54-43
    • Add keyboard shortcut ctrl + s for saving
    • Would be easier to have the table edition (Guidance, actions, ...) in the editor instead of opening a dialog box
    boite_dialog
    • If the dialog box is kept, would be nice to have different color to emphasize when it's empty or filled
    • Dialog boxes are not fully opened (tests realized under linux and seems to be a problem for all the dialog boxes in Phoebus) and button are not accessibles
    4
    • In the "actions/guidance" dialog boxes, only + button works
    • Add an entry in the context menu to also display/hide the editor
    • Add a key in settings.ini to disable the editor (read only tree can be helpful in some cases)

    #4036

    • we did some quick tests (disconnect then reconnect kafka / disconnect then reconnect alarm server), should be merged quickly as it's a nice improvement for the alarm server status
    • however if a topic is in the settings.ini but not in Kafka then "Connecting" is displayed, maybe a label not existing topic should be added

    #4039

    • if we put a wrong syntaxe in settings.in (for instance disabled_alarms_text_color=100), the alarmtree cannot be opened anymore (I suppose an exception is raised in the code and opening the alarmtree fails). We should be able to open the alarm tree in all cases.

    #4029

    • copy / paste => no possibility to paste at the root. Maybe add the possibility to unselect and if no selection it is pasted at the root ?
    • Add a copy/paste just to copy the properties of an alarm like in the bob editor
    ligne3
    • add the drag&drop ?
    • add the multi alarm selection

    Some other improvements

    • Using a tree table to have more information in the tree if not in edition mode
  7. georgweiss commented on Dec 3, 2026

    @georgweiss
    Collaborator

    Using a tree table to have more information in the tree if not in edition mode

    @lcaouen, I have this on my backlog.

  8. georgweiss commented on Dec 3, 2026

    @georgweiss
    Collaborator

    Dialog boxes are not fully opened (tests realized under linux and seems to be a problem for all the dialog boxes in Phoebus) and button are not accessibles

    @lcaouen, see comments in #4038

  9. georgweiss commented on Dec 3, 2026

    @georgweiss
    Collaborator

    Overall quite extensive UI improvements. Good work.

    My feed-back:

    Still think Disable and Enable should be in the main context menu, not in submenu "manage items". Simply because this is a commonly used action.

    Screenshot 2026-12-03 at 13 08 53

    After restart of Phoebus, the edit pane is present, but empty as no PV node is selected. The toggle button closing the pane is in pressed stated, see screen shot. Guess this is because no node is selected, but pane state is "visible".
    I would maybe suggest removing the toggle button from the toolbar as all other buttons act on the UI as a whole. A "close" button in the editor pane would in my view be a clearer option.

    Screenshot 2026-12-03 at 13 39 40

    Esthetics:

    Controls in the editor pane should in my opinion have the same width (with room to spare for very verbose translations...). Suggest using the width of the the spinner controls to define the width of other buttons. Also: the spinners should be configured with an input filter allowing only positive integers (currently an exception is logged for any non-numeric character, but user does not see this).

    Screenshot 2026-12-03 at 13 40 39

    The "Connected" / "Disconnected" / "Loading" labels in the toolbar would benefit from a wee bit of padding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions