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

Feat/integration changed values display #212

Open
wants to merge 66 commits into
base: alpha
Choose a base branch
from

Conversation

MarcMcIntosh
Copy link
Collaborator

Animated Input Changes

Description

Adds animated TextField and TexArea components. these animate when the fadeValue prop is different from the defaultValue prop.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes, only code improvements)
  • Documentation update

How to Test

Screenshots (if applicable)

Checklist

  • My code follows the code style of this project.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.
  • I have updated the documentation where necessary.

Linked Issues

Additional Notes

MarcMcIntosh and others added 30 commits November 6, 2024 13:17
 Conflicts:
	src/app/store.ts

 On branch integrations-api
 Changes to be committed:
	modified:   package-lock.json
	modified:   package.json
	modified:   src/app/middleware.ts
	modified:   src/app/store.ts
	modified:   src/components/Chat/Chat.tsx
	modified:   src/components/ChatContent/ChatContent.tsx
	modified:   src/components/ChatContent/UserInput.tsx
	modified:   src/components/ChatForm/ChatForm.tsx
	modified:   src/components/ChatForm/RetryForm.tsx
	new file:   src/components/Dropzone/Dropzone.tsx
	new file:   src/components/Dropzone/index.tsx
	new file:   src/features/AttachedImages/imagesSlice.ts
	new file:   src/features/AttachedImages/index.ts
	modified:   src/features/Chat/Thread/utils.ts
	modified:   src/features/History/historySlice.ts
	new file:   src/hooks/useAttachedImages.ts
	modified:   src/hooks/useSendChatRequest.ts
	modified:   src/services/refact/chat.ts
	modified:   src/services/refact/types.ts
 Conflicts:
	src/__fixtures__/index.ts
	src/app/store.ts

 Changes to be committed:
	modified:   .prettierignore
	modified:   .storybook/main.ts
	modified:   .storybook/preview.tsx
	deleted:    TODO.md
	modified:   package-lock.json
	modified:   package.json
	new file:   public/mockServiceWorker.js
	modified:   src/__fixtures__/chat.ts
	modified:   src/__fixtures__/index.ts
	modified:   src/__fixtures__/markdown.ts
	new file:   src/__fixtures__/some_chrome_screenshots.json
	new file:   src/__fixtures__/survey_questions.ts
	new file:   src/__tests__/UserSurvey.test.tsx
	modified:   src/app/middleware.ts
	modified:   src/app/store.ts
	modified:   src/components/Chart/Chart.tsx
	modified:   src/components/Chat/Chat.tsx
	modified:   src/components/ChatContent/ChatContent.stories.tsx
	modified:   src/components/ChatContent/ChatContent.tsx
	modified:   src/components/ChatContent/ToolsContent.tsx
	modified:   src/components/ChatContent/UserInput.tsx
	modified:   src/components/ChatForm/ChatForm.stories.tsx
	modified:   src/components/ChatForm/ChatForm.test.tsx
	modified:   src/components/ChatForm/ChatForm.tsx
	new file:   src/components/ChatForm/ToolConfirmation.module.css
	new file:   src/components/ChatForm/ToolConfirmation.tsx
	modified:   src/components/Command/Command.module.css
	modified:   src/components/Command/Markdown.tsx
	modified:   src/components/Markdown/Markdown.tsx
	modified:   src/components/Reveal/reveal.module.css
	modified:   src/components/Spinner/Spinner.module.css
	modified:   src/components/Spinner/Spinner.stories.tsx
	modified:   src/components/Spinner/Spinner.tsx
	modified:   src/components/StatisticView/StatisticView.tsx
	modified:   src/components/Table/Table.tsx
	modified:   src/components/Toolbar/Toolbar.tsx
	modified:   src/events/index.ts
	modified:   src/features/App.tsx
	modified:   src/features/Chat/Thread/actions.ts
	modified:   src/features/Chat/Thread/utils.ts
	modified:   src/features/TipOfTheDay.tsx
	new file:   src/features/ToolConfirmation/confirmationSlice.ts
	new file:   src/features/UserSurvey/UserSurvey.stories.tsx
	new file:   src/features/UserSurvey/UserSurvey.tsx
	new file:   src/features/UserSurvey/index.ts
	new file:   src/features/UserSurvey/userSurveySlice.ts
	modified:   src/hooks/index.ts
	modified:   src/hooks/useEventBusForIDE.ts
	modified:   src/hooks/useGetToolsQuery.ts
	new file:   src/hooks/useGetUserSurvey.ts
	modified:   src/hooks/usePatchActions.ts
	modified:   src/hooks/useSendChatRequest.ts
	modified:   src/lib/render/index.tsx
	modified:   src/services/refact/chat.ts
	modified:   src/services/refact/consts.ts
	modified:   src/services/refact/path.ts
	modified:   src/services/refact/tools.ts
	modified:   src/services/refact/types.ts
	modified:   src/services/smallcloud/index.ts
	new file:   src/utils/extractFilePathFromPin.ts
	modified:   src/utils/index.ts
	modified:   src/utils/mockServer.ts
	modified:   src/vite-env.d.ts
	modified:   vite.config.ts
- [x] Implemented an `IntegrationForm` with reusable fields for each integration field type
- [x] Schema check in `handleSubmit` to transform formData to corresponding field types
- [x] Added `toPascalCase` utility function
Slight refactoring of apply and return buttons, and some other minor changes.
* wip(configuration chat): send first messages.

* wip(configuration chat): tool use in configuration chat.
MarcMcIntosh and others added 16 commits November 27, 2024 15:31
* wip(configuration chat): handle going back.

* fix(integration chat): change tools setting to explore.

* chore(missing deps in hook): `renderField` function was missing deps.

* feat(integration data cache): add slice for integrations cache.

* fix(integration cache): remove item on save.

* fix(config chat): chat being sent multiple times.

* wip(tool confirmation): skip confirming tool use when running a configuration.

* feat: add apply all button to configuration chat.

* feat: reload old configuration chat and go back to the form

* feat(configuration chat): add error message handler.

* fix(configuration chat): use agentic mode and don't set the model.

---------

Co-authored-by: Andrii Lashchov <84778697+alashchev17@users.noreply.github.com>
@MarcMcIntosh MarcMcIntosh changed the base branch from feat/setup-integrations to feat/docker-api November 29, 2024 15:43
…values-display

 Conflicts:
	src/app/middleware.ts
	src/components/IntegrationsView/IntegrationForm/IntegrationForm.tsx
	src/features/Chat/Thread/reducer.ts
	src/features/Integrations/integrationsSlice.tsx
	src/hooks/useGetIntegrationDataByPathQuery.ts

 Changes to be committed:
	modified:   src/components/IntegrationsView/IntegrationForm/IntegrationForm.module.css
	modified:   src/components/IntegrationsView/IntegrationForm/IntegrationForm.tsx
	modified:   src/components/IntegrationsView/IntegrationsView.tsx
	modified:   src/features/Chat/Thread/reducer.ts
	modified:   src/hooks/useGetIntegrationDataByPathQuery.ts
@MarcMcIntosh MarcMcIntosh changed the base branch from feat/docker-api to feat/setup-integrations November 29, 2024 15:49
@MarcMcIntosh MarcMcIntosh marked this pull request as ready for review November 29, 2024 15:59
MarcMcIntosh and others added 4 commits November 29, 2024 19:24
* wip: docker containers api handlers

* wip: docker actions API & action buttons

* wip: better action handling

* wip: simplification of dockerApi & action buttons improvements

* chore: fixtures update

* chore: removal of unnecessary esling rule bypass

* wip: docker container card & refactoring of integration form

* feat(configuration): adjusted size of inputs based on f_size & DataList instead of raw flexboxes

* wip: form appearance & responsive layout

* wip: updated docker section

* wip(refactoring): smartlink, availability, renderField, handleSmartlinkClick extracted to separate files and scopes

* wip(form): bool f_type support

* wip(refactoring): making docker within integr_schema optional, conditional rendering of docker section within integration form

* wip(docker): error handling

* wip(refactoring): toolscontent usage summary refactoring

* wip(docker containers): collapsible container details & reveal if large

