Commit Graph

70 Commits

Author SHA1 Message Date
Michael Lange
4793dc9afb Replace custom parse-duration implementation with an existing lib 2020-01-23 16:34:38 -08:00
Buck Doyle
9f86f5a1fc UI: Migrate to Storybook (#6507)
I originally planned to add component documentation, but as this dragged on and I found that JSDoc-to-Markdown sometimes needed hand-tuning, I decided to skip it and focus on replicating what was already present in Freestyle. Adding documentation is a finite task that can be revisited in the future.

My goal was to migrate everything from Freestyle with as few changes as possible. Some adaptations that I found necessary:
• the DelayedArray and DelayedTruth utilities that delay component rendering until slightly after initial render because without them:
  ◦ charts were rendering with zero width
  ◦ the JSON viewer was rendering with empty content
• Storybook in Ember renders components in a routerless/controllerless context by default, so some component stories needed changes:
  ◦ table pagination/sorting stories access to query params, which necessitates some reaching into Ember internals to start routing and dynamically generate a Storybook route/controller to render components into
  ◦ some stories have a faux controller as part of their Storybook context that hosts setInterval-linked dynamic computed properties
• some jiggery-pokery with anchor tags
  ◦ inert href='#' had to become href='javascript:;
  ◦ links that are actually meant to navigate need target='_parent' so they don’t navigate inside the Storybook iframe

Maybe some of these could be addressed by fixes in ember-cli-storybook but I’m wary of digging around in there any more than I already have, as I’ve lost a lot of time to Storybook confusion and frustrations already 😞

The STORYBOOK=true environment variable tweaks some environment settings to get things working as expected in the Storybook context.

I chose to:
• use angle bracket invocation within stories rather than have to migrate them soon after having moved to Storybook
• keep Freestyle around for now for its palette and typeface components
2020-01-21 15:46:32 -06:00
Buck Doyle
3adb3cd1fe ui: Change Run Job availability based on ACLs (#5944)
This builds on API changes in #6017 and #6021 to conditionally turn off the
“Run Job” button based on the current token’s capabilities, or the capabilities
of the anonymous policy if no token is present.

If you try to visit the job-run route directly, it redirects to the job list.
2020-01-20 14:57:01 -06:00
Buck Doyle
55adef1f42 Update ivy-codemirror to unreleased commit
This addon hasn’t been released in a while but we’d like to
get the fix for this bug that’s causing an inability to
copy long documents in Firefox:
https://github.com/codemirror/CodeMirror/issues/2703

It also includes a deprecation fix:
https://github.com/IvyApp/ivy-codemirror/pull/40
2019-10-25 10:34:02 -05:00
Buck Doyle
882a0210fe UI: Update Ember to 3.12 LTS (#6419)
This is mostly deprecation fixes and blueprint changes. There
are some dependency updates too; the changes to Ember
Basic Dropdown necessitated changing it to angle bracket
component invocation. The conversion of the rest of the
templates will happen separately.
2019-10-15 13:32:58 -05:00
Buck Doyle
e6c66354d0 UI: Update to Ember 3.8 LTS (#5968) 2019-10-08 13:44:19 -05:00
Buck Doyle
7fcfdab316 UI: Update Mirage to 1.1.2 (#6166) 2019-09-26 13:47:07 -05:00
Buck Doyle
2152d57df3 UI: Add IPv6 bracket-wrapping to network serializer (#6007)
This addresses the issue raised by @pznamensky in #5966.
2019-07-30 16:58:01 -05:00
Buck Doyle
1147fd6278 UI: Remove ember-native-dom-helpers (#5959)
This also includes migration of some tests to async.
2019-07-23 14:40:32 -05:00
Buck Doyle
87d716ed0b UI: Add page titles (#5924)
This uses ember-page-title to add dynamic page titles throughout the
route hierarchy. When there’s more than one region, the current
current region is added before the final entry of “- Nomad”.
2019-07-17 15:02:58 -05:00
Buck Doyle
596b5aaf7e UI: Add copy button for client/allocation UUIDs (#5926)
The button shows a success icon and tooltip on click, and resets
after two seconds.
2019-07-15 12:14:32 -05:00
Buck Doyle
e6814c08af Add ember-qunit-nice-errors (#5869)
This shows the entire assertion that’s failing. This is
especially useful in combination with page objects.

For an assertion like this:
assert.equal(PageLayout.flashMessages.length, 1)

The failure displayed normally is just “failed” with the
expected of 1 and the result of undefined. With this addon,
the expected and result remain the same, but “failed” is
replaced with the text of the assertion.

The typical way to address this is to supply the optional
final argument to the assertion function that customises the
failure message. That still works with this addon, but most
of the time it becomes unnecessary.
2019-06-21 14:12:28 -05:00
Buck Doyle
b1656d0e2d Restore precommit linting
The two pairs of quotes were causing no files to match.
2019-05-15 14:48:16 -05:00
Conor Mongey
d2323e0cb8 Converts ANSI terminal codes to HTML in logs 2019-05-02 21:47:23 +01:00
Michael Lange
3b5f7f637d Upgrade ember-concurrency 2019-04-10 14:54:38 -07:00
Michael Lange
514e8aae91 Major upgrade, ember-cli-sass; swiches to sass-dart 2019-04-10 14:54:38 -07:00
Michael Lange
513f882f1a Upgrade third party packages 2019-04-10 14:54:37 -07:00
Michael Lange
56500bd04b Upgrade eslint to v5 2019-04-10 14:54:37 -07:00
Michael Lange
a4c5410323 Upgrade ember addons 2019-04-10 14:54:37 -07:00
Michael Lange
baf5077a32 Manually upgrade fringe dependencies 2019-04-10 14:54:37 -07:00
Michael Lange
542f124071 Auto-upgrade packages 2019-04-10 14:54:36 -07:00
Michael Lange
e74873f9c1 Address the Ember.Logger deprecations 2019-04-10 14:54:35 -07:00
Michael Lange
23729ad5a7 Address the copy/copyable deprecation 2019-04-10 14:54:35 -07:00
Michael Lange
7e6a4f74fc Address inflector deprecations 2019-04-10 14:54:35 -07:00
Michael Lange
467a7b3c90 Upgrade miscellaneous packages 2019-04-10 14:54:34 -07:00
Michael Lange
c408a212d7 Update ember-data-model-fragments 2019-04-10 14:54:34 -07:00
Michael Lange
2fce7c7495 Upgrade to Ember 3.4 2019-04-10 14:54:34 -07:00
Michael Lange
205797dcc0 Upgrade ember-power-select 2019-04-10 14:54:32 -07:00
Michael Lange
57e84b1d10 Critical peer dependency upgrades 2019-04-10 14:54:31 -07:00
Michael Lange
9cc9fa84f2 Fix a bunch of snowflake situations the codemod missed 2019-04-10 14:54:31 -07:00
Michael Lange
a0e8eef7b5 Modules codemod + prettier 2019-04-10 14:46:55 -07:00
Michael Lange
b70b04241c Fix eslint error and add lint script to package.json 2019-04-10 14:46:55 -07:00
Michael Lange
71bcfaa0aa Upgrade to Ember 3.0 2019-04-10 14:46:54 -07:00
Michael Lange
afa35298f4 Fix deprecations 2019-04-10 14:46:53 -07:00
Michael Lange
0ff766ed8c Add the ember-responsive addon 2019-04-10 10:34:10 -05:00
Michael Lange
68ef166064 Remove unused bourbon dependency 2018-11-01 14:37:39 -07:00
Michael Lange
1a6682d23d New LRUMap dep 2018-09-17 15:55:48 -07:00
Michael Lange
e8c860b330 Bring in new d3 dependencies 2018-09-07 09:55:39 -07:00
Michael Lange
dcd8133461 Remove the old json viewer 2018-08-13 17:04:15 -07:00
Michael Lange
b58c229625 Introduce ivy-codemirror 2018-08-13 17:03:20 -07:00
Michael Lange
b14693f168 Add object spread 2018-08-06 11:02:21 -07:00
Michael Lange
bf5c5c230e Add the ember-cli-page-object dependency 2018-07-10 11:28:59 -07:00
Michael Lange
866043ac0f Merge pull request #4468 from hashicorp/f-ui-styleguide-progress
UI: Fill out the styleguide
2018-07-06 16:03:41 -07:00
Michael Lange
5e82e1d03c Switch ember-browserify out for ember-auto-import 2018-07-06 13:38:37 -07:00
Michael Lange
d93dd22f74 Add ember-cli-funnel dependency 2018-07-03 17:37:29 -07:00
Michael Lange
1a55f18085 Spread the driver health love throughout job models 2018-05-25 10:15:23 -07:00
Michael Lange
486c85ce9d Bring fuse.js back 2018-04-23 14:58:01 -07:00
Michael Lange
c84ae85578 Upgrade ember-cli-mirage 2018-04-17 10:28:58 -07:00
Michael Lange
4f33ad5797 Upgrade to Ember 2.18 2018-03-28 14:57:03 -07:00
Michael Lange
525312dc92 Fix lint-staged paths
Paths now start from package.json location, not project root.
2018-02-05 20:13:58 -08:00