Commit Graph

943 Commits

Author SHA1 Message Date
John Cowen ae049feeab
ui: Misc changes for Catalog area (#9414)
* Use DataLoader errors for Service Detail and Service Instance

* uiCfg > config use the repo-like async interface where possible

* Clean up node show

* Make sure you can put `=` in dev cookie values

* Never default to default

* Tweak chain variable

* Remove env service

* Pass chain through to the template for the tempalte to clean it up

* Delete controller tests

* Remove cleanup in Nodes show as this is still being used in another tab

* Use dc.Local
2020-12-17 16:35:01 +00:00
John Cowen a79a385bf3
ui: Change references to L7 to say Layer 7 (#9412) 2020-12-17 16:04:05 +00:00
John Cowen 2744f32899
ui: Show the No Dependencies message when a Topology has no streams (#9413)
Also changes the upstreams docs link
2020-12-17 15:26:48 +00:00
John Cowen 0f63be390f
ui: Add new dev UI environment variables to the README (#9411) 2020-12-16 16:40:31 +00:00
John Cowen d6b55e6f0f
ui: Set overflow: auto on the tab nav (#9402)
This ensures scroll bars are mainly hidden, yet visible on small screens
if the tabs are large enough for there to be an overflow
2020-12-16 09:19:00 +00:00
John Cowen 78ed71b2c9
ui: Rearrange Service detail page to load Topology and Routing tabs separately (#9401) 2020-12-16 09:18:29 +00:00
Kenia 8c00340b83
ui: Return empty state for no health check in Topology Cards (#9403) 2020-12-15 14:32:03 -05:00
John Cowen 36a1666bdb
ui: Install ember-intl (#9399)
* ui: Install ember-intl

Also:

1. Removes our own format-number in order to use ember-intl's instead
2. Moves format-time to format-short-time so as to not clash with
ember-intls own format-time
2020-12-15 18:29:32 +00:00
John Cowen 75b9151969
ui: Lint get-environment.js (#9400) 2020-12-15 18:14:25 +00:00
John Cowen 751ad844ea
ui: Use InformedAction for intention confirmation dialogs (#9398) 2020-12-15 16:33:05 +00:00
John Cowen c24c70af46
ui: Dev/Test environment configurable metrics (#9345)
In order to test certain setups for our metrics visualizations we need to be able to setup several different `ui_config` settings during development/testing. Generally in the UI, we use the Web Inspector to set various cookie values to configure the UI how we need to see it whilst developing, so this PR:

1. Routes `ui_config` through a dev time only `CONSUL_UI_CONFIG` env variable so we can change it via cookies vars.
2. Adds `CONSUL_METRICS_PROXY_ENABLE`, `CONSUL_METRICS_PROVIDER` and `CONSUL_SERVICE_DASHBOARD_URL` so it's easy to set/unset these only values during development.
3. Adds an acceptance testing step so we can setup `ui_config` to whatever we want during testing.
4. Adds an async 'repository-like' method to the `UiConfig` Service so it feels like a repository - incase we ever need to get this via an HTTP API+blocking query.
5. Vaguely unrelated: we allow cookie values to be set via the location.hash whilst in development only e.g. `/ui/services#CONSUL_METRICS_PROXY_ENABLE=1` so we can link to different setups if we ever need to.

All values added here are empty/falsey by default, so in order to see how it was previously you'll need to set the appropriate cookies values, but you can now also easily preview/test the the metrics viz in different/disabled states (with differing `ui_config`)
2020-12-15 15:34:54 +00:00
John Cowen a1b3f00a69
ui: Show local datacenter by default on first visit (#9377)
* Add `Local` property to Datacenters

* If you have not previous datacenter, redirect the user to the local dc

* Add an `is-local` class to the local datacenter in the DC picker
2020-12-14 15:29:40 +00:00
John Cowen 493ebb0713
ui: Move linting to the `node:test` script (#9385)
* Reconfigure linting to be a node-test

* Fixup linting across the project
2020-12-14 15:28:35 +00:00
John Cowen 13fb1445c0
ui: Add External Sources Filter to Node > Service Instances (#9368)
* Add service collections to get all ExternalServices

* Add a basic collection helper

* Use the collections to get all ExternalSources

* Remove old Controllers
2020-12-14 14:25:33 +00:00
John Cowen 32a0b757d0
ui: Controller dead code removal (#9367)
* ui: Controller dead code removal

This commit removes a little code that became 'dead' as a result of
previous PRs/commits

* Remove a little more from the settings Controller

* Remove CSS related to being able to set the dashboard_url in settings
2020-12-11 11:43:13 +00:00
John Cowen eb85b858d9
ui: Improved Discovery Chain resizing (#9360)
* install on-resize modifier

* Rerrange things to use on-resize modifier for positioning
2020-12-11 09:38:33 +00:00
John Cowen 8d52d8a1d4
ui: Remove random undefined from codemod run (#9370) 2020-12-11 09:33:43 +00:00
John Cowen 16745b04a6
ui: Use pill/badge components for intention filter options (#9357) 2020-12-09 19:12:57 +00:00
John Cowen 7f4cd240b8
ui: Remove old style 'filterable' searching (#9356)
* Switch upstream-instances to use new style of searchable

* Add search action to DataCollection plus basic README

* Use DataCollection for PowerSelect searching in child-selectors

* Remove old style filterable search for role/policies and instances

* Remove old helpers/components related to search/sort/filter
2020-12-09 19:12:17 +00:00
Kenia 778a1bb016
ui: Send item name down to Stats to call endpoint (#9358)
* Refactor Stats and Series components

* Remove unused variable from being passed down to Stats

* Add item name to be passed down to Stats
2020-12-09 13:49:34 -05:00
John Cowen b991588764
ui: Update UI README (#9346) 2020-12-09 18:41:08 +00:00
John Cowen 493cda4bd7
ui: New search/sort/filtering bar for Node > ServiceInstances (#9326)
* Model layer changes to turn Node:ServiceInstances into hasMany

We tried to make something that feels a little like ember-data yet
not leave our approach of re-shaping the JSON directly from the
response.

1. We added transformHasManyResponse for re-shaping JSON for hasMany
relationships. we avoided the normalize word as ember-data serialize
methods usually return something JSON:API shaped and we distinctly don't
want to do that. Transform was the best word we could think of.

2. The integration tests across all of our models here feel very much
like those types of tests that aren't really testing much, or assert
too much to an extent that they get in the way rather than be of any
use. I'd very much like to move a lot of this to unit tests. Currently
most of the fingerprinting functionality is unit tested and these
integration tests were originally to give confidence that IDs and
related properties were being added correctly.

3. We've added a hasMany relationship, but not the corresponding
belongsTo - yet at least. We don't require the belongsTo right now, and
if we do  we can add it later.

* Integrate ServiceInstance search bar for Node:ServiceInstances

* Hide Node.Meta when on the Node:ServiceINstance page

We use a little string replace hack here for a human-like label, this is
soon to be replaced with proper i10n replacement

* Always ensure that a Namespace is set, and add comment explaining
2020-12-09 13:08:30 +00:00
John Cowen c5978b71e8
ui: Change URI helper to a template based approach (#9344)
This moves our uri helper to use a the template renderer we already have for rendering URLs.
2020-12-09 09:22:46 +00:00
John Cowen 7dc1a91edf
ui: document-attrs helper (#9336)
This commit adds a {{document-attrs}} helper, specifically for adding attributes to the root documentElement, which in our case is always <html>
2020-12-09 09:22:01 +00:00
Kenia 811703c302
ui: Refactor topology components (#9339)
* Refactor Stats and Series components

* Refactor metrics error message for ingress-gateway

* Fix upLines icon positioning

* Remove unused variable from being passed down to Stats
2020-12-08 10:47:55 -05:00
John Cowen 0ca087cc77
ui: Native-ize class based helpers (#9337)
* Install ember-decorators/observes

* Remove filter-predicate

* Nativize `env` and inject env service

* Nativize all other class based helpers
2020-12-08 09:27:28 +00:00
John Cowen bf71d76709
ui: Lowercase the word 'instance' in Service listings (#9333) 2020-12-08 09:27:00 +00:00
John Cowen f0c8040141
ui: Don't pluralize words when there is only 1 of the item (#9321) 2020-12-07 09:19:22 +00:00
John Cowen 23adad684b
ui: HealthCheck Search/Sort/Filtering (#9314)
* Adds model layer changes around HealthChecks

1. Makes a HealthCheck model fragment and uses it in ServiceInstances and
Nodes
2. Manually adds a relationship between a ServiceInstance and its
potential ServiceInstanceProxy
3. Misc changes related to the above such as an Exposed property on
MeshChecks, MeshChecks itself

* Add a potential temporary endpoint to distinguish ProxyServiceInstance

* Fix up Node search bar class

* Add search/sort/filter logic

* Fixup Service default sort key

* Add Healthcheck search/sort/filtering

* Tweak CSS add a default Type of 'Serf' when type is blank

* Fix up tests and new test support

* Add ability to search on Service/Node name depending on where you are

* Fixup CheckID search predicate

* Use computed for DataCollection to use caching

* Alpha sort the Type menu

* Temporary fix for new non-changing style Ember Proxys

* Only special case EventSource proxies
2020-12-07 09:14:30 +00:00
John Cowen 1a05bba216
ui: ServiceInstance.Name should be the Service.Name, never the Service.ID (#9316)
* ui: ServiceInstance.Name should be the Service.Name, never the ID

The ServiceInstance.ID should try Service.ID and fallback to
Service.Name, not ServiceInstance.Name. ServiceInstance.Name is just an
alias to Service.Name which is always set.
2020-12-03 09:14:59 +00:00
John Cowen 89a70502e6
ui: Reorganize Tabs CSS (#9313) 2020-12-02 15:48:06 +00:00
John Cowen a0edd6d664
ui: Asyncify Service Model Hooks (#9312)
* ui: Add Kind grouping computed properties

* Use new computed properties and move model hooks to async methods
2020-12-02 15:42:18 +00:00
John Cowen 6ef7c15e51
ui: New overlays (#9305)
Replaces ember-popover with tippy.js based overlay modifier.
2020-12-02 09:43:34 +00:00
John Cowen 7d8ea08da7
ui: Add 'Search Across' for finer grained searching (#9282) 2020-12-01 15:45:09 +00:00
John Cowen ff93782782
ui: Move identity components (#9298) 2020-11-30 18:42:59 +00:00
John Cowen ca25033c56
ui: Add copyable IDs to the Role and Policy views (#9296) 2020-11-30 17:28:33 +00:00
John Cowen 7e9b7f4143
ui: Moves healthcheck list to Glimmer template-only consul component (#9293) 2020-11-30 17:22:43 +00:00
John Cowen d09ff9a1b6
ui: Remove unused helpers or swap for helpers in ember-string-fns (#9294)
* ui: Remove unused helpers or swap for helpers in ember-string-fns

* starts-with > string-starts-with
2020-11-30 17:19:44 +00:00
John Cowen 2b84a3b5e1
ui: Round Trip Time Tooltips (#9290) 2020-11-30 17:02:54 +00:00
John Cowen 62850759c5
ui: Modifier based tooltips (#9288) 2020-11-30 16:52:13 +00:00
John Cowen 59a998c23a
ui: Nestable DataSources (plus glimmer upgrade) (#9275) 2020-11-30 15:05:16 +00:00
John Cowen d010d1b6d0 ui: Add copyable IDs to the Role and Policy views 2020-11-30 14:42:57 +00:00
John Cowen 857fa51fdb
ui: Change metrics link documentation link (#9281)
* ui: Change metrics link documentation link

* Update ui/packages/consul-ui/app/components/topology-metrics/index.hbs

Co-authored-by: Blake Covarrubias <blake@covarrubi.as>
2020-11-27 15:41:13 +00:00
John Cowen 36596e55f5
ui: Ensure the per item logout button logs you out (#9269) 2020-11-24 17:47:53 +00:00
John Cowen 9c5f525bf3
ui: Include nspace in up/downstream link when nspaces are enabled (#9257) 2020-11-24 14:33:34 +00:00
Kenia 39de16af2b
ui: Card component nspace refactor (#9228)
* Refactoring conditional for showing nspaces

* Styling empty state for Stats component
2020-11-19 13:40:05 -05:00
John Cowen 0ba658b74d
ui: Alter background color of filter bars (#9238) 2020-11-19 16:07:58 +00:00
John Cowen b15049aabf
ui: Surface 'detail' of API errors in the error page (#9237)
* ui: Surface 'detail' of API errors in the error page

* Make UI generated 404s look less bare
2020-11-19 16:07:23 +00:00
John Cowen 6413f71bb5
ui: ACL Tokens > Roles and Policy search and sort (#9236)
* ui: Ensure search is enabled for child items in the ACLs area

* Refactor comparators to reuse some utility functions

* Add search and sorting to the ACLs child selector

* Add tests for searching within child selectors

* Allow sorting by CreateIndex
2020-11-19 16:06:39 +00:00
John Cowen 2f0ce62228
ui: Sort lists with health by unhealthy/healthy by default (#9234)
* ui: Update lists with Health to sort by unhealthy/healthy by default

* Fix up tests for new sorting

* Make specific services page-navigation test
2020-11-19 16:05:46 +00:00
John Cowen 1332c312b3
ui: All metrics cards should default to the default nspace if not set (#9223)
* ui: All metrics cards should default to the default nspace if not set

* Use the up/downstream as the data/nspace for up/downstreams not the service
2020-11-19 16:03:26 +00:00
John Cowen 4eb64e0dea
ui: Remove ghost healthcheck from the service instance healthcheck list (#9220)
* ui: Fixup service instance healthcheck list not to show ghost check

If the proxy is undefined, then an undefined vaule is appended to the
list of checks

* There are only 6 checks in the mocks so only expect 6
2020-11-19 15:59:27 +00:00
Kenia 1b4c8a5515
ui: Fix empty state conditional for Series Graph (#9221) 2020-11-18 14:02:13 -05:00
Kenia a36c09a95a
ui: Fix mutated nspace argument (#9222) 2020-11-18 14:01:35 -05:00
John Cowen bc5bc038d1
ui: Refactor tomography graph component to glimmer and remove deprecation (#9219)
* ui: Refactor tomograph graph component to glimmer and remove deprecation

* Avoid ember-data deprecation error
2020-11-18 18:55:59 +00:00
John Cowen 3b093f7b7c
ui: Remove ember-computed-style to avoid deprecation error (#9218) 2020-11-18 18:55:30 +00:00
John Cowen 077520c247
ui: Change title helper to page-title (#9211) 2020-11-18 11:11:30 +00:00
John Cowen 916d525ce8
ui: Add triple curlies and reformat style attribute (#9210) 2020-11-18 11:11:02 +00:00
Freddy 2763833d32
Add DC and NS support for Envoy metrics (#9207)
This PR updates the tags that we generate for Envoy stats.

Several of these come with breaking changes, since we can't keep two stats prefixes for a filter.
2020-11-16 16:37:19 -07:00
John Cowen 4515d6141b
ui: Replace NaN and undefined metrics values with `-` (#9200)
* ui: Add functionality to metrics mocks:

1. More randomness during blocking queries
2. NaN and undefined values that come from prometheus
3. General trivial amends to bring things closer to the style of the
project

* Provider should always provide data as a string or undefined

* Use a placeholder `-` if the metrics endpoint responds with undefined data
2020-11-16 15:22:24 +00:00
John Cowen 8a954f0639
ui: Search/sort improvements (#9183) 2020-11-13 15:55:40 +00:00
Kenia c6672da331
ui: Pass down nspace and dc from Service model down to prometheus request (#9175)
* Pass down nspace and dc from Service model down to prometheus request

* Reviewing notes fix-ups

* Fix on dc/nspace to send from upstream/downstream card
2020-11-13 10:39:00 -05:00
John Cowen f68d989d84
ui: Upstream Instance Search and Sort (#9172)
* ui: Add predicate, comparator and necessary files for the search/sort

* Implement search and sort for upstream instance list

* ui: Tweak CSS so its all part of the component

* Remove the old proxy test attribute
2020-11-12 18:45:11 +00:00
Kenia 285962b25b
ui: Topology Intentions Popovers (#9137)
* Refactor grid styling for Topology page

* Crate TopologyMetrics Button component and move styling

* Create intention ID

* fixup button styling

* Return a link to the create intention page

* Rename Button to Popover component

* Fixup serializer test

* ui: Inline Topology Intention Actions  (#9153)

* Add arrow and dot to/from metrics back in

* Add addional space to have metrics wrap and show in smaller screens

* Move logic for finding positioning

* Use color variables

Co-authored-by: John Cowen <johncowen@users.noreply.github.com>
2020-11-12 10:40:15 -05:00
John Cowen 67b70878f3
ui: Add vendor directory as a target for JS linting and lint (#9157)
* ui: Add vendor for js linting

* Lint all the things
2020-11-11 16:59:15 +00:00
John Cowen 70f8533f62
ui: Move discovery chain component (#9154) 2020-11-11 14:43:37 +00:00
Kenia 4d4226ee38
ui: Delete Proxy Info tab (#9141)
* Remove Proxy Info and create Upstreams and Exposed Paths tabs

* Update routes formatting

* Update typo for Expose.Checks

* Remove, update, and add tests

* Make consul-upstream-instance-list into a glimmer component

* Create styling for upstream-instance-list component
2020-11-10 11:31:47 -05:00
John Cowen 12abaaacf2
ui: Correct AdapterError import (#9147) 2020-11-10 14:36:45 +00:00
John Cowen 10c90171c9
ui: Remove unnecessay reopens from sort and form services (#9146) 2020-11-10 14:36:27 +00:00
John Cowen 5c18dc099f
ui: Move ember-data classes to use native JS classes/decorators (#9136)
* ui: Upgrade ember-data models to use native classes/decorators

* ui: Update remaining ember-data imports

* ui: Move ember-data Adapters to use native classes

* ui: Upgrade serializers to native classes/decorators

* ui: remove meta from roles, they never had it to start with
2020-11-09 17:29:12 +00:00
John Cowen ef01ea18f1
ui: Run Ember native class code mod (#9093)
* ui: Apply native class codemod to all services

* ui: Apply native class codemod to routes

* ui: Apply native class codemod to controllers

* Fix up ember proxy `content` issue

* Add a CreateTime on policy creation

* Minor formatting

* Convert child based saving to use ec instead of custom approach

* Remove custom event source repo wrapping initializer

* Repos here are no longer proxy objects revert to using them normally

* Remove areas of code that were used to set up source backed repos
2020-11-09 09:25:35 +00:00
John Cowen 227e7895e5
ui: Move notice storybook to use controls addon (#9126) 2020-11-09 09:14:51 +00:00
Mike Morris 97940f3b1d
ui: remove consul-api-double from yarn.lock (#9115) 2020-11-06 20:46:23 -05:00
John Cowen 7430ba3667
ui: Ensure per service intentions link to the correct place (#9122)
* ui: Add a separate routeNsme to the per service intention listing

* Add a test to make sure we go through to per service intention form
2020-11-06 14:57:29 +00:00
John Cowen 1b042943e9
ui: Intention "Action change" warning modal (#9108)
* ui: Add a warning dialog if you go to remove permissions from an intention

* ui: Move modal styles next to component, add warning style

* ui: Move back to using the input name for a selector

* ui: Fixup negative "isn't" step so its optional

* Add warning modal to pageobject

* Fixup test for whether to show the warning modal or not

* Intention change action warning acceptence test

* Add a null/undefined Action
2020-11-06 14:57:19 +00:00
John Cowen 137f7d0a92
ui: Default to glimmer components (#9121) 2020-11-06 14:54:44 +00:00
John Cowen 9f938f8d81
ui: Move gitignore file to workspace root and add storybook ignores (#9120) 2020-11-06 14:50:39 +00:00
John Cowen 6d37c5d446
ui: Move AppError and ErrorState to glimmer components (#9095)
* ui: move AppError and ErrorState to glimmer components

* yarn.lock changes
2020-11-06 09:24:17 +00:00
Kenia 068af04aa6
ui: Fix up typo for the UI config template url (#9109) 2020-11-05 14:04:40 -05:00
John Cowen 5875e4b15b
ui: Move mocks into the ui project (#9084)
* Add consul-api-double under api

* Update config to reflect api change

* Remove consul-api-double as a dependency

* api -> mock-api

* Fixup mocks path for staging
2020-11-05 16:03:49 +00:00
John Cowen 2cb057ac91
ui: Metrics - Provide a fetch-like http client that automatically adds the current ACL token (#9094)
* Remove local httpGet and shim one in from options

* Add custom httpGet to pass through to provider

* Make a fetch wrapper that adds your token

* Pass the fetch like fetchWithToken wrapper through to the provider

* Fix up httpGet to encode query params again and use fetch-like
2020-11-04 09:33:37 +00:00
John Cowen 17333e90ce
ui: Storybook Install (#9049)
* ui: Install storybook into the main project

* Add a basic story for a notice

* Remove empty dependencies
2020-11-03 14:09:39 +00:00
Kenia 10aa848005
ui: Update to not return metrics for ingress gateways (#9081) 2020-11-02 13:38:43 -05:00
John Cowen bc4d1f9b65
ui: Remove string casting when passing index/checked for dropmenus (#9077)
* ui: Remove string casting when passing index/checked

* Check for e.target
2020-11-02 16:07:08 +00:00
John Cowen a4f6313aa5
ui: Use eslint vs ember-cli-lint, sass vs dart-sass (#9078)
These two dependency changes means that @hashicorp/pds-ember can be
installed and used without any build/dependency issues
2020-11-02 14:35:10 +00:00
R.B. Boyer e0459f4405
ui: make metrics work again (#9072)
Fixes regression from #9040
2020-10-30 10:21:57 -05:00
Mike Morris c4321797da
ui: Update node_modules deps path in GNUMakefile (#9066)
Updates `node_modules` path/makefile target to fix top-level `make ui` command.
2020-10-29 13:28:55 -05:00
John Cowen a4ec445fb6
ui: Metrics - Don't swallow metrics errors (#9044)
* ui: Make eventsources use http-like errors for stopping

* ui: Don't swallow errors from prometheus, pass them to the ui to handle
2020-10-27 14:51:15 +00:00
John Cowen b190bf0c3f
ui: Delete old yarn lock file (#9046)
* Update the make file to look for node_modules in the workspace

* Delete old travis file
2020-10-27 14:26:42 +00:00
Kenia 166f40837a
ui: Remove downstream dc filter (#9040)
* Remove datacenter filter and update props passed down

* Merging changes fixed

* Fixup tests for metrics link
2020-10-27 10:25:23 -04:00
Kenia b7f81249e8
ui: Topology limited access banner (#9041)
* Add limited access banner to Topology tab based on ACLs

* Update to folder structure
2020-10-27 10:04:22 -04:00
John Cowen 77b97a4ae4
ui: Upgrade consul-api-double to fix datacenter mocks (#9045) 2020-10-27 13:31:57 +00:00
Paul Banks df1eec292f
UI metrics provider dc (#9001)
* Plumb Datacenter and Namespace to metrics provider in preparation for them being usable.

* Move metrics loader/status to a new component and show reason for being disabled.

* Remove stray console.log

* Rebuild AssetFS to resolve conflicts

* Yarn upgrade

* mend
2020-10-26 19:48:23 +00:00
John Cowen cf3e353573
ui: Upgrade the rest of the UI to use the new Notice component (#9035) 2020-10-26 16:51:53 +00:00
John Cowen 37e6047aa8
ui: Intention Custom Resource Banners (#9018) 2020-10-26 09:30:07 +00:00
John Cowen 0364f3abac
ui: Initial Intention Permission Integration and acceptance testing (#9003) 2020-10-23 17:26:06 +01:00
John Cowen cf2665e2ba
ui: Fixup CSS for create pages (#9019) 2020-10-23 15:41:36 +01:00
Kenia e82004c01a
ui: Fix the pointer events to view the tooltips when hovering over the icons (#9014)
* Fix the pointer events to view the tooltips when hovering over the icons

* Update to use class instead of id
2020-10-23 09:45:39 -04:00
Kenia fc62f50c32
ui: Prevent redirect to topology url and hide Topology tab if service has no services (#9008)
* Prevent redirect to topology url and hide Topology tab if service has no proxies

* Remove unused computed function from topology model

* Fix up tests

* Remove use of Exists computed function

* Add tests for hiding topology tab
2020-10-23 09:45:10 -04:00
Kenia 0733af1a5f
ui: Update Topology metrics dashboard and configuration links (#9002)
* Update Topology metrics dashboard and configuration links

* Fixup tests

* Remove Dashboard Link from settings page

* Removing use of settings Dashboard links
2020-10-23 09:44:38 -04:00
John Cowen e9c3eb1a8a
ui: Notice component (#9011)
Add simple Notice template only glimmer component
2020-10-23 09:26:32 +01:00
John Cowen c98130cc08
ui: Move to Workspaced Structure (#8994)
* ui: Add the most basic workspace root in /ui

* We already have a LICENSE file in the repository root

* Change directory path in build scripts ui-v2 -> ui

* Make yarn install flags configurable from elsewhere

* Minimal workspace root makefile

* Call the new docker specific target

* Update yarn in the docker build image

* Reconfigure the netlify target and move to the higher makefile

* Move ui-v2 -> ui/packages/consul-ui

* Change repo root to refleect new folder structure

* Temporarily don't hoist consul-api-double

* Fixup CI configuration

* Fixup lint errors

* Fixup Netlify target
2020-10-21 15:23:16 +01:00
Freddy 73f8286099
Remove old UI, option to use it, and its build processes 2019-04-12 09:02:27 -06:00
Hans Hasselberg ed7eeb9404
update ffi to dodge CVE-2018-1000201 (#4670) 2018-09-14 11:22:48 +02:00
John Cowen ad1641beba Remove upgrade banner html from v1 ui 2018-06-22 17:51:43 +01:00
Paul Banks 6108205ff6
v1.1.0 UI Build 2018-05-11 17:05:20 +01:00
John Cowen ca15998b51
UI V2 (#4086)
* Move settings to use the same service/route API as the rest of the app

* Put some ideas down for unit testing on adapters

* Favour `Model` over `Entity`

* Move away from using `reopen` to using Mixins

* Amend messages, comment/document some usage

* Make sure the returns are consistent in normalizePayload, also

Add some todo's in to remind me to think consider this further at a
later date. For example, is normalizePayload to be a hook or an
overridable method

* Start stripping back the HTML to semantics

* Use a variable rather than chaining

* Remove unused helpers

* Start picking through the new designs, start with listing pages

* First draft HTML for every page

* Making progress on the CSS

* Keep plugging away at the catalog css

* Looking at scrolling

* Wire up filtering

* Sort out filter counting, more or less done a few outstanding

* Start knocking the forms into shape

* Add in codemirror

* Keep moving forwards with the form like layouts

* Start looking at ACL editing page, add footer in

* Pull the filters back in, look at an autoresizer for scroll views

* First draft toggles

* 2nd draft healthcheck icons

* Tweak node healthcheck icons

* Looking at healthcheck detail icons

* Tweak the filter-bar and add selections to the in content tabs

* Add ACL create, pill-like acl type highlight

* Tweaking the main nav some more

* Working on the filter-bar and freetext-filter

* Masonry layout

* Stick with `checks` instead of healthy/unhealthy

* Fix up the filter numbers/counts

* Use the thead for a measure

* First draft tomography back in

* First draft DC dropdown

* Add a temporary create buttong to kv's

* Move KV and ACL to use a create page

* Move tags

* Run through old tests

* Injectable server

* Start adding test attributes

* Add some page objects

* More test attributes and pages

* Acl filter objects

* Add a page.. page object

* Clickable items in lists

* Add rest/spread babel plugin, remove mirage for now

* Add fix for ember-collection

* Keep track of acl filters

* ember-cli-page-object

* ember-test-selectors

* ui: update version of ui compile deps

* Update static assets

* Centralize radiogroup helper

* Rejig KV's and begin to clean it up

* Work around lack of Tags for the moment..

* Some little css tweaks and start to remove possibles

* Working on the dc page and incidentals

1. Sort the datacenter-picker list
2. Add a selected state to the datacenter-picker
3. Make dc an {Name: dc}
4. Add an env helper to get to 'env vars' from within templates

* Click outside stuff for the datacenter-picker, is-active on nav

* Make sure the dropdown CTA can be active

* Bump ember add pluralize helper

* Little try at sass based custom queries

* Rejig tablular collection so it deals with resizing, actions

1. WIP: start building actions dropdowns
2. Move tabular collection to deal with resizing to rule out differences

* First draft actions dropdowns

* Add ports, selectable IP's

* Flash messages, plus general cleanup/consistency

1. Add ember-cli-flash for flash messages
2. Move everything to get() instead of item.get
3. Spotted a few things that weren't consistent

* DOn't go lower than zero

* First draft vertical menu

* Missed a get, tweak dropmenu tick

* Big cleanup

1. this.get(), this.set() > get(), set()
2. assign > {...{}, ...{}}
3. Seperator > separator

* WIP: settings

* Moved things into a ui-v2 folder

* Decide on a way to do the settings page whilst maintaining the url + dc's

* Start some error pages

* Remove base64 polyfill

* Tie in settings, fix atob bug, tweak layout css

* Centralize confirmations into a component

* Allow switching between the old and new UI with the CONSUL_UI_BETA env var

Currently all the assets are packaged into a single AssetFS and a prefix is configured to switch between the two.

* Attempt at some updates to integrate the v2 ui build into the main infrastructure

* Add redirect to index.html for unknown paths

* Allow redictor to /index.html for new ui when using -ui-dir

* Take ACLs to the correct place on save

* First pass breadcrumbs

* Remove datacenter selector on the index page

* Tweak overall layout

* Make buttons 'resets'

* Tweak last DC stuff

* Validations plus kv keyname viewing tweaks

* Pull sessions back in

* Tweak the env vars to be more reusable

* Move isAnon to the view

* No items and disabled acl css

* ACL and KV details

1. Unauthorized page
2. Make sure the ACL is always selected when it needs it
3. Check record deletion with a changeset

* Few more acl tweaks/corrections

* Add no items view to node > services

* Tags for node > services

* Make sure we have tags

* Fix up the labels on the tomography graph

* Add node link (agent) to kv sessions

* Duplicate up `create` for KV 'root creation'

* Safety check for health checks

* Fix up the grids

* Truncate td a's, fix kv columns

* Watch for spaces in KV id's

* Move actions to their own mixins for now at least

* Link reset to settings incase I want to type it in

* Tweak error page

* Cleanup healthcheck icons in service listing

* Centralize errors and make getting back easier

* Nice numbers

* Compact buttons

* Some incidental css cleanups

* Use 'Key / Value' for root

* Tweak tomography layout

* Fix single healthcheck unhealthy resource

* Get loading screen ready

* Fix healthy healthcheck tick

* Everything in header starts white

* First draft loader

* Refactor the entire backend to use proper unique keys, plus..

1. Make unique keys form dc + slug (uid)
2. Fun with errors...

* Tweak header colors

* Add noopener noreferrer to external links

* Add supers to setupController

* Implement cloning, using ember-data...

* Move the more expensive down the switch order

* First draft empty record cleanup..

* Add the cusomt store test

* Temporarily use the htmlSafe prototype to remove the console warning

* Encode hashes in urls

* Go back to using title for errors for now

* Start removing unused bulma

* Lint

* WIP: Start looking at failing tests

* Remove single redirect test

* Finish off error message styling

* Add full ember-data cache invalidation to avoid stale data...

* Add uncolorable warning icons

* More info icon

* Rearrange single service, plus tag printing

* Logo

* No quotes

* Add a simple startup logo

* Tweak healthcheck statuses

* Fix border-color for healthchecks

* Tweak node tabs

* Catch 401 ACL errors and rethrow with the provided error message

* Remove old acl unauth and error routes

* Missed a super

* Make 'All' refer to number of checks, not services

* Remove ember-resizer, add autoprefixer

* Don't show tomography if its not worth it, viewify it more also

* Little model cleanup

* Chevrons

* Find a way to reliably set the class of html from the view

* Consistent html

* Make sure session id's are visible as long as possible

* Fix single service check count

* Add filters and searchs to the query string

* Don't remember the selected tab

* Change text

* Eror tweaking

* Use chevrons on all breadcrumbs even in kv's

* Clean up a file

* Tweak some messaging

* Makesure the footer overlays whats in the page

* Tweak KV errors

* Move json toggle over to the right

* feedback-dialog along with copy buttons

* Better confirmation dialogs

* Add git sha comment

* Same title as old UI

* Allow defaults

* Make sure value is a string

* WIP: Scrolling dropdowns/confirmations

* Add to kv's

* Remove set

* First pass trace

* Better table rows

* Pull over the hashi code editor styles

* Editor tweaks

* Responsive tabs

* Add number formatting to tomography

* Review whats left todo

* Lint

* Add a coordinate ember data triplet

* Bump in a v2.0.0

* Update old tests

* Get coverage working again

* Make sure query keys are also encoded

* Don't test console.error

* Unit test some more utils

* Tweak the size of the tabular collections

* Clean up gitignore

* Fix copy button rollovers

* Get healthcheck 'icon icons' onto the text baseline

* Tweak healthcheck padding and alignment

* Make sure commas kick in in rtt, probably never get to that

* Improve vertical menu

* Tweak dropdown active state to not have a bg

* Tweak paddings

* Search entire string not just 'startsWith'

* Button states

* Most buttons have 1px border

* More button tweaks

* You can only view kv folders

* CSS cleanup reduction

* Form input states and little cleanup

* More CSS reduction

* Sort checks by importance

* Fix click outside on datacenter picker

* Make sure table th's also auto calculate properly

* Make sure `json` isn't remembered in KV editing

* Fix recursive deletion in KV's

* Centralize size

* Catch updateRecord

* Don't double envode

* model > item consistency

* Action loading and ACL tweaks

* Add settings dependencies to acl tests

* Better loading

* utf-8 base64 encode/decode

* Don't hang off a prototype for htmlSafe

* Missing base64 files...

* Get atob/btoa polyfill right

* Shadowy rollovers

* Disabled button styling for primaries

* autofocuses only onload for now

* Fix footer centering

* Beginning of 'notices'

* Remove the isLocked disabling as we are letting you do what the API does

* Don't forget the documentation link for sessions

* Updates are more likely

* Use exported constant

* Dont export redirectFS and a few other PR updates

* Remove the old bootstrap config which was used for the old UI skin

* Use curlies for multiple properties
2018-05-10 19:52:53 +01:00
John Cowen 9a53562417 Fix typo ot > to 2018-05-10 18:51:13 +01:00
John Cowen 8567ed6175 Add v2 notification banner at the top of the page 2018-05-10 17:17:12 +01:00
Kyle Havlovitz 2ac0669362
Update static assets 2018-04-13 10:05:30 -07:00
Jack Pearkes 62190439c4 ui: update version of ui compile deps 2018-04-13 09:40:46 -07:00
Josh Soref 1dd8c378b9 Spelling (#3958)
* spelling: another

* spelling: autopilot

* spelling: beginning

* spelling: circonus

* spelling: default

* spelling: definition

* spelling: distance

* spelling: encountered

* spelling: enterprise

* spelling: expands

* spelling: exits

* spelling: formatting

* spelling: health

* spelling: hierarchy

* spelling: imposed

* spelling: independence

* spelling: inspect

* spelling: last

* spelling: latest

* spelling: client

* spelling: message

* spelling: minimum

* spelling: notify

* spelling: nonexistent

* spelling: operator

* spelling: payload

* spelling: preceded

* spelling: prepared

* spelling: programmatically

* spelling: required

* spelling: reconcile

* spelling: responses

* spelling: request

* spelling: response

* spelling: results

* spelling: retrieve

* spelling: service

* spelling: significantly

* spelling: specifies

* spelling: supported

* spelling: synchronization

* spelling: synchronous

* spelling: themselves

* spelling: unexpected

* spelling: validations

* spelling: value
2018-03-19 16:56:00 +00:00
John Cowen 12f36415a4 Fixes erroneous closed <p> tag 2018-01-16 11:29:55 +00:00
James Phillips 3a311b7a18
Manually patches handlebars JS to escape = to prevent XSS. 2017-12-20 19:49:06 -08:00
James Phillips 2c0d7ae4f2
Fixes a JS error that came in as part of #3760. 2017-12-20 17:40:47 -08:00
James Phillips bd9bd8c119
Wraps the key in a property that URL encodes it. 2017-12-20 10:19:50 -08:00
James Phillips 8aeb821bee
Delete development_config.json 2017-11-08 23:43:40 -08:00
James Phillips 39f2359804 Fixes an XSS issue with unescaped node names. (#3578)
* Fixes an XSS issue with node names in the tomography graph.

* Updates built-in static web assets.

* Updates the change log.
2017-10-16 09:12:36 -07:00
James Phillips 539285cf1f
Updates checked in web assets to pick up CSS change.
Closes #3521
2017-10-04 09:52:15 -07:00
Cyril Gaudin d852ee05cd ui: Use monospace font for textarea controls. 2017-10-02 15:49:20 +02:00
Kyle Havlovitz d9fc2b3d75
Update coord display in ui to account for segments 2017-08-30 11:58:29 -07:00
James Phillips 219fb6dd70 UI cleanup follow up from #3245. (#3251)
* Removes unnecessary set for model component which will be null.

* Returns a 404 for a missing node, not a 200 with an empty response.

* Updates built-in web assets.
2017-07-10 09:40:00 -07:00
James Phillips c849458d9b Changes the default ACL token type to "client" in web UI. (#3246)
* Changes the default ACL token type to "client".

* Updates built-in web assets.
2017-07-08 17:28:04 -07:00
James Phillips 0a17a8284f Cleans up web UI and fixes ACL token "stuckness" issue. (#3245)
* Removes GitHub reference.

* Doesn't display ACL token on the unauthorized page.

* Removes useless fetch for nodes and cleans up comments.

* Provides a path to reset the ACL token when it's invalid.

This included making the settings page global so it's reachable, and adding
some more information about an error on the error page.

* Updates built-in web assets.
2017-07-08 17:16:05 -07:00
James Phillips e32b42a222
Updates static assets to latest. 2017-06-07 21:16:59 -07:00
James Phillips 62ee3435e8 Merge pull request #2812 from naaaargle/master
UI Improvement: Add sticky scroll to side panel
2017-05-18 10:28:28 -04:00
Brian Shumate 5b4cf71b38
Use updated ACL guide URL instead 2017-05-05 11:43:06 -04:00
Brian Shumate 601ca89516
UI: open docs links in new tab
- set `target="_blank"` on all docs URLs
2017-05-05 11:19:53 -04:00
James Phillips 0e3d93a0bd Revert "UI: remove ACL ID from the left list" 2017-05-02 14:28:56 -07:00
Seth Vargo 2f8f0b2320 Merge pull request #2517 from bhuisgen/feature/ui-remove-acl-id-from-list
UI: remove ACL ID from the left list
2017-05-02 13:12:57 -07:00
James Phillips a3e1e8e7e5
Updates static assets to pick up #2712. 2017-05-02 10:52:06 -07:00
Jack 2489355975 Add JSON validation to update view
JSON validation has now been added to the update view following the same format
as create. Since 'valueDecoded' does not have the ability to check if the value
is base64 before decoding then this must be checked first; if it is base64 then
use the decoded one, if not just get the value.

Change incorrect trailing span close to label.
2017-05-02 17:20:36 +09:00
Jack cb73d83f1e Add JSON validation to UI
JSON validation added to UI. This has been implemented through the use of a flag
to enable/disable the functionality with a watcher on the value to set the
success/error class on the textarea itself.

No hard validation added to the field.
2017-05-02 17:20:35 +09:00
Brian Shumate 2310a21ff4
ui: Add favicon.png for Chrome
- This completes all favicon related additions and
  completely resolves error in Chrome
2017-04-25 16:11:19 -04:00
Brian Shumate 9b10d4a9d5 ui: Update index to fix #2945 (#2956) 2017-04-25 10:00:19 -07:00
Brian Shumate b264d5cfe3 ui: Add and update favicons (#2948)
ui: Add and update favicons

* Add most popular device/size favicon combinations
* Update existing favicons
* Change permissions to 0644 on static assets

Fixes #2945
2017-04-25 09:23:34 -07:00
James Phillips 1f40dc83e3
Updates static assets to pick up #2899. 2017-04-13 14:40:16 -07:00
Brian Shumate 22c058b115
Everything is pink now 2017-04-13 09:27:32 -04:00
Brian Shumate bf5b75b72c
Pink cylon image! 2017-04-12 20:21:51 -04:00
Brian Shumate 31bd1d0de3
UI: use new pink hues for active/primary btns 2017-04-12 19:32:10 -04:00
Brian Shumate a033e7477d
UI updates for new Consul logo
- Update consul-logo.png
- Update all favicons
- Update UI README
2017-04-12 18:58:06 -04:00
Terror 690c73ecb4 Update index.html
Correct link to the ACL guide.
2017-04-10 13:32:33 +12:00
Seth Vargo b3cd9acdae
Link to new api 2017-04-04 12:52:00 -04:00
Mary Nagle 32faa23d18 Add sticky scroll to side panel 2017-03-21 14:39:57 -04:00
Brian Shumate ef7a8704c5
UI: add notification for disabled JavaScript 2017-01-05 09:10:58 -05:00
Brian Shumate eee78bef83
Remove Deregister from UI for #2541
- Remove Deregister button
- Remove Deregister functionality
2016-11-30 11:07:04 -05:00
Brian Shumate dba25aacfa
Bootstrap w/o Glyphicons (resolves #2485)
- Remove reference to Glyphicon Halflings @fontface
- Remove unused Glphyicon related classes
2016-11-21 18:08:17 -05:00
Boris HUISGEN 71b97640df Remove ACL ID from the left list 2016-11-18 03:18:37 +01:00
James Phillips fb51976469 Merge pull request #2340 from kushniro/b-ui-tags-commas
UI: remove redundant commas in tags list (services view)
2016-11-17 16:36:15 -08:00
Blake Walters 8d4433c88f properly escape session and acl data in UI (#2456)
* update libv8 gem to something that compiles

* properly escape session and acl data in UI

fixes an XSS vulnerability caused by having the sessionName, sessionMeta, and aclName blindly returning data as Handlebars.SafeStrings
2016-10-31 18:16:43 -07:00
Omer Kushnir 362967f0c9 UI: remove redundant commas in tags list (services view)
When some services had no tags(Tags is null) and some did have tags redundant commas were added to the tags list.
2016-09-15 11:37:45 +03:00
James Phillips 8e8f840169
Updates built-in UI static assets to latest. 2016-08-12 18:01:59 -07:00
James Phillips c1f710755a Merge pull request #2055 from patrickbaber/master
Removes fixed height of node/service boxes.
2016-08-10 16:03:18 -07:00
James Phillips 2acb287690
Fixes JS exception when there are no coordinates present. 2016-08-08 17:38:22 -07:00
James Phillips 1955eadc12 Updates web assets to pull in RTT viz. 2016-06-07 09:32:44 -07:00
Ross McFarland c92f681944 Implement a first-pass of tomography node hover
Not at all using Emeber's facilities and no clue how to do so with this.
2016-05-18 10:05:16 -07:00
Ross McFarland 4501904313 Rework sampling to avoid 0 case and always include min and max 2016-05-18 09:50:30 -07:00
Ross McFarland 559dc4599e Sample tomography distances to cap number around 360 2016-05-17 12:57:02 -07:00
Ross McFarland 58c3b08134 Switch tomography to median rather than avg 2016-05-17 10:43:50 -07:00
Patrick Baber 88ab00f468 remove fixed height 2016-05-16 11:29:40 +02:00
Ross McFarland d756a552eb Handle no peers in tomography graph 2016-05-15 06:30:37 -07:00
Ross McFarland 8a9fe0239d Don't include self in tomography 2016-05-15 06:13:52 -07:00
Ross McFarland ba3c4fc3e3 Implementation of a per-node tomography graph
Adds a new section to the node information, Network Tomography. There's a radar
plot of the distances (in ms) between the current node and its peers as well as
min, avg, and max.
2016-05-14 18:35:09 -07:00
James Phillips 92040c2349 Merge pull request #1702 from far-blue/ui-configurable-api-url
Configurable consul host address
2016-03-18 21:05:00 -07:00
James Phillips cb1bf35ce9 Updates to latest compiled ui assets. 2016-03-07 13:49:08 -08:00
captainill 95337b7211 add announcement banner for Consul Enterprise launch 2016-03-03 12:23:30 -08:00
Robert Goldsmith 6cb5fba792 Included support to override the assumed location of the consul so you can run the UI on a normal web server potentially on a different host to your consul servers. 2016-02-09 13:26:48 +00:00
Sean Chittenden c0046e0f30 Acknowledge that we're using GNU make's dialect and rename appropriate
Makefiles to GNUmakefiles so that non-GNU make(1) will error out.  This
should be a transparent change to the universe of people using GNU make.
2016-02-05 14:24:26 -08:00
James Phillips 0fcdd37107 Fixes the static asset generator for new pkg path, updates assets. 2016-01-15 10:21:42 -08:00
Seth Vargo dc9131a732 Use HTTPS + www. where appropriate 2016-01-13 17:44:01 -05:00
James Phillips 35ef5fa975 Fixes a bad merge in the UI. 2016-01-02 06:58:21 -08:00
James Phillips 9f4ac9adc7 Merge pull request #1422 from railsguru/master
Propagate token in UI
2016-01-02 06:55:14 -08:00
Ryan Uber a262115679 agent: compile web assets into consul binary 2015-12-24 22:21:34 -05:00
Mike Oswell 6e23083bbd Add the token to /v1/internal/ui/nodes. (issue #1071) 2015-12-16 12:32:56 -08:00
Matthew Irish c403745a55 ui: swap unicode glyph with inline svg for the settings icon 2015-12-04 10:36:55 -06:00
Andy Lo-A-Foe 3dd740577c Propagate token in UI 2015-11-18 08:29:01 +01:00
James Phillips 0f0736cb27 Moves the static assets into a subfolder where index.html expects them. 2015-10-27 18:19:17 -07:00
Matthew Irish bc79b65f3f Merge pull request #1338 from hashicorp/js-cleaning
Clean up the JS a bit and make Ember code more idiomatic
2015-10-26 13:24:06 -05:00
Matthew Irish b45cde637f Show node status as failing if a service on the node is failing 2015-10-26 10:26:16 -05:00
Matthew Irish 2fe7dd1ea8 Clean up the JS a bit and make Ember code more idiomatic 2015-10-26 09:39:18 -05:00
Seth Vargo 7b2fc2f580 Use gox for building 2015-10-22 14:16:01 -04:00
David Adams 0c130994f7 UI formatURL: render null token correctly
If the token argument to formatURL is null, it should be rendered as the
empty string and not the string 'null'.

Should fix #1316 in which Safari gets a 403 error when visiting the
key/value page in the web UI.
2015-10-19 22:18:19 -05:00
Ryan Uber 10c38f8c3a website: document precedence of Atlas endpoint inputs 2015-08-27 17:54:56 -07:00
Jack Pearkes 1584b35e3b revert 8bf8871, fc2aad3, 503d338.
some misplaced UI development changes
2015-08-07 16:40:49 -07:00
Jack Pearkes 5bbc336a25 ui: update development config to not use ACLs to simplify life 2015-08-07 16:36:39 -07:00
Jack Pearkes 694285b596 ui: update gems for development 2015-08-07 16:36:29 -07:00
Jack Pearkes 2b05a38ede ui: add 'map' route and button, tighten up the nav to give space 2015-08-07 16:36:02 -07:00
孔晨 57dfd1f46a fix base64 issue 2015-07-23 15:56:23 +08:00
孔晨 3cd8a0c214 fix 中文乱码问题 2015-07-23 14:47:32 +08:00
Rafik Salama 479bc1c2db UI: Fix restoring state for service names containing slashes 2015-05-29 18:35:39 -04:00
Blake Walters 98f5d7f96e make sure button text overflow is set to ellipsis
fixes #549
2015-03-10 10:48:02 -07:00
Ryan Breen 53afd77e2d s/data center/datacenter/g 2015-02-19 17:45:47 -05:00
Jack Pearkes 96f1077d9d ui: fix listener on dc controller content
fixes #694
2015-02-19 11:48:03 -08:00
Armon Dadgar d51db8bf8e Change tabs to spaces 2015-02-18 15:09:48 -08:00
Armon Dadgar 8ee0b263e1 ui: Only set blank token if none set 2015-02-18 14:44:52 -08:00
Jack Pearkes df11bff8bb ui: add session behavior and ttl to UI
fixes #649
2015-02-11 18:51:30 -08:00
Jack Pearkes fd84191754 ui: update gemfile 2015-02-11 18:41:40 -08:00
Jack Pearkes e2b11a8e32 ui: add service address
fixes #686
2015-02-11 18:18:31 -08:00
Armon Dadgar 1088a5c170 Merge pull request #558 from ceh/http-api-response-headers
add ability to specify response headers on the HTTP API
2015-01-05 11:36:08 -08:00
Seth Vargo b62eb18b38 Update titles to be consistent with other sites 2014-12-30 13:18:25 -05:00
Emil Hessman db23a3f0e9 add ability to specify response headers on the HTTP API
Add an config object that allows adding HTTP header response fields to every
HTTP API response.

Each specified header is added to every response from all HTTP API endpoints.
Each individual endpoint may overwrite the specified header, which makes sure
that Consul headers such as 'X-Consul-Index' is enforced by the API.
2014-12-28 19:17:08 +01:00
Marin 781692e3a8 ui: confirm dialog only when deleting key directories #521 2014-12-06 12:00:51 -08:00
Marin bed14bb96f ui: ask for confirmation before deleting keys #520 2014-12-05 17:14:11 -08:00
Veres Lajos 850d5bdc32 typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 23:25:06 +00:00
Jack Pearkes 0f62bed1e5 ui: fix session name overflow
fixes #353
2014-10-15 16:19:14 -07:00
Jack Pearkes 6b39687351 ui: reload acls after creating
fixes #323
2014-10-15 15:55:53 -07:00
William Tisäter 06bf0bb728 Remove node from node list after deregristration 2014-10-04 18:14:36 +02:00
William Tisäter 5ce77e0aee Drop debug `console.log` 2014-10-04 11:52:27 +02:00
William Tisäter cb74d3efbb Fix leaking `objs` variables 2014-10-04 11:45:09 +02:00
William Tisäter dfd8967843 Add deregister node button 2014-10-04 11:44:50 +02:00
William Tisäter b915a92982 Hide vertical scrollbar in Safari 2014-09-19 11:07:15 +02:00
William Tisäter 44b357c316 UI fix for OS X when having scrollbars `always on`
Resolves #343.
2014-09-19 10:52:31 +02:00
lalyos b03ce98749 Change default token to empty string instead of undefined
fixes #329
2014-09-08 15:21:54 +02:00
Jack Pearkes ae6c70a4de ui: add footer 2014-09-05 15:56:50 -04:00
Armon Dadgar 88b11fbdaf website: implicit -> explicit 2014-09-02 20:48:25 -07:00
Jack Pearkes 0f5136f776 ui: ambient dc failing checks 2014-08-25 12:40:53 -07:00
Jack Pearkes 9435313f0c ui: use ACLs everywhere 2014-08-25 11:48:42 -07:00
Jack Pearkes a6f76a15b3 ui: don't uppercase acl id 2014-08-25 11:27:46 -07:00
Jack Pearkes 2637c6a945 ui: remove stray debugging 2014-08-22 17:31:07 -07:00
Jack Pearkes 4610df9c17 ui: small acl mobile fix 2014-08-22 17:30:25 -07:00
Jack Pearkes df4c5e955d ui: mobile fixes for acl 2014-08-22 17:22:21 -07:00
Jack Pearkes 16494e0308 ui: more touches on create acl 2014-08-22 17:22:14 -07:00
Jack Pearkes 7b729e10da ui: acl edit and creation 2014-08-22 17:22:10 -07:00
Jack Pearkes 70888180a4 ui: add notification system 2014-08-22 17:22:06 -07:00
Jack Pearkes 888e97ef50 ui: initial settings ui 2014-08-22 17:22:02 -07:00
Jack Pearkes 7a40350311 ui: more acl integration, condensing top bar 2014-08-22 17:21:57 -07:00
Jack Pearkes d4d50862c8 ui: use ember object to wrap localstorag 2014-08-22 17:21:48 -07:00
Jack Pearkes 16445baf00 ui: update readme for dev confi 2014-08-22 17:21:27 -07:00
Jack Pearkes 960362698d ui: add a development config 2014-08-22 17:21:20 -07:00
Jack Pearkes 570ddff381 ui: remove useless file 2014-08-22 17:21:16 -07:00
Jack Pearkes 7a1cbbb5e5 ui/acls: compact nav, add ACL and url helpers 2014-08-22 17:21:06 -07:00
Jack Pearkes e00941fa44 ui/acls: initial commit 2014-08-22 17:21:00 -07:00
Jack Pearkes 80d2f84359 ui/views: jshint 2014-08-21 12:31:39 -07:00
Jack Pearkes 3bf92404fd ui/routes: jshint 2014-08-21 12:14:33 -07:00
Jack Pearkes eb1d11f948 ui/models: jshint 2014-08-21 11:32:14 -07:00
Jack Pearkes 3e3c9b89c4 ui/controllers: jshint 2014-08-20 16:51:40 -07:00
Jack Pearkes 98f72c2892 ui: add tests param to readme 2014-07-22 13:32:05 -04:00
Gavin M. Roy 69f5dcf8dd Add the logo favicon to the webui 2014-07-22 12:42:24 -04:00
Jack Pearkes a38eaa1e43 ui: scroll extra items on nodes/services
fixes #232
2014-07-17 09:48:38 -04:00
Jack Pearkes a721c818de ui: display session name on list of sessions under locked key 2014-06-19 17:00:16 -04:00
Jack Pearkes b514d2677d ui: show service level tags, remove Node.nodeTags 2014-06-11 17:14:20 -04:00
Jack Pearkes 0f7adbf639 ui: show tags inline in list of services in node view 2014-06-11 16:54:03 -04:00
Jack Pearkes 48eaada3ae ui: add nodeShow test 2014-06-10 16:36:06 -04:00
Jack Pearkes 5f98fccf72 ui: add some basic tests 2014-06-10 16:36:06 -04:00
Jack Pearkes e21b338a8b ui: show session name if there is one 2014-06-09 14:59:06 -04:00
Jack Pearkes c65d3fda9e ui: fix padding on panel bodies to align 2014-06-09 12:01:17 -04:00
Jack Pearkes 54b31f75b4 ui: bump padding on double line list 2014-06-09 11:28:35 -04:00
Jack Pearkes 1a94aa3fe5 ui: add checks for sessions and a double line list 2014-06-09 11:12:41 -04:00
Jack Pearkes 142ca6159d ui: properly close h4 panel title 2014-06-06 15:14:33 -04:00
Jack Pearkes 6cdd068c55 ui: list sessions on the nodes and allow invalidation 2014-06-06 15:11:26 -04:00
Jack Pearkes 23cc6a3a5e ui: add locking session below lock 2014-06-06 14:26:30 -04:00
Jack Pearkes 06f7630e29 ui: show isLocked for key 2014-06-06 12:21:36 -04:00
Jack Pearkes d6d2ae0a9e ui: remove components from index 2014-06-05 16:29:08 -04:00
Jack Pearkes e485747e1e ui: remove components from compile 2014-06-05 16:28:28 -04:00
Jack Pearkes 2e0380aea4 ui: clean up comments and old file 2014-06-05 15:55:04 -04:00
Jack Pearkes 2ba792bdc7 ui: remove debugging statement 2014-06-05 15:46:46 -04:00
Jack Pearkes 3fff027881 ui: improve kv mobile view 2014-06-05 15:44:36 -04:00
Jack Pearkes 833d6a435c ui: improve mobile scaling 2014-06-05 15:38:22 -04:00
Jack Pearkes ad438e86fa ui: condense and improve UI for check display under services 2014-06-05 14:28:40 -04:00
Jack Pearkes e94fc14b6a ui: show and hide list view on mobile 2014-06-05 13:24:03 -04:00
Jack Pearkes 3ad0fd922a ui: don't record characters for search filter in browser histroy 2014-06-04 17:15:10 -04:00
Jack Pearkes 904913f099 ui: make 2nd pane scrollable 2014-06-04 17:15:00 -04:00
Jack Pearkes 962421288b ui: kv layout improvements 2014-06-04 16:57:37 -04:00
Jack Pearkes 68b671ee19 ui: further compression of the nav 2014-06-04 16:37:18 -04:00
Jack Pearkes 805c47a044 ui: pad service view in the middle 2014-06-04 16:26:37 -04:00
Jack Pearkes 02ec81d252 ui: expanded view collection height for services 2014-06-04 16:22:25 -04:00
Jack Pearkes 04db1cbbe0 ui: remove nodes debugging 2014-06-04 16:20:32 -04:00
Jack Pearkes c7d4cf8cc7 ui: scrub out scrollable classes 2014-06-04 16:08:54 -04:00
Jack Pearkes 5010506222 ui: upgrade handlebars and use query params 2014-06-04 16:04:45 -04:00
Jack Pearkes 4ecc8f58c8 ui: add version tags to ember files 2014-06-04 15:57:09 -04:00
Jack Pearkes cfc7349751 ui: ember to canary for query params, add query params 2014-06-04 15:56:00 -04:00
Jack Pearkes b293c686fd ui: change ember to debug build, add list-view 2014-06-04 15:44:17 -04:00
Jack Pearkes c1d4c73d90 ui: compile in list view 2014-06-04 15:42:59 -04:00
Jack Pearkes 881dadadb4 ui: upgrade to ember 1.6.0 beta5, add list-view 2014-06-04 15:39:09 -04:00
Jack Pearkes bf7b0ad17f ui: fix missing div in healthchecks 2014-06-04 14:13:31 -04:00
Jack Pearkes f085e15af2 ui: can't check if notes/output on run loop 2014-06-04 13:18:39 -04:00
Jack Pearkes 091ec0f680 ui: improve health check formatting 2014-06-03 14:45:49 -04:00
Jack Pearkes d58b5b2780 ui: call tags "service tags" 2014-06-03 14:36:37 -04:00
Jack Pearkes d6efab6c69 ui: show tags on node view 2014-06-03 13:53:22 -04:00
Jack Pearkes 0cd0c8a6e5 ui: condense entire layout, remove middle gap, kv condense 2014-06-03 11:32:22 -04:00
Jack Pearkes 1b8a5a1e78 ui: action bar layout adjustments, "no results" text 2014-06-02 12:40:52 -04:00
Jack Pearkes 534dc72d5a ui: filter nodes/services by passing/failing statuses 2014-06-02 12:05:13 -04:00
Jack Pearkes 0e3c262e53 ui: default to condensed view, add secondary actions 2014-06-02 11:49:01 -04:00
Jack Pearkes 54b6e1e049 ui: fix list border radi 2014-06-02 10:50:24 -04:00
Jack Pearkes a94ef9d529 ui: initial pass at filtering and condensed view for nodes/services 2014-06-02 10:35:46 -04:00
Jack Pearkes 7cab1c3c4c ui: add condensed node view 2014-05-30 14:26:11 -04:00
Andrew Watson b0236a8f08 Minor Typo 2014-05-29 15:15:13 -04:00
Jack Pearkes ea8761a50e ui: add a create key shortcut into breadcrumbs
this fixes #100
2014-05-16 13:38:45 -07:00
William Tisäter dc01e0a145 Fix parentKey transitions to root
Previously, deleting a key in `/dc1/kv/` would transition to
`/dc1/kv//` on success. A refresh at this stage would lead to `404`,
this commit will fix this and generate the correct route key in a
helper function.
2014-05-05 21:32:39 +02:00
Jack Pearkes 9e08d2bc69 ui: actually render an error message, hide delete on root
cc/ @tiwilliam
2014-05-05 10:20:57 -04:00
William Tisäter 700d304d15 Rename `KvHelpController` to `KvBaseController` 2014-05-05 16:09:18 +02:00
William Tisäter 570728f6b0 Drop duplicate isLoading set to false 2014-05-05 16:09:18 +02:00
William Tisäter f4c4b5ace8 Transition to nearest parent on key delete 2014-05-05 16:09:18 +02:00
William Tisäter a730174f0c Clean up root check 2014-05-05 16:09:18 +02:00
William Tisäter e174d1062c Redirect to correct root path when deleting keys 2014-05-05 16:09:18 +02:00
William Tisäter 21ad67fc4f Revert modifications to `getParentAndGrandparent` 2014-05-05 16:09:18 +02:00
William Tisäter 14649c1398 Add delete folder button to web UI 2014-05-05 16:09:18 +02:00
William Tisäter acc36c297f Add cancel button to key edit 2014-05-05 01:03:47 +02:00
Jack Pearkes b9ed600069 Merge pull request #119 from tiwilliam/dash-in-keys
Allow keys with dashes in web UI
2014-05-04 17:37:17 -04:00
William Tisäter 3852bef667 Rename root variable 2014-05-04 23:07:41 +02:00
William Tisäter 227daf1fea Allow using dashes in keys 2014-05-04 23:05:00 +02:00
William Tisäter daa2558fa1 Fix broken paths to vendor minified JS 2014-05-04 12:29:22 +02:00
Jack Pearkes 1c26327fae ui: pre-minify JS libs 2014-05-02 14:08:47 -04:00
darron froese e347a19a6a Fix typo. 2014-05-02 06:41:02 -06:00
Jack Pearkes 6017268ec4 ui: fix responsiveness for medium-sm screens 2014-05-01 17:22:16 -04:00
Mitchell Hashimoto 246e7e14e0 ui: delete backup files 2014-05-01 12:45:15 -07:00
Mitchell Hashimoto dcc11e4726 ui: slight typo in makefile 2014-05-01 12:44:18 -07:00
Mitchell Hashimoto c45029e038 ui: README 2014-05-01 12:43:49 -07:00
Mitchell Hashimoto 68a3f422b4 ui: Automatically replace assets 2014-05-01 12:43:16 -07:00
Jack Pearkes 22bfd53294 ui: improve build instructions 2014-05-01 15:34:25 -04:00
Jack Pearkes ab69329d74 ui: fix dc # of failing checks 2014-05-01 13:19:43 -04:00
Jack Pearkes 993b892761 ui: add panelbar helper 2014-05-01 13:15:33 -04:00
Jack Pearkes 4f7fbf6a58 ui: see warning as failing 2014-05-01 12:52:03 -04:00
Jack Pearkes 9cefcf8c04 ui: fix index page to show sleect 2014-05-01 12:48:29 -04:00
Jack Pearkes a17fd1a89a ui: show services and then checks 2014-05-01 12:35:01 -04:00
Jack Pearkes 03ed065655 ui: hide dropdown when activating route 2014-05-01 12:25:12 -04:00
Jack Pearkes e38aa0d8de ui: hide dropdown after switching dc 2014-05-01 12:21:59 -04:00
Jack Pearkes c93d93f09b ui: fix link to services in header nav 2014-05-01 12:17:06 -04:00
Jack Pearkes 4716fe17a0 ui: more loading indicators 2014-05-01 12:17:06 -04:00
Jack Pearkes b7c93a9f96 ui: loading 2014-05-01 12:17:06 -04:00
Jack Pearkes 2edf16c188 ui: fix datacenter route typo 2014-05-01 12:17:05 -04:00
Jack Pearkes 595af2deb1 ui: better error handling 2014-05-01 11:40:14 -04:00
Jack Pearkes d1fd682e55 ui: clean with makefile 2014-05-01 11:39:56 -04:00
Jack Pearkes 7d727ce01c ui: add default js path for dist 2014-05-01 11:32:40 -04:00
Jack Pearkes 01490554d7 ui: pre fixes, dist build changes 2014-05-01 11:31:56 -04:00
Jack Pearkes 9f4cb04bf2 ui: ignore compiled js, dist 2014-05-01 11:22:30 -04:00
Jack Pearkes 098928baa0 ui: update ember, dist steps 2014-05-01 11:21:55 -04:00
Jack Pearkes 767cdaa168 ui: mobile improvements 2014-05-01 10:40:31 -04:00
Jack Pearkes 17a1c12e8d ui: better error handling 2014-05-01 10:25:38 -04:00
Jack Pearkes 6f77bc93a4 ui: refactor kv controllers, finish multi-dc support 2014-05-01 10:00:36 -04:00
Jack Pearkes 1648031339 ui: improve mobile view 2014-04-30 23:44:32 -04:00
Jack Pearkes 0b9847ab96 ui: more fixes around the readme 2014-04-30 23:44:31 -04:00
Jack Pearkes 5b59a81103 ui: update readme 2014-04-30 23:44:31 -04:00
Jack Pearkes 716064c8d9 ui: button default focus states 2014-04-30 23:44:31 -04:00
Jack Pearkes 5015650e5b ui: bump down the size on the health check name under service 2014-04-30 23:44:31 -04:00
Jack Pearkes bdd71dee33 ui: error pages, help text 2014-04-30 23:44:31 -04:00
Jack Pearkes 0544a7cf76 ui: refresh node list after create 2014-04-30 23:44:31 -04:00
Jack Pearkes b3a18fdb4a ui: fix edit view breadcrumbs 2014-04-30 23:44:31 -04:00
Jack Pearkes 23dc417055 ui: handle "folders", directory browsing with parents 2014-04-30 23:44:31 -04:00
Jack Pearkes 3e1bc7dbad ui: fix nesting KV 2014-04-30 23:44:30 -04:00
Jack Pearkes d78b202464 ui: datacenter support, kv fixes 2014-04-30 23:44:30 -04:00
Jack Pearkes df6ff7d4bf ui: fix makefile 2014-04-30 23:44:30 -04:00
Jack Pearkes 993e4319be ui: use parent/grandparent keys for key creation 2014-04-30 23:44:30 -04:00
Jack Pearkes 91b7adc678 ui: handle empty kv index 2014-04-30 23:44:30 -04:00
Jack Pearkes 3329cc3846 ui: refactor controllers, routes to use promise hash, comments 2014-04-30 23:44:30 -04:00
Jack Pearkes ee1eefc997 ui: kv wire to API 2014-04-30 23:44:30 -04:00
Jack Pearkes 0ceb28a2bd ui: use a promise hash for nodes 2014-04-30 23:44:30 -04:00
Jack Pearkes 0a2be77e44 ui: wire up kv 2014-04-30 23:44:30 -04:00
Jack Pearkes dc1c421338 ui: wire up services, nodes, checks 2014-04-30 23:44:29 -04:00
Jack Pearkes 640027e10d ui: more ui / focus / animation states 2014-04-30 23:44:29 -04:00
Jack Pearkes f5e4bd83d8 ui: more animations, fix container layout for kv 2014-04-30 23:44:29 -04:00
Jack Pearkes 09e419c1ec ui: experiment with the vertical line 2014-04-30 23:44:29 -04:00
Jack Pearkes 193e30a79e ui: add delete key functionality 2014-04-30 23:44:29 -04:00
Jack Pearkes a554f0815a ui: new key for padding 2014-04-30 23:44:29 -04:00
Jack Pearkes 9577a63e91 ui: add support for creating/validating keys 2014-04-30 23:44:29 -04:00
Jack Pearkes c21a6c5e1a ui: kv styling and active states 2014-04-30 23:44:29 -04:00
Jack Pearkes caadc2ce42 ui: lighten button border primary 2014-04-30 23:44:28 -04:00
Jack Pearkes 1e4b492a96 ui: kv updates and improved active list view 2014-04-30 23:44:28 -04:00
Jack Pearkes 8999812c56 ui: show address and properly depend on Checks 2014-04-30 23:44:28 -04:00
Jack Pearkes af10fb355e ui: better kv parent navigation 2014-04-30 23:44:28 -04:00
Jack Pearkes 8d4290868e ui: kv load from url 2014-04-30 23:44:28 -04:00
Jack Pearkes 75589782ef ui: properly nest kv resources 2014-04-30 23:44:28 -04:00
Jack Pearkes 52d8a28592 ui: further k/v improvements 2014-04-30 23:44:28 -04:00
Jack Pearkes 7f912dc0c9 ui: basic k/v layout 2014-04-30 23:43:59 -04:00
Jack Pearkes 89714a6dae ui: more mobile work 2014-04-30 23:43:58 -04:00
Jack Pearkes 9d4b3c3897 ui: add dcs to index 2014-04-30 23:43:58 -04:00
Jack Pearkes 6b2022b780 ui: light up the nav, aggregate checks 2014-04-30 23:43:58 -04:00
Jack Pearkes 524cce902c ui: styles, simpler active state 2014-04-30 23:43:58 -04:00
Jack Pearkes 0a21314e60 ui: link to panels, drop actions 2014-04-30 23:43:58 -04:00
Jack Pearkes b5718ac23b ui: refactor file structure 2014-04-30 23:43:58 -04:00
Jack Pearkes 62955c5b97 ui: add kv to nav, embed 2014-04-30 23:43:58 -04:00
Jack Pearkes b1ad6faabe ui: more refactoring for nested resources 2014-04-30 23:43:58 -04:00
Jack Pearkes 4f467aec8c ui: refactor nodes as embedded resource 2014-04-30 23:43:58 -04:00
Jack Pearkes 6a4887ec8e ui: refactor services, dc to be nested resources 2014-04-30 23:43:58 -04:00
Jack Pearkes 24f7317ba7 ui: link-to for list items, active state 2014-04-30 23:43:57 -04:00
Jack Pearkes 61908dae5e ui: clickable nodes in list 2014-04-30 23:43:57 -04:00
Jack Pearkes 0449428e20 ui: improved fixtures 2014-04-30 23:43:57 -04:00
Jack Pearkes d87e722d61 ui: improve comments 2014-04-30 23:43:57 -04:00
Jack Pearkes 6494600e70 ui: nodes fixtures revision 2014-04-30 23:43:57 -04:00
Jack Pearkes a624deb90e ui: add nodes 2014-04-30 23:43:57 -04:00
Jack Pearkes ab3ffa7653 ui: tags, service fixture changes 2014-04-30 23:43:57 -04:00
Jack Pearkes a727bbe790 ui: basic styles for check list 2014-04-30 23:43:57 -04:00
Jack Pearkes bcdce24314 ui: more work on loading data for /services 2014-04-30 23:43:57 -04:00
Jack Pearkes a65ec76738 ui: add comments to application so far 2014-04-30 23:43:57 -04:00
Jack Pearkes 9dc755e4e8 ui: initial ember application 2014-04-30 23:43:57 -04:00
Jack Pearkes 50343d9417 ui: smaller font in list list's 2014-04-30 23:43:56 -04:00
Armon Dadgar 285c27baca ui: Use relative import paths 2014-04-30 23:43:56 -04:00
Jack Pearkes ec004dd062 ui: lead-in info for style guide 2014-04-30 23:43:56 -04:00
Jack Pearkes 88a176343e ui: more improvements to the style guide 2014-04-30 23:43:56 -04:00
Jack Pearkes 693cdf47b3 ui: progress on style guide 2014-04-30 23:43:56 -04:00
Jack Pearkes 9b7e834adf ui: add base ember 2014-04-30 23:43:55 -04:00
Jack Pearkes e564d9681f ui: use a /static directory 2014-04-30 23:43:55 -04:00
Jack Pearkes 7e890dc45b ui: initial commit 2014-04-30 23:43:55 -04:00