Lookout user interface
Lookout is Armada's web interface for finding and inspecting job history. Its jobs table sends the current view to Lookout query services, shows server results as rows or groups, and opens a job detail panel for deeper review.
Investigation workspace
The jobs page combines a server-backed table with controls for scope, filters, grouping, sort order, columns, refresh, and selection. The table is the main view for finding jobs; the side panel adds the run and submission detail needed to explain what happened to a selected job. See Lookout query services for the service contract and Event ingestion and job history for the wider history flow.
This diagram shows how a user's table state becomes a visible job view.
flowchart LR
S[Table state] --> F[Filters and sort]
F --> J[Lookout job or group query]
J --> R[Job and group rows]
R --> T[Jobs table]
T --> D[Selected job details]
References: internal/…/JobsTableContainer.tsx• L126-240 internal/…/JobsTableActionBar.tsx• L120-240
Job data retrieval
Query requests
The table uses server-side retrieval so the browser does not need to load all matching history before it can display a page. A leaf view sends filters, the active-job-set choice, sort order, and page bounds to the jobs endpoint. A grouped view sends the same scope to the job-groups endpoint with the group field and requested summary values.
The table fetches root rows first. When a user expands a group, it fetches that group's children with an extra path filter. It can fetch more children later when the group contains more jobs than the current page. Requests that are no longer needed are stopped, and a failed request is shown as a table error.
References: internal/…/useJobsTableData.ts• L158-225 internal/…/useJobsTableData.ts• L229-260 internal/…/useJobsTableData.ts• L316-358 internal/…/useGroupJobs.ts• L53-101
Result pages
The table treats pagination as a server concern. It requests one root page and keeps the rows for expanded groups in a tree below their parent. The table shows a loading state while those requests are active and shows an empty state when a completed request returns no root rows.
Changing the page, page size, filters, grouping, or sort order starts a new retrieval for the affected row tree. Root-page changes clear the current selection and expanded groups because those rows no longer describe the same page.
References: internal/…/JobsTableContainer.tsx• L614-645 internal/…/JobsTableContainer.tsx• L1048-1078 internal/…/jobsTableUtils.ts• L79-102
Query controls
Filters and scope
The table exposes filters for job identity, ownership, queue, job set, namespace, state, resources, placement, and submission time. It also supports user-defined annotation columns. Text, state, numeric, and time inputs become Lookout filter values before the request is sent. Resource and priority inputs are parsed as numbers, while a submission-time range becomes a lower and upper time bound.
Some filters have a required scope. Job set and namespace filters require a queue filter. If the queue filter is removed, the table removes dependent filters and offers an undo action. A cell can also create a filter from its displayed value when the field and its prerequisites support that action.
The active-job-set option narrows the view to job sets with at least one active job. This is a scope choice for the query, not a local filter over rows already loaded in the browser.
References: internal/…/jobsTableColumns.tsx• L100-120 internal/…/jobsTableColumns.tsx• L628-711 internal/…/jobsTableUtils.ts• L37-61 internal/…/jobsTableUtils.ts• L172-251 internal/…/JobsTableActionBar.tsx• L149-186
Sort order
The table sends one selected sort field and direction to Lookout. Job rows can sort by fields such as job ID, queue, job set, state, and time. Group rows use group count or supported group values. If the selected column cannot sort the current row type, the table uses a safe default order.
Sorting applies again to root rows and to visible expanded groups. The table resets to the first page when the user changes the sort order so the new order starts from a clear result boundary.
References: internal/…/useJobsTableData.ts• L84-133 internal/…/JobsTableContainer.tsx• L104-123 internal/…/JobsTableContainer.tsx• L799-806
Grouped job views
Group paths
Grouping presents the filtered job set as a tree instead of a flat list. A user can add several group levels, reorder them, or remove them. Queue must come before job set or namespace in a group path because those values only have meaning inside a queue.
The table requests one level at a time. A group row carries its name and job count. When the server returns aggregates, the row can also show time summaries and counts by job state. Annotation columns can be group levels too; the table requires the annotation to exist before it creates the group request.
References: internal/…/GroupBySelect.tsx• L82-106 internal/…/GroupBySelect.tsx• L138-195 internal/…/useJobsTableData.ts• L192-217 internal/…/jobsTableUtils.ts• L276-316
Group expansion
Expanding a group adds exact filters for the values in its path and retrieves the next level. The table keeps the child rows under the group so users can move from a broad count to individual jobs without changing the original search. A load-more row appears when the group count is greater than the number of loaded children.
Changing the group path clears expansion, selection, and the selected job. This prevents a row tree from one grouping scheme from being used with another scheme's filters or actions.
References: internal/…/jobsTableUtils.ts• L172-251 internal/…/JobsTableContainer.tsx• L588-612 internal/…/JobsTableContainer.tsx• L1201-1243
Table presentation
Columns and values
The table presents job identity, queue context, state, resource requests, timing, placement, runtime, exit data, and failure classification. The default view shows selection, queue, job set, job ID, state, time in state, and submission time. Users can change visibility, order, and width, then add annotation keys as columns.
Values are formatted for reading rather than shown as raw service data. States use names, colors, and icons. Timestamps use the user's display settings. Annotation values that are URLs open as links. Group rows use the count column and state summaries to show the shape of the result without listing every job.
References: internal/…/jobsTableColumns.tsx• L48-75 internal/…/jobsTableColumns.tsx• L188-196 internal/…/jobsTableColumns.tsx• L596-626 internal/…/JobsTableCell.tsx• L314-417
View state
The page keeps the search view as user state. Filters, match types, grouping, expansion, sort order, page settings, visible columns, column sizes, selected job, active-job-set scope, and refresh settings can be restored from the saved view state. Users can also save named custom views and load them later.
A manual refresh or an enabled auto-refresh retrieves the root page and the currently expanded groups again. Refresh clears row selection but keeps the search and grouping context, so the user can continue the same investigation against newer history.
References: internal/…/JobsTableContainer.tsx• L270-369 internal/…/JobsTableContainer.tsx• L408-443 internal/…/JobsTableContainer.tsx• L969-1010
Job detail panel
Job and run history
Selecting a job opens a side panel beside the table. The details view shows the job's queue, job set, owner, namespace, priority, submission time, resource requests, annotations, action actors, and container information. The result view shows all recorded runs with the newest run open first.
Each run presents its state, timing, runtime, execution location, exit code, ingress addresses, and failure classification. The panel loads job errors, run errors, debug messages, and scheduler termination reasons as separate detail data so the normal table query stays focused on searchable job rows.
References: internal/…/Sidebar.tsx• L141-147 internal/…/SidebarTabJobDetails.tsx• L16-61 internal/…/SidebarTabJobResult.tsx• L17-85 internal/…/JobRunDetails.tsx• L175-195
Submission and related views
The panel provides the original submission as downloadable YAML through a separate job-spec request. It also provides scheduling for queued jobs and logs or commands when the job has progressed far enough for those views to be useful. These views connect the searchable history row to the job's submitted intent and operational result.
References: internal/…/Sidebar.tsx• L250-326 internal/…/SidebarTabJobYaml.tsx• L40-65 internal/…/useGetJobSpec.ts• L8-34
Selection and job actions
Result-set selection
Selection represents a query scope, not only the rows currently present in the browser. Selecting a job creates a filter for that job. Selecting a group creates a filter for the group and excludes its visible child groups when needed. This lets a bulk action target a large group without loading every matching job into the table.
The action bar uses these selection filters for cancel, reprioritise, and preempt actions. A refresh, page change, or grouping change clears selection because the selected result set may no longer match the visible row tree.
References: internal/…/jobsTableUtils.ts• L131-170 internal/…/JobsTableContainer.tsx• L650-653 internal/…/JobsTableActionBar.tsx• L221-239
Change checklist
When these files or sections are changed, remember to consider these:
- A new table field must stay aligned across its display metadata, filter parser, match options, sort mapping, group mapping, and Lookout API field.
- A change to a filter prerequisite must update both the filter controls and the filter-pruning and row-path logic.
- A new group aggregate must remain aligned across visible-column selection, group requests, group-row conversion, and aggregate cell display.
- A change to pagination or expansion must preserve the distinction between root rows, child rows, and load-more offsets.
- A change to a job or run detail must update the sidebar request, response shape, loading behavior, and empty-detail behavior together.
- A change to saved view state must preserve restoration of filters, grouping, expanded paths, columns, and selected-job state.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A job set or namespace filter has no queue filter | The dependent filter cannot express a valid query and is removed. | The UI disables the dependent control, prunes stale filters, and offers undo. |
| A numeric or resource filter cannot be parsed | The invalid value is not sent as a query filter, so the table does not show the intended scope. | The header keeps a parse error and only adds parsed values to the request. |
| A group path changes while old groups are expanded | Old child rows or selections can describe the wrong result set. | Group changes clear expansion, selection, and the selected job before fetching root rows. |
| A group contains more jobs than the loaded child page | The table shows only the first child page until more data is requested. | The group count drives a load-more row with the current child offset. |
| A jobs or group request fails | The table cannot update its result tree and the current view may be stale. | The request is aborted when obsolete and non-abort errors are shown in a snackbar. |
| A detail request has no stored error or debug text | The panel has no content for that optional detail even though the job or run can still be shown. | The panel treats the detail request as optional and displays only returned content. |
Key files
| File | Why to read it |
|---|---|
| internal/…/JobsTableContainer.tsx | Coordinates table state, requests, refresh, grouping, filtering, selection, pagination, and the detail panel. |
| internal/…/useJobsTableData.ts | Shows how table state becomes job and group requests and how responses become a row tree. |
| internal/…/useGetJobs.ts | Defines the job-row request sent to Lookout. |
| internal/…/useGroupJobs.ts | Defines grouped retrieval and aggregate requests. |
| internal/…/jobsTableColumns.tsx | Defines the user-facing fields, defaults, filters, sort choices, and annotation columns. |
| internal/…/jobsTableUtils.ts | Defines filter prerequisites, group-path filters, pagination work, and selection scopes. |
| internal/…/GroupBySelect.tsx | Shows valid multi-level grouping and its ordering rules. |
| internal/…/JobsTableCell.tsx | Shows filter actions, group expansion, aggregate display, and value presentation. |
| internal/…/Sidebar.tsx | Defines the job investigation panel and its available views. |
| internal/…/JobRunDetails.tsx | Shows the run history fields and optional diagnostic detail requests. |
| internal/…/SidebarTabJobYaml.tsx | Shows how the stored job specification becomes user-readable YAML. |
| docs/lookout-query-services.md | Explains the Lookout read model and the API behavior behind the table requests. |
| docs/event-store-and-ingestion.md | Explains how event data reaches the history systems that Lookout presents. |