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

Fix: Typos Across Backend and Frontend Codebase #6972

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion scripts/ci/pypi_nightly_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def create_tag(build_type: str):

new_nightly_version = latest_base_version + ".dev" + build_number

# Prepend "v" to the version, if DNE.
# Prepend "v" to the version, if DONE.
# This is an update to the nightly version format.
if not new_nightly_version.startswith("v"):
new_nightly_version = "v" + new_nightly_version
Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/base/data/base_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __init__(self, *args, **kwargs):
display_name="Server File Path",
info=(
f"Data object with a '{SERVER_FILE_PATH_FIELDNAME}' property pointing to server file"
" or a Message object with a path to the file. Supercedes 'Path' but supports same file types."
" or a Message object with a path to the file. Supersedes 'Path' but supports same file types."
),
required=False,
input_types=["Data", "Message"],
Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/components/data/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class URLComponent(Component):
display_name = "URL"
description = "Load and retrive data from specified URLs."
description = "Load and retrieve data from specified URLs."
icon = "layout-template"
name = "URL"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class DataFilterComponent(Component):
display_name = "Filter Values"
description = (
"Filter a list of data items based on a specified key, filter value,"
" and comparison operator. Check advanced options to select match comparision."
" and comparison operator. Check advanced options to select match comparison."
)
icon = "filter"
beta = True
Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/components/tools/astradb.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class AstraDBToolComponent(LCToolComponent):
),
DictInput(
name="static_filters",
info="Attributes to filter and correspoding value",
info="Attributes to filter and corresponding value",
display_name="Static filters",
advanced=True,
is_list=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class NewCollectionInput:
StrInput(
name="api_endpoint",
display_name="Astra DB API Endpoint",
info="The API Endpoint for the Astra DB instance. Supercedes database selection.",
info="The API Endpoint for the Astra DB instance. Supersedes database selection.",
advanced=True,
),
DropdownInput(
Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/components/vectorstores/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def build_vector_store(self) -> Redis:
documents.append(_input.to_lc_document())
else:
documents.append(_input)
Path("docuemnts.txt").write_text(str(documents), encoding="utf-8")
Path("documents.txt").write_text(str(documents), encoding="utf-8")

if not documents:
if self.schema is None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class VectaraRagComponent(Component):
"rus",
"tur",
"fas",
"vie",
"via",
Copy link
Preview

Copilot AI Mar 10, 2025

Choose a reason for hiding this comment

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

The language code was changed from 'vie' to 'via'. Please double-check if 'via' is the intended code (ISO 639-3 for Vietnamese is 'vie').

Suggested change
"via",
"vie",

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
"tha",
"heb",
"nld",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class VectaraSelfQueryRetriverComponent(CustomComponent):

field_config = {
"code": {"show": True},
"vectorstore": {"display_name": "Vector Store", "info": "Input Vectara Vectore Store"},
"vectorstore": {"display_name": "Vector Store", "info": "Input Vectara Vector Store"},
"llm": {"display_name": "LLM", "info": "For self query retriever"},
"document_content_description": {
"display_name": "Document Content Description",
Expand Down
16 changes: 8 additions & 8 deletions src/backend/base/langflow/graph/graph/ascii.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ def box(self, x0, y0, width, height) -> None:
self.point(x0 + width, y0 + height, "+")


def build_sugiyama_layout(vertexes, edges):
vertexes = {v: GrandalfVertex(v) for v in vertexes}
edges = [GrandalfEdge(vertexes[s], vertexes[e]) for s, e in edges]
graph = GrandalfGraph(vertexes.values(), edges)
def build_sugiyama_layout(vertices, edges):
vertices = {v: GrandalfVertex(v) for v in vertices}
edges = [GrandalfEdge(vertices[s], vertices[e]) for s, e in edges]
graph = GrandalfGraph(vertices.values(), edges)

for vertex in vertexes.values():
for vertex in vertices.values():
vertex.view = VertexViewer(vertex.data)

minw = min(v.view.w for v in vertexes.values())
minw = min(v.view.w for v in vertices.values())

for edge in edges:
edge.view = EdgeViewer()
Expand All @@ -150,9 +150,9 @@ def build_sugiyama_layout(vertexes, edges):
return sug


def draw_graph(vertexes, edges, *, return_ascii=True):
def draw_graph(vertices, edges, *, return_ascii=True):
"""Build a DAG and draw it in ASCII."""
sug = build_sugiyama_layout(vertexes, edges)
sug = build_sugiyama_layout(vertices, edges)

xlist = []
ylist = []
Expand Down
4 changes: 2 additions & 2 deletions src/backend/base/langflow/graph/graph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ def __to_dict(self) -> dict[str, dict[str, list[str]]]:
result: dict = {}
for vertex in self.vertices:
vertex_id = vertex.id
sucessors = [i.id for i in self.get_all_successors(vertex)]
successors = [i.id for i in self.get_all_successors(vertex)]
predecessors = [i.id for i in self.get_predecessors(vertex)]
result |= {vertex_id: {"successors": sucessors, "predecessors": predecessors}}
result |= {vertex_id: {"successors": successors, "predecessors": predecessors}}
return result
2 changes: 1 addition & 1 deletion src/backend/base/langflow/schema/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def __dir__(self):
return super().__dir__() + list(self.data.keys())

def __str__(self) -> str:
# return a JSON string representation of the Data atributes
# return a JSON string representation of the Data attributes
try:
data = {k: v.to_json() if hasattr(v, "to_json") else v for k, v in self.data.items()}
return serialize_data(data) # use the custom serializer
Expand Down
2 changes: 1 addition & 1 deletion src/backend/base/langflow/services/tracing/langfuse.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def setup_langfuse(self, config) -> bool:
@override
def add_trace(
self,
trace_id: str, # actualy component id
trace_id: str, # actually component id
trace_name: str,
trace_type: str,
inputs: dict[str, Any],
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def pytest_configure(config):
pytest.LOOP_TEST = data_path / "LoopTest.json"
pytest.CODE_WITH_SYNTAX_ERROR = """
def get_text():
retun "Hello World"
return "Hello World"
"""

# validate that all the paths are correct and the files exist
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/unit/base/tools/test_toolmodemixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_component_inputs_toolkit():
"message_input": {"title": "Message Input", "description": "Input for message objects."},
"message_text_input": {"title": "Message Text Input", "description": "Input for message text."},
"multiline_input": {"title": "Multiline Input", "description": "Input for multiline text."},
# TODO: to check how the title is generated, Shouldnt it be the display name?
# TODO: to check how the title is generated, Shouldn't it be the display name?
"int_input": {"title": "Int Input", "description": "Input for integer values."},
"float_input": {"title": "Float Input", "description": "Input for float values."},
"bool_input": {"title": "Bool Input", "description": "Input for boolean values."},
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/unit/graph/graph/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_sort_up_to_vertex_n_is_start(graph):
vertex_id = "N"

result = utils.sort_up_to_vertex(graph, vertex_id, is_start=True)
# Result shoud be all the vertices
# Result should be all the vertices
assert set(result) == set(graph.keys())


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,17 @@ const KeypairListComponent = ({
Object.keys(obj).map((key, idx) => (
<div key={idx} className="flex w-full items-center gap-2">
<Input
data-testid={getTestId("keypair", index)}
id={getTestId("keypair", index)}
data-testid={getTestId("key pair", index)}
id={getTestId("key pair", index)}
type="text"
value={key.trim()}
className={getInputClassName(editNode, duplicateKey)}
placeholder="Type key..."
onChange={(event) => handleChangeKey(event, index)}
/>
<Input
data-testid={getTestId("keypair", index + 100)}
id={getTestId("keypair", index + 100)}
data-testid={getTestId("key pair", index + 100)}
id={getTestId("key pair", index + 100)}
type="text"
disabled={disabled}
value={obj[key]}
Expand Down
8 changes: 4 additions & 4 deletions src/frontend/src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export const CSVViewErrorTitle = "CSV output";

export const CSVNoDataError = "No data available";

export const PDFViewConstant = "Expand the ouptut to see the PDF";
export const PDFViewConstant = "Expand the output to see the PDF";

export const CSVError = "Error loading CSV";

Expand Down Expand Up @@ -691,16 +691,16 @@ export const TOOLTIP_HIDDEN_OUTPUTS = "Collapse hidden outputs";

export const ZERO_NOTIFICATIONS = "No new notifications";

export const SUCCESS_BUILD = "Built sucessfully ✨";
export const SUCCESS_BUILD = "Built successfully ✨";

export const ALERT_SAVE_WITH_API =
"Caution: Unchecking this box only removes API keys from fields specifically designated for API keys.";

export const SAVE_WITH_API_CHECKBOX = "Save with my API keys";
export const EDIT_TEXT_MODAL_TITLE = "Edit Text";
export const EDIT_TEXT_PLACEHOLDER = "Type message here.";
export const INPUT_HANDLER_HOVER = "Avaliable input components:";
export const OUTPUT_HANDLER_HOVER = "Avaliable output components:";
export const INPUT_HANDLER_HOVER = "Available input components:";
export const OUTPUT_HANDLER_HOVER = "Available output components:";
export const TEXT_INPUT_MODAL_TITLE = "Inputs";
export const OUTPUTS_MODAL_TITLE = "Outputs";
export const LANGFLOW_CHAT_TITLE = "Langflow Chat";
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/constants/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export enum InputOutput {
export enum IOInputTypes {
TEXT = "TextInput",
FILE_LOADER = "FileLoader",
KEYPAIR = "KeyPairInput",
KEY PAIR = "KeyPairInput",
JSON = "JsonInput",
STRING_LIST = "StringListInput",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useGetDownloadFileMutation: useMutationFunctionType<

const getDownloadImagesFn = async () => {
if (!params) return;
// need to use fetch because axios convert blob data to string, and this convertion can corrupt the file
// need to use fetch because axios convert blob data to string, and this conversion can corrupt the file
const response = await fetch(`${getURL("FILES")}/download/${params.path}`, {
headers: {
Accept: "*/*",
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/src/icons/Azure/Azure.jsx

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/frontend/src/icons/VectaraIcon/Vectara.jsx

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/frontend/src/icons/VectaraIcon/vectara.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function CsvSelect({ node, handleChangeSelect }): JSX.Element {
return (
<>
<div className="flex justify-between">
Expand the ouptut to see the CSV
Expand the output to see the CSV
</div>
<div className="flex items-center justify-between pt-5">
<span>CSV separator </span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function IOFieldView({
/>
);

case IOInputTypes.KEYPAIR:
case IOInputTypes.KEY PAIR:
return (
<IOKeyPairInput
value={node.data.node!.template["input_value"]?.value}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const ErrorView = ({
{content.component && (
<>
<span>
An error occured in the{" "}
An error occurred in the{" "}
<span
className={cn(
closeChat ?? "cursor-pointer underline",
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/modals/baseModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function BaseModal({
className,
);

//UPDATE COLORS AND STYLE CLASSSES
//UPDATE COLORS AND STYLE CLASSES
return (
<>
{type === "modal" ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default function ExtraSidebar(): JSX.Element {
}, []);

function handleBlur() {
// check if search is search to reset fitler on click input
// check if search is search to reset filter on click input
if ((!search && search === "") || search === "search") {
setFilterData(data);
setFilterEdge([]);
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/pages/ProfileSettingsPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default function ProfileSettingsPage(): JSX.Element {
Password{" "}
</Form.Label>
<InputComponent
id="pasword"
id="password"
onChange={(value) => {
handleInput({ target: { name: "password", value } });
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const PasswordFormComponent = ({
<div className="flex w-full gap-4">
<Form.Field name="password" className="w-full">
<InputComponent
id="pasword"
id="password"
onChange={(value) => {
handleInput({ target: { name: "password", value } });
}}
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/src/utils/reactflowUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1051,8 +1051,8 @@ export function generateFlow(
id: uid.randomUUID(5),
};
// filter edges that are not connected to selected nodes on both ends
// using O(n²) aproach because the number of edges is small
// in the future we can use a better aproach using a set
// using O(n²) approach because the number of edges is small
// in the future we can use a better approach using a set
return {
newFlow,
removedEdges: edges.filter(
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ export function sortShortcuts(a: string, b: string) {
}
export function addPlusSignes(array: string[]): string[] {
const exceptions = SHORTCUT_KEYS;
// add + sign to the shortcuts beetwen characters that are not in the exceptions
// add + sign to the shortcuts between characters that are not in the exceptions
return array.map((key, index) => {
if (index === 0) return key;
if (
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/tests/core/integrations/Document QA.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ withEventDeliveryModes(
await page
.getByTestId("input-chat-playground")
.last()
.fill("whats the text in the file?");
.fill("what's the text in the file?");
await page.getByTestId("button-send").last().click();

await page.waitForSelector("text=this is a test file", {
Expand Down
Loading