* wip(refactoring): project name handling for macOS & Windows

* wip(refactoring): docker error card & debounced loaded state

* wip(docker containers): better loading state management

* wip: separation & refactoring of UI, making docker containers cards better & making integrationsview setup better

* fix: error types for docker error cards

* fix: unchecked switch values included to formData

* chore: removal no-console

* chore: removal of unexisting prop

* fix: extra fields showup button conditional rendering

* chore: TODO insertion

* fix:  rule bypass removal

* feat: debug logging library usage for integrations logs

* feat: implementing root debug instance, managing debuggable instances launch

* chore: better logging message

* chore: TODO for tags invalidation docker

* fix: replaced <label/> to <Text as='label' />
…values-display

 Conflicts:
	src/components/IntegrationsView/CustomFieldsAndWidgets.tsx
	src/components/IntegrationsView/IntegrationForm/IntegrationForm.tsx

 Changes to be committed:
	modified:   package-lock.json
	modified:   package.json
	modified:   src/__fixtures__/integrations.ts
	modified:   src/app/middleware.ts
	modified:   src/app/store.ts
	modified:   src/components/ChatContent/ToolsContent.tsx
	modified:   src/components/Collapsible/Chevron.tsx
	modified:   src/components/IntegrationsView/CustomFieldsAndWidgets.tsx
	new file:   src/components/IntegrationsView/IntegrationCard.module.css
	new file:   src/components/IntegrationsView/IntegrationCard.tsx
	new file:   src/components/IntegrationsView/IntegrationDocker/DockerContainerCard.tsx
	new file:   src/components/IntegrationsView/IntegrationDocker/IntegrationDocker.tsx
	new file:   src/components/IntegrationsView/IntegrationDocker/index.ts
	new file:   src/components/IntegrationsView/IntegrationForm/IntegrationAvailability.tsx
	modified:   src/components/IntegrationsView/IntegrationForm/IntegrationForm.module.css
	modified:   src/components/IntegrationsView/IntegrationForm/IntegrationForm.tsx
	new file:   src/components/IntegrationsView/IntegrationsHeader.module.css
	new file:   src/components/IntegrationsView/IntegrationsHeader.tsx
	modified:   src/components/IntegrationsView/IntegrationsView.module.css
	modified:   src/components/IntegrationsView/IntegrationsView.tsx
	modified:   src/components/Markdown/Markdown.tsx
	modified:   src/components/Reveal/Reveal.tsx
	modified:   src/components/Reveal/reveal.module.css
	new file:   src/components/SmartLink/SmartLink.tsx
	new file:   src/components/SmartLink/index.ts
	modified:   src/components/Text/Text.module.css
	new file:   src/components/Text/TruncateRight.tsx
	new file:   src/debugConfig.ts
	new file:   src/features/Integrations/renderIntegrationFormField.tsx
	new file:   src/hooks/useExecuteActionForDockerContainer.ts
	new file:   src/hooks/useGetDockerContainersQuery.ts
	modified:   src/services/refact/consts.ts
	new file:   src/services/refact/docker.ts
	modified:   src/services/refact/index.ts
	modified:   src/services/refact/integrations.ts
	modified:   vite.config.ts
