Skip to content

Commit

Permalink
MGDCTRS-1726 feat: pricing tier additions
Browse files Browse the repository at this point in the history
This change brings the new connector selection list component into the
app and applies the pricing tier updates.  There's numerous updates and
fixes to the connector selection list component, including selection
handling, no search results and error state handling.  This change also
significantly improves the cache updating.
  • Loading branch information
gashcrumb committed Dec 9, 2022
1 parent fd5e999 commit b1075ed
Show file tree
Hide file tree
Showing 39 changed files with 1,069 additions and 1,381 deletions.
5 changes: 3 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import "@patternfly/patternfly/patternfly.css";
import "@patternfly/react-core/dist/styles/base.css";
import "@patternfly/react-catalog-view-extension/dist/css/react-catalog-view-extension.css";
import "@patternfly/patternfly/utilities/Accessibility/accessibility.css";
import "@patternfly/patternfly/utilities/BackgroundColor/BackgroundColor.css";
import "@patternfly/patternfly/utilities/Display/display.css";
import "@patternfly/patternfly/utilities/Flex/flex.css";
import "@patternfly/patternfly/utilities/Sizing/sizing.css";
import "@patternfly/patternfly/utilities/Spacing/spacing.css";
import "@patternfly/patternfly/utilities/Text/text.css";
import "@patternfly/patternfly/patternfly-addons.css";
import "@patternfly/react-core/dist/styles/base.css";
import "@patternfly/react-catalog-view-extension/dist/css/react-catalog-view-extension.css";

