consul/ui/packages/consul-ui/app/helpers
Michael Klein 5de75550d3
ui: feature-flagged peering mvp (#13425)
* add peers route

* add peers to nav

* use regular app ui patterns peers template

* use empty state in peers UI

* mock `v1/peerings` request

* implement custom adapter/serializer for `peers`-model

* index request for peerings on peers route

* update peers list to show as proper list

* Use tailwind for easier styling

* Unique ids in peerings response mock-api

* Add styling peerings list

* Allow creating empty tooltip

To make it easier to iterate over a set of items where some items
should not display a tooltip and others should.

* Add tooltip Peerings:Badge

* Add undefined peering state badge

* Remove imported/exported services count peering

This won't be included in the initial version of the API response

* Implement Peerings::Search

* Make it possible to filter peerings by name

* Install ember-keyboard

For idiomatic handling of key-presses.

* Clear peering search input when pressing `Escape`

* use peers.index instead of peers for peerings listing

* Allow to include peered services in services-query

* update services mock to add peerName

* add Consul::Peer component

To surface peering information on a resource

* add PeerName as attribute to service model

* surface peering information in service list

* Add tooltip to Consul::Peer

* Make services searchable by peer-name

* Allow passing optional query-params to href-to

* Add peer query-param to dc.services.show

* Pass peer as query-param services listing

* support option peer route-param

* set peer-name undefined in services serializer when empty

* update peer route-param when navigating to peered service

* request sercice with peer-name if need be

* make sure to reset peer route-param when leaving service.show

* componentize services.peer-info

* surface peer info services.show

* make sure to reset peer route-param in main nav

* fix services breadcrumb services.intentions

we need to reset peer route-param here to not break the app

* surface peer when querying for it on service api call

* query for peer info service-instance api calls

* surface peer info service-instance.show

* Camelize peer attributes to match rest of app

* Refactor peers.index to reflect camelized attributes for peer

* Remove unused query-params services.show

* make logo href reset peer route-param

* Cleanup optional peer param query service-instance

* Use replace decorator instead of serializer for empty peerName

* make sure to only send peer info when correct qp is passed

* Always send qp for querying peers services request

* rename with-imports to with-peers

* Use css for peer-icon

* Refactor bucket-list component to surface peer-info

* Remove Consul::Peer component

This info is now displayed via the bucket-list component

* Fix bucket-list component to surface service again

* Update bucket-list docs to reflect peer-info addition

* Remove tailwind related styles

* Remove consul-tailwind package

We won't be using tailwind for now

* Fix typo badge scss

* Add with-import handling mock-api nodes

* Add peerName to node attributes

* include peers when querying nodes

* reflect api updates node list mock

* Create consul::node::peer-info component

* Surface peer-info in nodes list

* Mock peer response for node request

* Make it possible to add peer-name to node request

* Update peer route-param when linking to node

* Reset peers route-param when leaving nodes.show

We need to reset the route-param to not introduce a bug - otherwise
subsequent node show request would request with the old peer query-param

* Add sourcePeer intentions api mock

* add SourcePeer attr to intentions model

* Surface peering info on intentions list

* Request peered intentions differently intentions.edit

* Handle peer info in intentions/exact mock

* Surface peering info intention view

* Add randomized peer data topology mock

* Surface peer info topology view

* fix service/peer-info styling

We aren't using tailwind anymore - we need to create a custom scss file

* Update peerings api mocks

* Update peerings::badge with updated styling

* cleanup intentions/exact mock

* Create watcher component to declaratively register polling

* Poll peers in background when on peers route

* use existing colors for peering-badge

* Add test for requesting service with `with-peers`-query

* add imported/exported count to peers model

* update mock-api to surface exported/imported count on peers

* Show exported/imported peers count on peers list

* Use translations for service import/export UI peers

* Make sure to ask for nodes with peers

* Add match-url step for easier url testing of service urls

* Add test for peer-name on peered services

* Add test for service navigation peered service

* Implement feature-flag handling

* Enable peering feature in test and development

* Redirect peers to services.index when feature-flag is disabled

* Only query for peers when feature is enabled

* Only show peers in nav when feature is enabled

* Componentize peering service count detail

* Handle non-state Peerings::Badge

* Use Peerings::ServiceCount in peerings list

* Only send peer query for peered service-instances.

* Add step to visit url directly

* add test for accessing peered service directly

* Remove unused service import peers.index

* Only query for peer when peer provided node-adapter

* fix tests
2022-06-23 14:16:26 +01:00
..
policy
service ui: Add Consul API Gateway as an external source (#11371) 2021-11-10 16:54:12 -05:00
token
adopt-styles.js ui: CustomElement component (#12451) 2022-03-07 09:51:47 +00:00
adopt-styles.mdx ui: CustomElement component (#12451) 2022-03-07 09:51:47 +00:00
atob.js
cached-model.js ui: Ensure dc selector correctly shows the currently selected dc (#11380) 2021-10-26 19:26:04 +01:00
can.js ui: Overview UI Routing (#12493) 2022-03-15 12:58:14 +00:00
class-map.js ui: CustomElement component (#12451) 2022-03-07 09:51:47 +00:00
class-map.mdx ui: class-map helper (#12202) 2022-01-27 11:21:12 +00:00
collection.js ui: Add External Sources Filter to Node > Service Instances (#9368) 2020-12-14 14:25:33 +00:00
css-map.js ui: CustomElement component (#12451) 2022-03-07 09:51:47 +00:00
css.js ui: attach-shadow modifier (#12207) 2022-02-01 19:48:57 +00:00
document-attrs.js ui: document-attrs helper (#9336) 2020-12-09 09:22:01 +00:00
dom-position.js ui: DisclosureCard component (#12541) 2022-03-15 12:54:56 +00:00
duration-from.js ui: Adds human formatting to nanosecond based session durations (#10062) 2021-04-28 12:12:56 +01:00
duration-from.mdx ui: Adds human formatting to nanosecond based session durations (#10062) 2021-04-28 12:12:56 +01:00
env.js ui: Native-ize class based helpers (#9337) 2020-12-08 09:27:28 +00:00
feature-flag.js ui: feature-flagged peering mvp (#13425) 2022-06-23 14:16:26 +01:00
flatten-property.js ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
format-short-time.js ui: Install ember-intl (#9399) 2020-12-15 18:29:32 +00:00
href-to.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
icons-debug.js ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
is-href.js ui: Support Route optional parameters/segments (#10212) 2021-05-26 17:43:46 +01:00
is-href.mdx ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
is.js ui: Overview UI Routing (#12493) 2022-03-15 12:58:14 +00:00
is.mdx ui: Adds initial CRUD for partitions (#11188) 2021-10-08 16:29:30 +01:00
json-stringify.js ui: Add license endpoint/datasource (#12506) 2022-03-09 09:03:15 +00:00
last.js
left-trim.js
merge-checks.js ui: Ensure service instance data does not get re-written on blocking refresh (#11903) 2022-01-07 19:16:21 +00:00
percentage-of.js ui: DistributionMeter Component (#12452) 2022-03-09 08:28:34 +00:00
refresh-route.js ui: Native-ize class based helpers (#9337) 2020-12-08 09:27:28 +00:00
render-template.js Revert "Merge pull request #11328 from radiantly/ui/feature/allow-${}-style-interpolation" 2021-11-10 17:54:33 +00:00
render-template.mdx ui: Add eng docs for our render-template helper (#11359) 2021-11-18 10:21:36 +00:00
require.js ui: DisclosureCard component (#12541) 2022-03-15 12:54:56 +00:00
right-trim.js
route-match.js
slugify.js
split.js
state-chart.js ui: Adds initial CRUD for partitions (#11188) 2021-10-08 16:29:30 +01:00
state-matches.js ui: Native-ize class based helpers (#9337) 2020-12-08 09:27:28 +00:00
style-map.js ui: style-map helper (#12203) 2022-02-01 16:39:02 +00:00
style-map.mdx ui: style-map helper (#12203) 2022-02-01 16:39:02 +00:00
substr.js
svg-curve.js
temporal-format.js ui: Adds licensing overview tab (#12706) 2022-04-12 09:56:54 +01:00
temporal-within.js ui: Adds licensing overview tab (#12706) 2022-04-12 09:56:54 +01:00
test.js ui: Overview UI Routing (#12493) 2022-03-15 12:58:14 +00:00
test.mdx ui: Adds initial CRUD for partitions (#11188) 2021-10-08 16:29:30 +01:00
to-hash.js ui: Ensure proxy instance health is taken into account in Service Instance Listings (#12279) 2022-02-10 15:28:26 +00:00
to-route.js ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
tween-to.js ui: Native-ize class based helpers (#9337) 2020-12-08 09:27:28 +00:00
uniq-by.js
unique-id.js ui: Adds unique-id helper (#9676) 2021-02-02 10:03:46 +00:00
uri.js ui: Make it hard to not URLEncode DataSource srcs/URIs (#11117) 2021-09-30 15:54:46 +01:00