Commit Graph

16 Commits

Author SHA1 Message Date
Jai Bhagat
8c600acb35 ui: prettify js files 2022-01-20 09:54:56 -05:00
Jai Bhagat
d0f8322786 ui: fix auto-fixable linting errors 2022-01-20 09:46:45 -05:00
Michael Lange
05f3bf2d09 Always show the file browser for allocations and tasks.
Before, we'd show a helpful error message when a task isn't running
instead of erroring in a generic way. Turns out when an alloc is
terminal but reachable, the filesystem is left behind so we were hiding
it.

Now it is always shown and in the event that something errors, it'll
either be generic, or--more commonly--a 404 of the allocation.
2020-10-25 22:24:56 -07:00
Buck Doyle
4c8083746c Add linting for acceptance accessibility audits (#8570)
This makes use of the PR I recently had merged to eslint-plugin-ember-a11y-testing
to add linting that ensures an accessibility audit is called at least once per acceptance
test file. When I have added linting for component tests, it can apply there too.

I added exclusions for the filesystem browser tests, which are covered by behaviors/fs
and for the search test which will involve significant overrides to Ember Power Select
default templates.
2020-07-30 12:40:05 -05:00
Buck Doyle
06baadd01e UI: add filesystem browsing for allocations (#7951)
This partially addresses #7799.

Task state filesystems are contained within a subdirectory of their
parent allocation, so almost everything that existed for browsing task
state filesystems was applicable to browsing allocations, just without
the task name prepended to the path. I aimed to push this differential
handling into as few contained places as possible.

The tests also have significant overlap, so this includes an extracted
behavior to run the same tests for allocations and task states.
2020-06-01 08:15:59 -05:00
Buck Doyle
b29d88556b Add handling for not-running task filesystem query (#6267) 2019-09-04 17:38:26 -05:00
Michael Lange
65aa4757b8 Use the standard empty state when a dir is empty 2019-08-19 17:16:26 -07:00
Michael Lange
354da0f60c Merge pull request #6048 from hashicorp/f-ui/alloc-fs-files
UI: Alloc FS: File Viewer
2019-08-19 10:36:28 -07:00
Michael Lange
a321145457 Encode characters in file paths to ensure proper URIs 2019-08-14 12:54:11 -07:00
Michael Lange
ed55a7b09a Test that the client is contacted correctly, and the server is used as a fallback 2019-08-07 17:35:43 -07:00
Buck Doyle
473ef7a662 Add page titles to filesystem routes (#6024) 2019-08-01 11:17:46 -05:00
Michael Lange
e277cc5308 Update factory-based fs tests to sort properly 2019-07-31 01:41:00 -07:00
Michael Lange
8f496e8b65 Refactor existing fs tests to use new mirage factories 2019-07-30 17:25:46 -07:00
Buck Doyle
f046ec31e5 UI: Add allocation directory sorting (#5914)
When sorting by size, directories are sorted by name, as size
isn’t displayed.

This includes a change to the positioning of sort arrows for all tables,
moving them closer to the text, because in some cases, the arrows
for right-aligned columns were ambiguously positioned.
2019-07-23 15:37:34 -05:00
Buck Doyle
ee07bab099 UI: Add allocation directory rendering (#5873)
This lets users navigate the allocation filesystem. It doesn’t
support viewing actual files yet.
2019-07-02 16:42:38 -05:00
Michael Lange
d39d0f04c3 Test support and coverage for fs routing 2019-06-20 15:20:15 -07:00