cbd4deedf8
* Initialized keyboard service Neat but funky: dynamic subnav traversal 👻 generalized traverseSubnav method Shift as special modifier key Nice little demo panel Keyboard shortcuts keycard Some animation styles on keyboard shortcuts Handle situations where a link is deeply nested from its parent menu item Keyboard service cleanup helper-based initializer and teardown for new contextual commands Keyboard shortcuts modal component added and demo-ghost removed Removed j and k from subnav traversal Register and unregister methods for subnav plus new subnavs for volumes and volume register main nav method Generalizing the register nav method 12762 table keynav (#12975) * Experimental feature: shortcut visual hints * Long way around to a custom modifier for keyboard shortcuts * dynamic table and list iterative shortcuts * Progress with regular old tether * Delogging * Table Keynav tether fix, server and client navs, and fix to shiftless on modified arrow keys Go to Optimize keyboard link and storage key changed to g r parameterized jobs keyboard nav Dynamic numeric keynav for multiple tables (#13482) * Multiple tables init * URL-bind enumerable keyboard commands and add to more taskRow and allocationRows * Type safety and lint fixes * Consolidated push to keyCommands * Default value when removing keyCommands * Remove the URL-based removal method and perform a recompute on any add Get tests passing in Keynav: remove math helpers and a few other defensive moves (#13761) * Remove ember math helpers * Test fixes for jobparts/body * Kill an unneeded integration helper test * delog * Trying if disabling percy lets this finish * Okay so its not percy; try parallelism in circle * Percyless yet again * Trying a different angle to not have percy * Upgrade percy to 1.6.1 [ui] Keyboard nav: "u" key to go up a level (#13754) * U to go up a level * Mislabelled my conditional * Custom lint ignore rule * Custom lint ignore rule, this time with commas * Since we're getting rid of ember math helpers elsewhere, do the math ourselves here Replace ArrowLeft etc. with an ascii arrow (#13776) * Replace ArrowLeft etc. with an ascii arrow * non-mutative helper cleanup Keyboard Nav: let users rebind their shortcuts (#13781) * click-outside and shortcuts enabled/disabled toggle * Trap focus when modal open * Enabled/disabled saved to localStorage * Autofocus edit button on variable index * Modal overflow styles * Functional rebind * Saving rebinds to localStorage for all majors * Started on defaultCommandBindings * Modal header style and cancel rebind on escape * keyboardable keybindings w buttons instead of spans * recording and defaultvalues * Enter short-circuits rebind * Only some commands are rebindable, and dont show dupes * No unused get import * More visually distinct header on modal * Disallowed keys for rebind, showing buffer as you type, and moving dedupe to modal logic willDestroy hook to prevent tests from doubling/tripling up addEventListener on kb events remove unused tests Keyboard Navigation acceptance tests (#13893) * Acceptance tests for keyboard modal * a11y audit fix and localStorage clear * Bind/rebind/localStorage tests * Keyboard tests for dynamic nav and tables * Rebinder and assert expectation * Second percy snapshot showing hints no longer relevant Weird issue where linktos with query props specifically from the task-groups page would fail to route / hit undefined.shouldSuperCede errors Adds the concept of exclusivity to a keycommand, removing peers that also share its label Lintfix Changelog and PR feedback Changelog and PR feedback Fix to rebinding in firefox by blurring the now-disabled button on rebind (#14053) * Secure Variables shortcuts removed * Variable index route autofocus removed * Updated changelog entry * Updated changelog entry * Keynav docs (#14148) * Section added to the API Docs UI page * Added a note about disabling * Prev and Next order * Remove dev log and unneeded comments
198 lines
6.1 KiB
Handlebars
198 lines
6.1 KiB
Handlebars
{{page-title "Evaluations"}}
|
|
{{did-update this.notifyEvalChange this.currentEval}}
|
|
<section class="section">
|
|
<div class="toolbar">
|
|
<div class="toolbar-item">
|
|
<SearchBox
|
|
data-test-evaluations-search
|
|
@searchTerm={{mut this.searchTerm}}
|
|
@onChange={{action this._resetTokens}}
|
|
@placeholder="Search evaluations..."
|
|
/>
|
|
</div>
|
|
<div class="toolbar-item is-right-aligned">
|
|
<div class="button-bar">
|
|
<SingleSelectDropdown
|
|
data-test-evaluation-namespace-facet
|
|
@label="Namespace"
|
|
@options={{this.optionsNamespaces}}
|
|
@selection={{this.qpNamespace}}
|
|
@onSelect={{action this.setQueryParam "qpNamespace"}}
|
|
/>
|
|
<SingleSelectDropdown
|
|
data-test-evaluation-status-facet
|
|
@label="Status"
|
|
@options={{this.optionsEvaluationsStatus}}
|
|
@selection={{this.status}}
|
|
@onSelect={{action this.setQueryParam "status"}}
|
|
/>
|
|
<SingleSelectDropdown
|
|
data-test-evaluation-triggered-by-facet
|
|
@label="Triggered By"
|
|
@options={{this.optionsTriggeredBy}}
|
|
@selection={{this.triggeredBy}}
|
|
@onSelect={{action this.setQueryParam "triggeredBy"}}
|
|
/>
|
|
<SingleSelectDropdown
|
|
data-test-evaluation-type-facet
|
|
@label="Type"
|
|
@options={{this.optionsType}}
|
|
@selection={{this.type}}
|
|
@onSelect={{action this.setQueryParam "type"}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="table-container">
|
|
{{#if @model.length}}
|
|
<ListTable data-test-eval-table @source={{@model}} as |t|>
|
|
<t.head>
|
|
<th>
|
|
Evaluation ID
|
|
</th>
|
|
<th>
|
|
Resource
|
|
</th>
|
|
<th>
|
|
Priority
|
|
</th>
|
|
<th>
|
|
Created
|
|
</th>
|
|
<th>
|
|
Triggered By
|
|
</th>
|
|
<th>
|
|
Status
|
|
</th>
|
|
<th>
|
|
Placement Failures
|
|
</th>
|
|
</t.head>
|
|
<t.body as |row|>
|
|
<tr
|
|
data-test-evaluation="{{row.model.shortId}}"
|
|
style="cursor: pointer;"
|
|
class="{{if (eq this.currentEval row.model.id) "is-active"}}"
|
|
tabindex="0"
|
|
{{on "click" (fn this.handleEvaluationClick row.model)}}
|
|
{{on "keyup" (fn this.handleEvaluationClick row.model)}}
|
|
>
|
|
<td data-test-id
|
|
{{keyboard-shortcut
|
|
enumerated=true
|
|
action=(fn this.handleEvaluationClick row.model)
|
|
}}
|
|
>
|
|
{{row.model.shortId}}
|
|
</td>
|
|
<td data-test-id>
|
|
{{#if row.model.hasJob}}
|
|
<LinkTo
|
|
data-test-evaluation-resource
|
|
@model={{concat row.model.plainJobId "@" row.model.namespace}}
|
|
@route="jobs.job"
|
|
>
|
|
{{row.model.plainJobId}}
|
|
</LinkTo>
|
|
{{else}}
|
|
<LinkTo
|
|
data-test-evaluation-resource
|
|
@model={{row.model.nodeId}}
|
|
@route="clients.client"
|
|
>
|
|
{{row.model.shortNodeId}}
|
|
</LinkTo>
|
|
{{/if}}
|
|
</td>
|
|
<td data-test-priority>
|
|
{{row.model.priority}}
|
|
</td>
|
|
<td data-test-create-time>
|
|
{{format-month-ts row.model.createTime}}
|
|
</td>
|
|
<td data-test-triggered-by>
|
|
{{row.model.triggeredBy}}
|
|
</td>
|
|
<td data-test-status class="is-one-line">
|
|
<StatusCell @status={{row.model.status}} />
|
|
</td>
|
|
<td data-test-blocked>
|
|
{{#if (eq row.model.status "blocked")}}
|
|
N/A - In Progress
|
|
{{else if row.model.hasPlacementFailures}}
|
|
True
|
|
{{else}}
|
|
False
|
|
{{/if}}
|
|
</td>
|
|
</tr>
|
|
</t.body>
|
|
</ListTable>
|
|
<div class="table-foot with-padding">
|
|
<PageSizeSelect data-test-per-page @onChange={{this.onChange}} />
|
|
<div>
|
|
<button
|
|
class="button"
|
|
data-test-eval-refresh
|
|
type="button"
|
|
{{on "click" this.refresh}}
|
|
>
|
|
{{x-icon "refresh-default" class="is-text"}}
|
|
Refresh
|
|
</button>
|
|
<button
|
|
data-test-eval-pagination-prev
|
|
type="button"
|
|
class="button is-text is-borderless"
|
|
disabled={{this.shouldDisablePrev}}
|
|
{{on "click" (fn this.onPrev this.lastToken)}}
|
|
>
|
|
{{x-icon "chevron-left" class="is-large"}}
|
|
</button>
|
|
<button
|
|
data-test-eval-pagination-next
|
|
type="button"
|
|
class="button is-text is-borderless"
|
|
disabled={{this.shouldDisableNext}}
|
|
{{on "click" (fn this.onNext @model.meta.nextToken)}}
|
|
>
|
|
{{x-icon "chevron-right" class="is-large"}}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div class="boxed-section-body">
|
|
<div class="empty-message" data-test-empty-evaluations-list>
|
|
<h3
|
|
class="empty-message-headline"
|
|
data-test-empty-evalations-list-headline
|
|
>
|
|
No Matches
|
|
</h3>
|
|
<p class="empty-message-body">
|
|
{{#if this.hasFiltersApplied}}
|
|
<span data-test-no-eval-match>
|
|
No evaluations that match:
|
|
<strong>
|
|
{{this.noMatchText}}
|
|
</strong>
|
|
</span>
|
|
{{else}}
|
|
<span data-test-no-eval>
|
|
There are no evaluations
|
|
</span>
|
|
{{/if}}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
<EvaluationSidebar::Detail
|
|
@statechart={{this.statechart}}
|
|
@fns={{hash
|
|
closeSidebar=this.closeSidebar
|
|
handleEvaluationClick=this.handleEvaluationClick
|
|
}}
|
|
/>
|
|
</section> |