open-consul/ui/packages/consul-ui/app/components
Michael Klein 272c878559
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
..
action ui: Add docs for `<Action />` component (#12502) 2022-03-03 12:59:25 +00:00
anchors ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
anonymous
app ui: Transition App Chrome to use new Disclosure Menus (#12334) 2022-02-21 12:22:59 +00:00
app-error ui: Move control of login modal to use JS rather than HTML (label/id) (#9883) 2021-04-06 13:40:40 +01:00
app-view ui: Alter position of dashboard button in the service instance header (#11988) 2022-01-12 09:31:54 +00:00
aria-menu ui: Adds CRD popover 'informed action' for intentions managed by CRDs (#10100) 2021-05-04 17:21:54 +01:00
auth-dialog ui: Upgrade AuthDialog (#11913) 2022-01-07 19:08:25 +00:00
auth-form ui: Ensure the partition is passed through to the request for the SSO auth URL (#11979) 2022-01-11 11:02:46 +00:00
auth-modal ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
auth-profile ui: Upgrade AuthDialog (#11913) 2022-01-07 19:08:25 +00:00
badge ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
brand-loader ui: Loader amends/improvements (#10181) 2021-05-07 12:23:29 +01:00
breadcrumbs ui: Icon related fixups (#13183) 2022-05-25 14:28:42 +01:00
buttons ui: Alias all our Structure Icons to Flight Icons (#12209) 2022-02-02 13:24:47 +00:00
card ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
certificate ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
checkbox-group ui: Colocate old base components into our app/component folder (#10275) 2021-05-26 15:08:57 +01:00
child-selector ui: Add partition parameter when clearing child-selector forms in ACLs (#11106) 2021-09-22 18:36:09 +01:00
code-editor ui: Add XML syntax highlighting to key/value editor (#11785) 2022-01-04 16:24:09 +00:00
composite-row ui: Native CSS Icon Composition (#12461) 2022-03-15 12:54:14 +00:00
confirmation-alert ui: Search/filtering 'Filtered by:' search status (#9442) 2021-01-25 18:13:54 +00:00
confirmation-dialog ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
consul ui: feature-flagged peering mvp (#13425) 2022-06-23 14:16:26 +01:00
copy-button ui: Native CSS Icon Composition (#12461) 2022-03-15 12:54:14 +00:00
csv-list ui: Icon related fixups (#13183) 2022-05-25 14:28:42 +01:00
custom-element ui: CustomElement component (#12451) 2022-03-07 09:51:47 +00:00
data-collection ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
data-form ui: Adds initial CRUD for partitions (#11188) 2021-10-08 16:29:30 +01:00
data-loader ui: Ensure disconnect error doesn't appear w/auth change on some pages (#11905) 2022-01-04 14:55:32 +00:00
data-sink ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
data-source ui: Address some Admin Partition FIXMEs (#11057) 2021-10-01 11:07:58 +01:00
data-writer ui: Refactor KV and Lock Sessions following partitions update (#11666) 2021-12-01 11:33:33 +00:00
debug/navigation ui: Remove storybook, add docfy (#9831) 2021-03-08 12:22:01 +00:00
definition-table ui: reuse BucketList for intention view pages (#11765) 2021-12-13 15:00:51 +00:00
delete-confirmation
disclosure ui: Start using mermaid state diagrams in our docs (#12350) 2022-02-17 14:57:14 +00:00
disclosure-card ui: DisclosureCard component (#12541) 2022-03-15 12:54:56 +00:00
disclosure-menu ui: upgrade ember composable helper (#13394) 2022-06-08 16:07:51 +01:00
display-toggle ui: Colocate old base components into our app/component folder (#10275) 2021-05-26 15:08:57 +01:00
distribution-meter ui: DistributionMeter Component (#12452) 2022-03-09 08:28:34 +00:00
dom-recycling-table ui: Colocate remaining CSS components to the app/components folder (#10328) 2021-06-23 09:19:35 +01:00
empty-state Fixup any psuedo elements that don't need currentColor 2022-04-11 10:05:02 +01:00
error-state ui: Various empty state improvements/fixups (#11892) 2021-12-21 06:49:18 +00:00
event-source ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
expanded-single-select ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
filter-bar ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
form-component ui: Move linting to the `node:test` script (#9385) 2020-12-14 15:28:35 +00:00
form-elements ui: Upstream CSS Tweaks (#11554) 2021-11-16 15:36:54 +00:00
form-group ui: upgrade ember composable helper (#13394) 2022-06-08 16:07:51 +01:00
form-input ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
freetext-filter ui: Native CSS Icon Composition (#12461) 2022-03-15 12:54:14 +00:00
hashicorp-consul ui: feature-flagged peering mvp (#13425) 2022-06-23 14:16:26 +01:00
horizontal-kv-list ui: Center alignment of L7 permissions 2022-05-23 13:21:58 -04:00
icon-definition ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
informed-action ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
inline-alert ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
inline-code ui: Adds partition support to Service and Node Identity templates (#11696) 2021-12-06 10:33:44 +00:00
jwt-source ui: Upgrades token sourcing related components to Glimmer+docs (#11592) 2021-11-18 15:52:39 +00:00
list-collection ui: Refactor KV and Lock Sessions following partitions update (#11666) 2021-12-01 11:33:33 +00:00
list-row ui: Refactor KV and Lock Sessions following partitions update (#11666) 2021-12-01 11:33:33 +00:00
main-header-horizontal ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
main-nav-horizontal ui: Native CSS Icon Composition (#12461) 2022-03-15 12:54:14 +00:00
main-nav-vertical ui: Icon related fixups (#13183) 2022-05-25 14:28:42 +01:00
menu ui: PagedCollection component (#12404) 2022-02-25 10:01:08 +00:00
menu-panel ui: Icon related fixups (#13183) 2022-05-25 14:28:42 +01:00
modal-dialog ui: Native CSS Icon Composition (#12461) 2022-03-15 12:54:14 +00:00
modal-layer ui: Move control of login modal to use JS rather than HTML (label/id) (#9883) 2021-04-06 13:40:40 +01:00
more-popover-menu ui: Icon related fixups (#13183) 2022-05-25 14:28:42 +01:00
notice ui: Notifications re-organization/re-style (#11577) 2021-11-24 18:14:07 +00:00
oidc-select ui: Native CSS Icon Composition (#12461) 2022-03-15 12:54:14 +00:00
option-input ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
outlet ui: Ensure service instance data does not get re-written on blocking refresh (#11903) 2022-01-07 19:16:21 +00:00
overlay ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
paged-collection ui: PagedCollection component (#12404) 2022-02-25 10:01:08 +00:00
panel ui: DisclosureCard component (#12541) 2022-03-15 12:54:56 +00:00
peerings ui: feature-flagged peering mvp (#13425) 2022-06-23 14:16:26 +01:00
pill ui: Icon related fixups (#13183) 2022-05-25 14:28:42 +01:00
policy-form ui: upgrade ember composable helper (#13394) 2022-06-08 16:07:51 +01:00
policy-selector ui: Adds partition support to Service and Node Identity templates (#11696) 2021-12-06 10:33:44 +00:00
popover-menu ui: Add Consul API Gateway as an external source (#11371) 2021-11-10 16:54:12 -05:00
popover-select ui: Transition App Chrome to use new Disclosure Menus (#12334) 2022-02-21 12:22:59 +00:00
power-select ui: Initial Intention Permission Integration and acceptance testing (#9003) 2020-10-23 17:26:06 +01:00
progress ui: Native CSS Icon Composition (#12461) 2022-03-15 12:54:14 +00:00
radio-card ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
radio-group ui: Colocate remaining CSS components to the app/components folder (#10328) 2021-06-23 09:19:35 +01:00
ref ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
role-form ui: Partitions Application Layer (#11017) 2021-09-15 19:50:11 +01:00
role-selector ui: Move the Role remove dialog to use InformedAction (#11298) 2021-10-14 13:54:27 +01:00
route ui: Disable licensing tab if the UI is running via HCP (#12771) 2022-06-09 18:15:52 +01:00
search-bar ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
secret-button ui: Icon related fixups (#13183) 2022-05-25 14:28:42 +01:00
shadow-host ui: CustomElement component (#12451) 2022-03-07 09:51:47 +00:00
shadow-template ui: CustomElement component (#12451) 2022-03-07 09:51:47 +00:00
skip-links ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
sliding-toggle ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
state ui: Improves UI engineering docs (#9875) 2021-03-17 15:58:17 +00:00
state-chart ui: Transition App Chrome to use new Disclosure Menus (#12334) 2022-02-21 12:22:59 +00:00
tab-nav ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
table ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
tabular-collection ui: Stop tables overlapping with their headers when scrolling (#11670) 2021-12-06 16:09:15 +00:00
tabular-details ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
tabular-dl ui: Fix brand coloring for inline-code plus docs (#11578) 2021-11-23 18:32:11 +00:00
tag-list ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
text-input ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
tile ui: Initial Server Status Overview Page (#12599) 2022-04-04 09:45:03 +01:00
toggle-button ui: Replaces almost all remaining instances of SASS variables with CSS (#11200) 2021-10-07 19:21:11 +01:00
token-list
token-source ui: Ensure the partition is passed through to the request for the SSO auth URL (#11979) 2022-01-11 11:02:46 +00:00
tooltip ui: Icon related fixups (#13183) 2022-05-25 14:28:42 +01:00
tooltip-panel Fixup any psuedo elements that don't need currentColor 2022-04-11 10:05:02 +01:00
topology-metrics ui: feature-flagged peering mvp (#13425) 2022-06-23 14:16:26 +01:00
watcher ui: feature-flagged peering mvp (#13425) 2022-06-23 14:16:26 +01:00
yield ui: PagedCollection component (#12404) 2022-02-25 10:01:08 +00:00