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: add icons to API components and update Python icon SVG #4794

Merged
merged 6 commits into from
Nov 22, 2024

Conversation

Cristhianzl
Copy link
Member

This pull request includes updates to various API components and frontend icon files to add icons and update SVG properties. The most important changes include adding icons to different API components and updating the SVG properties for the Python icon.

API Component Updates:

  • Added icon attribute to BingSearchAPIComponent with value "Bing". (src/backend/base/langflow/components/tools/bing_search_api.py)
  • Added icon attribute to GleanSearchAPIComponent with value "Glean". (src/backend/base/langflow/components/tools/glean_search_api.py)
  • Added icon attribute to PythonREPLToolComponent with value "Python". (src/backend/base/langflow/components/tools/python_repl.py)
  • Added icon attribute to SearchAPIComponent with value "SearchAPI". (src/backend/base/langflow/components/tools/search_api.py)
  • Added icon attribute to SerpAPIComponent with value "SerpSearch". (src/backend/base/langflow/components/tools/serp_api.py)
  • Added icon attribute to WikidataAPIComponent with value "Wikipedia". (src/backend/base/langflow/components/tools/wikidata_api.py)
  • Added icon attribute to WikipediaAPIComponent with value "Wikipedia". (src/backend/base/langflow/components/tools/wikipedia_api.py)

Frontend Icon Updates:

  • Added GleanIcon component in index.tsx to import and forward the SvgGlean component. (src/frontend/src/icons/Glean/index.tsx)
  • Updated SvgPython component to modify SVG properties, including width, height, viewBox, and other attributes for better rendering. (src/frontend/src/icons/Python/Python.jsx)

@Cristhianzl Cristhianzl self-assigned this Nov 22, 2024
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 22, 2024
@dosubot dosubot bot added the enhancement New feature or request label Nov 22, 2024
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 22, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Nov 22, 2024
Copy link
Contributor

@anovazzi1 anovazzi1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 22, 2024
anovazzi1 and others added 3 commits November 22, 2024 17:19
… to improve visual representation of the component

📝 (python_code_structured_tool.py): update the icon attribute value from "🐍" to "Python" for better clarity and consistency
@ogabrielluiz ogabrielluiz merged commit 214d5a9 into main Nov 22, 2024
28 checks passed
@ogabrielluiz ogabrielluiz deleted the cz/new-icons branch November 22, 2024 21:13
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
…w-ai#4794)

* add icons: wikipedia, serpapi, searchapi, glean, python, bing

* update glean icon

* formatting files

* ✨ (create_data.py): add an icon attribute with the value "ListFilter" to improve visual representation of the component
📝 (python_code_structured_tool.py): update the icon attribute value from "🐍" to "Python" for better clarity and consistency

---------

Co-authored-by: anovazzi1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants