Project

General

Profile

Actions

Bug #22936

closed

Inconsistent display of "Project where workflow will run"

Added by Brett Smith 10 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Workbench
Target version:
Story points:
-
Release relationship:
Auto

Description

Seen on pirca running 3.1.2~rc2. Steps to reproduce:

  1. New→Run a workflow
  2. Select a workflow
  3. Select a project from the popup

On the following page, "Project where the workflow will run" is not aligned with other items in its row (it's lower) or column (it's further left).


Files

clipboard-202505221341-9croz.png (31.5 KB) clipboard-202505221341-9croz.png Brett Smith, 05/22/2025 05:41 PM
misalignedinputs.png (7.9 KB) misalignedinputs.png Lisa Knox, 10/01/2025 05:50 PM
revsorttoggle.png (4.33 KB) revsorttoggle.png A screenshot of the revsort toggle, showing the toggle switch occluding the label Lisa Knox, 10/13/2025 02:12 PM
Screenshot_20251013_111352.png (8.02 KB) Screenshot_20251013_111352.png Stephen Smith, 10/13/2025 03:16 PM
Screenshot_20251013_112234.png (8.1 KB) Screenshot_20251013_112234.png Stephen Smith, 10/13/2025 03:23 PM

Subtasks 1 (0 open1 closed)

Task #23141: Review 22936-run-workflow-stylingResolvedStephen Smith10/13/2025Actions
Actions #1

Updated by Brett Smith 7 months ago

  • Release set to 83
Actions #2

Updated by Brett Smith 7 months ago

  • Target version set to Development 2025-09-17
Actions #3

Updated by Brett Smith 7 months ago

  • Assigned To set to Stephen Smith
Actions #4

Updated by Brett Smith 7 months ago

  • Subtask #23141 added
Actions #5

Updated by Brett Smith 6 months ago

  • Target version deleted (Development 2025-09-17)
Actions #6

Updated by Brett Smith 6 months ago

  • Target version set to Development 2025-10-01
Actions #7

Updated by Stephen Smith 6 months ago

  • Status changed from New to In Progress
Actions #8

Updated by Brett Smith 6 months ago

  • Target version changed from Development 2025-10-01 to Development 2025-10-15
Actions #9

Updated by Stephen Smith 6 months ago

Changes at arvados|23719ea05c6fcc9010d4d5c0ad4692637f1a6fc9 branch 22936-run-workflow-styling
Tests developer-run-tests-services-workbench2: #1625

  • All agreed upon points are implemented / addressed.
    • Applied the same margins and spacing to the first row of the run process form as the rest
  • Anything not implemented (discovered or discussed during work) has a follow-up story.
    • n/a
  • Code is tested and passing, both automated and manual, what manual testing was done is described
    • yes
  • Documentation has been updated.
    • n/a
  • Behaves appropriately at the intended scale (describe intended scale).
    • no change
  • Considered backwards and forwards compatibility issues between client and server.
    • none
  • Follows our coding standards and GUI style guidelines.
    • yes
Actions #10

Updated by Lisa Knox 6 months ago

The code all looks good, but two things stand out:
  • The input lines are misaligned:
  • The font for the label 'Project where the workflow will run *' is noticeably larger than the font for 'Name for this workflow run *'. I know this is because they have different behaviors (one is a text input, the other opens a select modal) but they are right beside each other and they are identical except for the text size. This isn't strictly related to the original bug, but if it's a simple fix, it should probably get done while we're here.
Actions #11

Updated by Stephen Smith 6 months ago

Changes at arvados|2da6c792115bcdb63552a0e196529c6f76b294b0
Tests developer-run-tests-services-workbench2: #1638

  • Replaced FormGroup & FormLabel with FormControl & InputLabel in GenericInput to match the input labels of Material TextField, along with using shrink and the standard variant
  • Added no-op onMouseDown handlers to some of the inputs because otherwise clicking on them permanently locks them into the focused state. Those inputs already have an onClick handler to open the dialog, and since those inputs effectively just use the input element as a fancy button to open the actual input dialog, it doesn't matter if users can't interact with the input elements beyond triggering the dialog.
  • I also noticed that other non-text-input styled inputs like any array input that uses chips has a different height, but that doesn't seem as bad as 2 text inputs next to each other having a different height so I'm gonna say that's for another ticket.
Actions #12

Updated by Lisa Knox 5 months ago

This all looks great, but I found a side-effect:

A screenshot of the revsort toggle, showing the toggle switch occluding the label

I messed around and found that applying

sx={{
    '& .MuiSwitch-thumb': {
        marginTop: '8px',
    },
    '& .MuiSwitch-track': {
        marginTop: '8px',
    },
}}

to the <Switch /> in run-process-panel/inputs/boolean-input.tsx looks ok if you want to just handle it that way.

Actions #16

Updated by Lisa Knox 5 months ago

LGTM assuming tests pass!

Actions #17

Updated by Stephen Smith 5 months ago

  • Status changed from In Progress to Resolved
Actions #18

Updated by Brett Smith 5 months ago

  • Release changed from 83 to 79
Actions

Also available in: Atom PDF