From d01fbd8fba7803234fc057e09149528dd5cf849a Mon Sep 17 00:00:00 2001 From: Sashank Aryal Date: Fri, 21 Feb 2025 12:06:30 -0600 Subject: [PATCH 1/2] teams -> enterprise --- .../components/src/components/Teams/Teams.tsx | 159 ------------------ .../components/src/components/Teams/index.ts | 0 .../NativeModelEvaluationView/index.tsx | 2 +- app/packages/embeddings/src/EmbeddingsCTA.tsx | 2 +- .../embeddings/src/useComputeVisualization.ts | 2 +- 5 files changed, 3 insertions(+), 162 deletions(-) delete mode 100644 app/packages/components/src/components/Teams/Teams.tsx delete mode 100644 app/packages/components/src/components/Teams/index.ts diff --git a/app/packages/components/src/components/Teams/Teams.tsx b/app/packages/components/src/components/Teams/Teams.tsx deleted file mode 100644 index ee502cd77cb..00000000000 --- a/app/packages/components/src/components/Teams/Teams.tsx +++ /dev/null @@ -1,159 +0,0 @@ -import React, { useState } from "react"; -import { Close } from "@mui/icons-material"; -import { useRecoilState } from "recoil"; - -import { getFetchFunction } from "@fiftyone/utilities"; - -const Teams = () => { - const [formState, setFormState] = useState({ - email: "", - firstname: "", - lastname: "", - company: "", - role: "", - discover: "", - }); - const [submitText, setSubmitText] = useState("Submit"); - const [teams, setTeams] = useRecoilState(atoms.teams); - const portalId = 4972700; - const formId = "bca87445-10be-424c-9c07-e2b16770caf6"; - const postUrl = `https://api.hsforms.com/submissions/v3/integration/submit/${portalId}/${formId}`; - - const setFormValue = (name) => (e) => - setFormState({ - ...formState, - [name]: e.target.value, - }); - const disabled = - !( - formState.email?.length && - formState.firstname?.length && - formState.lastname?.length - ) || teams.submitted; - const submit = () => { - if (disabled) { - return; - } - setSubmitText("Submitting..."); - const headers = new Headers(); - headers.append("Content-Type", "application/json"); - const finalize = () => { - setSubmitText("Submitted. Thank you!"); - setTeams((cur) => ({ ...cur, submitted: true })); - getFetchFunction()("POST", "/teams?submitted=true", {}); - setTimeout(() => setTeams((cur) => ({ ...cur, open: false })), 2000); - }; - - fetch(postUrl, { - method: "post", - headers, - mode: "cors", - body: JSON.stringify({ - submittedAt: Date.now(), - fields: [ - { - name: "firstname", - value: formState.firstname, - }, - { - name: "lastname", - value: formState.lastname, - }, - { - name: "email", - value: formState.email, - }, - { - name: "company", - value: formState.company, - }, - { - name: "role", - value: formState.role, - }, - { - name: "app_how_did_you_hear_about_us", - value: formState.discover, - }, - ], - context: { pageName: "FiftyOne App" }, - }), - }) - .then((response) => { - if (response.status !== 200) { - throw new Error("Failed submission"); - } - return response.json(); - }) - .then(() => { - finalize(); - }) - .catch((e) => { - setSubmitText("Something went wrong"); - }); - }; - return ( - -
- Get FiftyOne for your team - -
- - - - - - - -
- ); -}; - -export default Teams; diff --git a/app/packages/components/src/components/Teams/index.ts b/app/packages/components/src/components/Teams/index.ts deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/index.tsx b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/index.tsx index a150d5fbec9..bc8aeed774f 100644 --- a/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/index.tsx +++ b/app/packages/core/src/plugins/SchemaIO/components/NativeModelEvaluationView/index.tsx @@ -88,7 +88,7 @@ export default function NativeModelEvaluationView(props) { (showEmptyOverview || showCTA ? ( Date: Fri, 21 Feb 2025 12:31:58 -0600 Subject: [PATCH 2/2] rename teams to enterprise in readme --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 06323ddd848..db27100fcaa 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ data quality more efficiently than ever before 🤝 If you're looking to scale to production-grade, collaborative, cloud-native enterprise workloads, check out -**[FiftyOne Teams](http://voxel51.com/enterprise)** 🚀 +**[FiftyOne Enterprise](http://voxel51.com/enterprise)** 🚀 ![------------------------------------------------------------------](https://github.com/user-attachments/assets/fb0573d0-bb56-40ff-9ae1-a5e8f62f5f42) @@ -456,8 +456,8 @@ https://github.com/user-attachments/assets/7aa906c9-aab3-45c7-bd66-f388cac343e0 ##   additional resources   🚁 -| [FiftyOne Teams](https://voxel51.com/enterprise) | [VoxelGPT](https://github.com/voxel51/voxelgpt) | [Plugins](https://voxel51.com/plugins) | [Vector Search](https://voxel51.com/blog/the-computer-vision-interface-for-vector-search) | [Dataset Zoo](https://docs.voxel51.com/dataset_zoo/index.html) | [Model Zoo](https://docs.voxel51.com/model_zoo/index.html) | [FiftyOne Brain](https://docs.voxel51.com/brain.html) | -| ------------------------------------------------ | ----------------------------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------------------- | +| [FiftyOne Enterprise](https://voxel51.com/enterprise) | [VoxelGPT](https://github.com/voxel51/voxelgpt) | [Plugins](https://voxel51.com/plugins) | [Vector Search](https://voxel51.com/blog/the-computer-vision-interface-for-vector-search) | [Dataset Zoo](https://docs.voxel51.com/dataset_zoo/index.html) | [Model Zoo](https://docs.voxel51.com/model_zoo/index.html) | [FiftyOne Brain](https://docs.voxel51.com/brain.html) | +| ----------------------------------------------------- | ----------------------------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------------------- | @@ -477,13 +477,13 @@ Full documentation for FiftyOne is available at ![------------------------------------------------------------------](https://github.com/user-attachments/assets/fb0573d0-bb56-40ff-9ae1-a5e8f62f5f42) -
+
-##   FiftyOne Teams   🏎️ +##   FiftyOne Enterprise   🏎️ Want to securely collaborate on billions of samples in the cloud and connect to your compute resources to automate your workflows? Check out -[FiftyOne Teams](https://voxel51.com/enterprise). +[FiftyOne Enterprise](https://voxel51.com/enterprise). ![------------------------------------------------------------------](https://github.com/user-attachments/assets/fb0573d0-bb56-40ff-9ae1-a5e8f62f5f42)