Base automatically changed from feat/setup-integrations to alpha December 4, 2024 18:30
 Conflicts:
	src/__fixtures__/index.ts
	src/__fixtures__/integrations.ts
	src/app/middleware.ts
	src/app/store.ts
	src/components/ChatContent/ChatContent.tsx
	src/components/IntegrationsView/IntegrationCard.module.css
	src/components/IntegrationsView/IntegrationCard.tsx
	src/components/IntegrationsView/IntegrationDocker/DockerContainerCard.tsx
	src/components/IntegrationsView/IntegrationDocker/IntegrationDocker.tsx
	src/components/IntegrationsView/IntegrationForm/IntegrationAvailability.tsx
	src/components/IntegrationsView/IntegrationForm/IntegrationForm.module.css
	src/components/IntegrationsView/IntegrationForm/IntegrationForm.tsx
	src/components/IntegrationsView/IntegrationsHeader.module.css
	src/components/IntegrationsView/IntegrationsHeader.tsx
	src/components/IntegrationsView/IntegrationsView.tsx
	src/components/SmartLink/SmartLink.tsx
	src/features/App.tsx
	src/features/Chat/Thread/actions.ts
	src/features/Chat/Thread/reducer.ts
	src/features/Chat/Thread/types.ts
	src/features/Chat/Thread/utils.ts
	src/features/Integrations/Integrations.tsx
	src/features/Integrations/integrationsSlice.tsx
	src/features/Integrations/renderIntegrationFormField.tsx
	src/features/Pages/pagesSlice.ts
	src/hooks/useGetIntegrationDataByPathQuery.ts
	src/services/refact/chat.ts
	src/services/refact/consts.ts
	src/services/refact/docker.ts
	src/services/refact/index.ts
	src/services/refact/integrations.ts

 Changes to be committed:
	modified:   package-lock.json
	modified:   package.json
	new file:   src/__fixtures__/chat_config_thread.ts
	new file:   src/__fixtures__/chat_links_response.ts
	modified:   src/__fixtures__/index.ts
	modified:   src/__fixtures__/integrations.ts
	modified:   src/app/middleware.ts
	modified:   src/app/store.ts
	modified:   src/components/ChatContent/ChatContent.stories.tsx
	modified:   src/components/ChatContent/ChatContent.tsx
	modified:   src/components/ChatForm/ChatForm.tsx
	new file:   src/components/ChatLinks/ChatLinks.module.css
	new file:   src/components/ChatLinks/ChatLinks.stories.tsx
	new file:   src/components/ChatLinks/ChatLinks.tsx
	new file:   src/components/ChatLinks/index.ts
	modified:   src/components/IntegrationsView/IntegrationCard.module.css
	modified:   src/components/IntegrationsView/IntegrationCard.tsx
	modified:   src/components/IntegrationsView/IntegrationDocker/DockerContainerCard.tsx
	modified:   src/components/IntegrationsView/IntegrationDocker/IntegrationDocker.tsx
	modified:   src/components/IntegrationsView/IntegrationForm/IntegrationAvailability.tsx
	modified:   src/components/IntegrationsView/IntegrationForm/IntegrationForm.module.css
	modified:   src/components/IntegrationsView/IntegrationForm/IntegrationForm.tsx
	modified:   src/components/IntegrationsView/IntegrationsHeader.module.css
	modified:   src/components/IntegrationsView/IntegrationsHeader.tsx
	modified:   src/components/IntegrationsView/IntegrationsView.tsx
	new file:   src/components/IntegrationsView/icons/chrome.png
	new file:   src/components/IntegrationsView/icons/cmdline.png
	new file:   src/components/IntegrationsView/icons/docker.png
	new file:   src/components/IntegrationsView/icons/github.png
	new file:   src/components/IntegrationsView/icons/gitlab.png
	new file:   src/components/IntegrationsView/icons/iconMap.ts
	new file:   src/components/IntegrationsView/icons/pdb.png
	new file:   src/components/IntegrationsView/icons/postgres.png
	modified:   src/components/SmartLink/SmartLink.tsx
	modified:   src/features/App.tsx
	modified:   src/features/Chat/Thread/actions.ts
	modified:   src/features/Chat/Thread/reducer.ts
	modified:   src/features/Chat/Thread/types.ts
	modified:   src/features/Chat/Thread/utils.ts
	modified:   src/features/Config/configSlice.ts
	modified:   src/features/Integrations/Integrations.tsx
	modified:   src/features/Integrations/renderIntegrationFormField.tsx
	modified:   src/features/Pages/pagesSlice.ts
	modified:   src/hooks/usePatchActions.ts
	modified:   src/hooks/useSendChatRequest.ts
	modified:   src/services/refact/chat.ts
	modified:   src/services/refact/consts.ts
	modified:   src/services/refact/diffs.ts
	modified:   src/services/refact/docker.ts
	modified:   src/services/refact/index.ts
	modified:   src/services/refact/integrations.ts
	new file:   src/services/refact/links.ts
	modified:   src/services/refact/types.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants