Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Connector Builder] Configuration UI MVP #20008

Merged
merged 56 commits into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
699470e
move connector builder components into the same shared components/con…
lmossman Dec 1, 2022
827532b
move diff over from poc branch
lmossman Dec 1, 2022
4899673
save current progress
lmossman Dec 3, 2022
a1b62f1
add modal for adding streams
lmossman Dec 3, 2022
39e8ba8
focus stream after adding and reset button style
lmossman Dec 5, 2022
2352ef9
add reset confirm modal and select view on add
lmossman Dec 6, 2022
df492fa
style global config and streams buttons
lmossman Dec 6, 2022
5a99c7a
styling improvements
lmossman Dec 6, 2022
62fc08c
handle long stream names better
lmossman Dec 6, 2022
7b26b78
pull in connector manifest schema directly
lmossman Dec 6, 2022
71a88f1
add box shadows to resizable panels
lmossman Dec 6, 2022
d7bee54
upgrade orval and use connector manifest schema directly
lmossman Dec 6, 2022
162ecf2
remove airbyte protocol from connector builder api spec
lmossman Dec 6, 2022
def60b0
Merge branch 'master' into lmossman/use-connector-manifest-schema-dir…
lmossman Dec 6, 2022
ff9aa76
generate python models from openapi change
lmossman Dec 6, 2022
3678956
merge with lmossman/use-connector-manifest-schema-directly
lmossman Dec 6, 2022
b16d4a8
fix position of yaml toggle
lmossman Dec 6, 2022
67fb9dd
handle no stream case with better looking message
lmossman Dec 7, 2022
bb42007
group global fields into single object and fix console error
lmossman Dec 7, 2022
9bb1812
confirmation modal on toggling dirty form + cleanup
lmossman Dec 7, 2022
587ca2f
merge with master
lmossman Dec 7, 2022
81cf108
fix connector name display
lmossman Dec 7, 2022
094a045
undo change to manifest schema
lmossman Dec 7, 2022
d1c8c80
remove commented code
lmossman Dec 7, 2022
aebac20
remove unnecessary change
lmossman Dec 7, 2022
1e39be4
fix spacing
lmossman Dec 7, 2022
09cf875
use shadow mixin for connector img
lmossman Dec 7, 2022
ec65d67
add comment about connector img
lmossman Dec 7, 2022
603820a
change onSubmit to no-op
lmossman Dec 8, 2022
cb2f299
remove console log
lmossman Dec 8, 2022
d1672a0
clean up styling
lmossman Dec 8, 2022
7255784
simplify sidebar to remove StreamSelectButton component
lmossman Dec 8, 2022
65cd42b
swap colors of toggle
lmossman Dec 8, 2022
10d7893
move FormikPatch to src/core/form
lmossman Dec 8, 2022
fc89001
move types up to connectorBuilder/ level
lmossman Dec 8, 2022
24eaaff
use grid display for ui yaml toggle button
lmossman Dec 8, 2022
de604f6
use spread instead of setting array index directly
lmossman Dec 8, 2022
e696e57
add intl in missing places
lmossman Dec 8, 2022
5952f70
merge with master
lmossman Dec 8, 2022
b7c08f6
pull connector manifest schema in through separate openapi spec
lmossman Dec 8, 2022
d6f10b4
use correct intl string id
lmossman Dec 9, 2022
5ffe20e
throttle setting json manifest in yaml editor
lmossman Dec 9, 2022
b82ba2a
use button prop instead of manually styling
lmossman Dec 9, 2022
b9580b4
consolidate AddStreamButton styles
lmossman Dec 9, 2022
1587243
fix sidebar flex styles
lmossman Dec 9, 2022
62a60e5
use specific flex properties instead of flex
lmossman Dec 9, 2022
092821d
clean up download and reset button styles
lmossman Dec 10, 2022
7b8dec8
use row-reverse for yaml editor download button
lmossman Dec 10, 2022
6d68db9
fix stream selector styles to remove margins
lmossman Dec 10, 2022
91bc357
give connector setup guide panel same corner and shadow styles
lmossman Dec 10, 2022
4ffb969
remove blur from page display
lmossman Dec 10, 2022
70afdf8
set view to stream when selected in test panel
lmossman Dec 10, 2022
f656506
add placeholder when stream name is empty
lmossman Dec 10, 2022
c437d30
switch to index-based stream selection to preserve testing panel sele…
lmossman Dec 10, 2022
3cdbc70
handle empty name in stream selector
lmossman Dec 10, 2022
b4e96ec
merge with master
lmossman Dec 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,6 @@
"type": "string",
"default": ""
},
"_schema_loader": {
"anyOf": [
{
"$ref": "#/definitions/JsonFileSchemaLoader"
},
{
"$ref": "#/definitions/DefaultSchemaLoader"
}
]
},
"stream_cursor_field": {
"anyOf": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.add_fields_all_of import AddFieldsAllOf
from connector_builder.generated.models.added_field_definition import AddedFieldDefinition
from connector_builder.generated.models.parsed_add_field_definition import ParsedAddFieldDefinition


class AddFields(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

AddFields - a model defined in OpenAPI

fields: The fields of this AddFields.
parsed_fields: The parsed_fields of this AddFields [Optional].
"""

fields: List[AddedFieldDefinition]
parsed_fields: Optional[List[ParsedAddFieldDefinition]] = None

AddFields.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.added_field_definition import AddedFieldDefinition
from connector_builder.generated.models.parsed_add_field_definition import ParsedAddFieldDefinition


class AddFieldsAllOf(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

AddFieldsAllOf - a model defined in OpenAPI

fields: The fields of this AddFieldsAllOf.
parsed_fields: The parsed_fields of this AddFieldsAllOf [Optional].
"""

fields: List[AddedFieldDefinition]
parsed_fields: Optional[List[ParsedAddFieldDefinition]] = None

AddFieldsAllOf.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_interpolated_stringstring import AnyOfInterpolatedStringstring


class AddedFieldDefinition(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

AddedFieldDefinition - a model defined in OpenAPI

path: The path of this AddedFieldDefinition.
value: The value of this AddedFieldDefinition.
"""

path: List[str]
value: AnyOfInterpolatedStringstring

AddedFieldDefinition.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_interpolated_stringstring import AnyOfInterpolatedStringstring
from connector_builder.generated.models.api_key_authenticator_all_of import ApiKeyAuthenticatorAllOf


class ApiKeyAuthenticator(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

ApiKeyAuthenticator - a model defined in OpenAPI

header: The header of this ApiKeyAuthenticator.
api_token: The api_token of this ApiKeyAuthenticator.
config: The config of this ApiKeyAuthenticator.
"""

header: AnyOfInterpolatedStringstring
api_token: AnyOfInterpolatedStringstring
config: Dict[str, Any]

ApiKeyAuthenticator.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_interpolated_stringstring import AnyOfInterpolatedStringstring


class ApiKeyAuthenticatorAllOf(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

ApiKeyAuthenticatorAllOf - a model defined in OpenAPI

header: The header of this ApiKeyAuthenticatorAllOf.
api_token: The api_token of this ApiKeyAuthenticatorAllOf.
config: The config of this ApiKeyAuthenticatorAllOf.
"""

header: AnyOfInterpolatedStringstring
api_token: AnyOfInterpolatedStringstring
config: Dict[str, Any]

ApiKeyAuthenticatorAllOf.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_interpolated_stringstring import AnyOfInterpolatedStringstring
from connector_builder.generated.models.basic_http_authenticator_all_of import BasicHttpAuthenticatorAllOf


class BasicHttpAuthenticator(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

BasicHttpAuthenticator - a model defined in OpenAPI

username: The username of this BasicHttpAuthenticator.
config: The config of this BasicHttpAuthenticator.
password: The password of this BasicHttpAuthenticator [Optional].
"""

username: AnyOfInterpolatedStringstring
config: Dict[str, Any]
password: Optional[AnyOfInterpolatedStringstring] = None

BasicHttpAuthenticator.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_interpolated_stringstring import AnyOfInterpolatedStringstring


class BasicHttpAuthenticatorAllOf(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

BasicHttpAuthenticatorAllOf - a model defined in OpenAPI

username: The username of this BasicHttpAuthenticatorAllOf.
config: The config of this BasicHttpAuthenticatorAllOf.
password: The password of this BasicHttpAuthenticatorAllOf [Optional].
"""

username: AnyOfInterpolatedStringstring
config: Dict[str, Any]
password: Optional[AnyOfInterpolatedStringstring] = None

BasicHttpAuthenticatorAllOf.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_interpolated_stringstring import AnyOfInterpolatedStringstring
from connector_builder.generated.models.bearer_authenticator_all_of import BearerAuthenticatorAllOf


class BearerAuthenticator(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

BearerAuthenticator - a model defined in OpenAPI

api_token: The api_token of this BearerAuthenticator.
config: The config of this BearerAuthenticator.
"""

api_token: AnyOfInterpolatedStringstring
config: Dict[str, Any]

BearerAuthenticator.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_interpolated_stringstring import AnyOfInterpolatedStringstring


class BearerAuthenticatorAllOf(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

BearerAuthenticatorAllOf - a model defined in OpenAPI

api_token: The api_token of this BearerAuthenticatorAllOf.
config: The config of this BearerAuthenticatorAllOf.
"""

api_token: AnyOfInterpolatedStringstring
config: Dict[str, Any]

BearerAuthenticatorAllOf.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_cartesian_product_stream_slicer_datetime_stream_slicer_list_stream_slicer_single_slice_substream_slicer import AnyOfCartesianProductStreamSlicerDatetimeStreamSlicerListStreamSlicerSingleSliceSubstreamSlicer
from connector_builder.generated.models.cartesian_product_stream_slicer_all_of import CartesianProductStreamSlicerAllOf
from connector_builder.generated.models.stream_slicer import StreamSlicer


class CartesianProductStreamSlicer(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

CartesianProductStreamSlicer - a model defined in OpenAPI

stream_slicers: The stream_slicers of this CartesianProductStreamSlicer.
"""

stream_slicers: List[AnyOfCartesianProductStreamSlicerDatetimeStreamSlicerListStreamSlicerSingleSliceSubstreamSlicer]

CartesianProductStreamSlicer.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_cartesian_product_stream_slicer_datetime_stream_slicer_list_stream_slicer_single_slice_substream_slicer import AnyOfCartesianProductStreamSlicerDatetimeStreamSlicerListStreamSlicerSingleSliceSubstreamSlicer


class CartesianProductStreamSlicerAllOf(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

CartesianProductStreamSlicerAllOf - a model defined in OpenAPI

stream_slicers: The stream_slicers of this CartesianProductStreamSlicerAllOf.
"""

stream_slicers: List[AnyOfCartesianProductStreamSlicerDatetimeStreamSlicerListStreamSlicerSingleSliceSubstreamSlicer]

CartesianProductStreamSlicerAllOf.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401


class CheckStream(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

CheckStream - a model defined in OpenAPI

stream_names: The stream_names of this CheckStream.
"""

stream_names: List[str]

CheckStream.update_forward_refs()
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# coding: utf-8

from __future__ import annotations
from datetime import date, datetime # noqa: F401

import re # noqa: F401
from typing import Any, Dict, List, Optional # noqa: F401

from pydantic import AnyUrl, BaseModel, EmailStr, validator # noqa: F401
from connector_builder.generated.models.any_of_composite_error_handler_default_error_handler import AnyOfCompositeErrorHandlerDefaultErrorHandler
from connector_builder.generated.models.composite_error_handler_all_of import CompositeErrorHandlerAllOf


class CompositeErrorHandler(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Do not edit the class manually.

CompositeErrorHandler - a model defined in OpenAPI

error_handlers: The error_handlers of this CompositeErrorHandler.
"""

error_handlers: List[AnyOfCompositeErrorHandlerDefaultErrorHandler]

CompositeErrorHandler.update_forward_refs()
Loading