import { addDecorator } from '@storybook/react'
import { initialize, mswDecorator } from 'msw-storybook-addon'
Expand Down
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
connectorsActionApiPath:
'/localhost/api/connector_mgmt/v1/kafka_connectors/',
connectorTypesApiPath:
'/localhost/api/connector_mgmt/v1/kafka_connector_types?page=1&size=20&orderBy=&search=',
'/localhost/api/connector_mgmt/v1/kafka_connector_types?page=1&size=10&orderBy=+featured_rank+desc%2C+name+asc&search=',
kafkasApiPath:
'/localhost/api/kafkas_mgmt/v1/kafkas?page=1&size=20&search=',
namespaceApiPath:
Expand Down
314 changes: 157 additions & 157 deletions cypress/fixtures/connectorTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,163 @@
"size": 6,
"total": 6,
"items": [
{
"id": "telegram_source_0.1",
"kind": "ConnectorType",
"href": "/api/connector_mgmt/v1/kafka_connector_types/telegram_source_0.1",
"name": "Telegram source",
"version": "0.1",
"channels": [
"stable"
],
"description": "Receive all messages that people send to your Telegram bot.",
"icon_href": "TODO",
"labels": [
"source"
],
"capabilities": [
"data_shape",
"error_handler",
"processors"
],
"schema": {
"$defs": {
"data_shape": {
"produces": {
"additionalProperties": false,
"properties": {
"format": {
"default": "application/json",
"description": "The format of the data that the source connector sends to Kafka.",
"enum": [
"application/json"
],
"type": "string"
}
},
"required": [
"format"
],
"type": "object"
}
},
"error_handler": {
"dead_letter_queue": {
"additionalProperties": false,
"properties": {
"topic": {
"description": "The name of the Kafka topic that serves as a destination for messages which were not processed correctly due to an error.",
"title": "Dead Letter Topic Name",
"type": "string"
}
},
"required": [
"topic"
],
"type": "object"
},
"log": {
"additionalProperties": false,
"type": "object"
},
"stop": {
"additionalProperties": false,
"type": "object"
}
}
},
"additionalProperties": false,
"properties": {
"data_shape": {
"additionalProperties": false,
"properties": {
"produces": {
"$ref": "#/$defs/data_shape/produces"
}
},
"type": "object"
},
"error_handler": {
"default": {
"stop": {

}
},
"oneOf": [
{
"additionalProperties": false,
"properties": {
"log": {
"$ref": "#/$defs/error_handler/log"
}
},
"required": [
"log"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"stop": {
"$ref": "#/$defs/error_handler/stop"
}
},
"required": [
"stop"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"dead_letter_queue": {
"$ref": "#/$defs/error_handler/dead_letter_queue"
}
},
"required": [
"dead_letter_queue"
],
"type": "object"
}
],
"type": "object"
},
"kafka_topic": {
"description": "The name of the Kafka Topic to use.",
"title": "Topic Name",
"type": "string"
},
"processors": {

},
"telegram_authorization_token": {
"oneOf": [
{
"description": "The token to access your bot on Telegram. You you can obtain it from the Telegram @botfather.",
"format": "password",
"title": "Token",
"type": "string"
},
{
"description": "An opaque reference to the telegram_authorization_token",
"properties": {

},
"type": "object"
}
],
"title": "Token",
"x-group": "credentials"
}
},
"required": [
"telegram_authorization_token",
"kafka_topic"
],
"type": "object"
}
},
{
"id": "aws-kinesis-source",
"labels": [
Expand Down Expand Up @@ -603,163 +760,6 @@
],
"title": "Slack Source"
}
},
{
"id": "telegram_source_0.1",
"kind": "ConnectorType",
"href": "/api/connector_mgmt/v1/kafka_connector_types/telegram_source_0.1",
"name": "Telegram source",
"version": "0.1",
"channels": [
"stable"
],
"description": "Receive all messages that people send to your Telegram bot.",
"icon_href": "TODO",
"labels": [
"source"
],
"capabilities": [
"data_shape",
"error_handler",
"processors"
],
"schema": {
"$defs": {
"data_shape": {
"produces": {
"additionalProperties": false,
"properties": {
"format": {
"default": "application/json",
"description": "The format of the data that the source connector sends to Kafka.",
"enum": [
"application/json"
],
"type": "string"
}
},
"required": [
"format"
],
"type": "object"
}
},
"error_handler": {
"dead_letter_queue": {
"additionalProperties": false,
"properties": {
"topic": {
"description": "The name of the Kafka topic that serves as a destination for messages which were not processed correctly due to an error.",
"title": "Dead Letter Topic Name",
"type": "string"
}
},
"required": [
"topic"
],
"type": "object"
},
"log": {
"additionalProperties": false,
"type": "object"
},
"stop": {
"additionalProperties": false,
"type": "object"
}
}
},
"additionalProperties": false,
"properties": {
"data_shape": {
"additionalProperties": false,
"properties": {
"produces": {
"$ref": "#/$defs/data_shape/produces"
}
},
"type": "object"
},
"error_handler": {
"default": {
"stop": {

}
},
"oneOf": [
{
"additionalProperties": false,
"properties": {
"log": {
"$ref": "#/$defs/error_handler/log"
}
},
"required": [
"log"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"stop": {
"$ref": "#/$defs/error_handler/stop"
}
},
"required": [
"stop"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"dead_letter_queue": {
"$ref": "#/$defs/error_handler/dead_letter_queue"
}
},
"required": [
"dead_letter_queue"
],
"type": "object"
}
],
"type": "object"
},
"kafka_topic": {
"description": "The name of the Kafka Topic to use.",
"title": "Topic Name",
"type": "string"
},
"processors": {

},
"telegram_authorization_token": {
"oneOf": [
{
"description": "The token to access your bot on Telegram. You you can obtain it from the Telegram @botfather.",
"format": "password",
"title": "Token",
"type": "string"
},
{
"description": "An opaque reference to the telegram_authorization_token",
"properties": {

},
"type": "object"
}
],
"title": "Token",
"x-group": "credentials"
}
},
"required": [
"telegram_authorization_token",
"kafka_topic"
],
"type": "object"
}
}
]
}
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b1075ed

Please sign in to comment.