From 9820c188045feb84249aa90cceba50bb3629a02b Mon Sep 17 00:00:00 2001 From: Tyler Romero Date: Wed, 30 Oct 2024 15:53:34 -0700 Subject: [PATCH] Rename `app.groundlight.ai` to `dashboard.groundlight.ai` (#270) New login flow. --- README.md | 2 +- docs/docs/getting-started/1-api-tokens.md | 3 +- .../getting-started/3-retail-analytics.md | 3 +- docs/docs/getting-started/4-dog-on-couch.md | 3 +- docs/docs/getting-started/5-streaming.md | 3 +- docs/docs/getting-started/getting-started.mdx | 3 +- docs/docusaurus.config.js | 2 +- docs/package-lock.json | 53 ++++++++----------- src/groundlight/config.py | 2 +- 9 files changed, 31 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 5e852f13..4dfc0e58 100644 --- a/README.md +++ b/README.md @@ -31,4 +31,4 @@ Some more resources you might like: - [Code Documentation](https://code.groundlight.ai/python-sdk/docs/getting-started) - [Python SDK on PyPi](https://pypi.org/project/groundlight/) or [GitHub](https://github.com/groundlight/python-sdk) - [Company](https://www.groundlight.ai/) -- [Login to Groundlight App](https://app.groundlight.ai/) +- [Login to the Groundlight Dashboard](https://dashboard.groundlight.ai/) diff --git a/docs/docs/getting-started/1-api-tokens.md b/docs/docs/getting-started/1-api-tokens.md index ec466700..c5d31c16 100644 --- a/docs/docs/getting-started/1-api-tokens.md +++ b/docs/docs/getting-started/1-api-tokens.md @@ -40,7 +40,7 @@ gl = Groundlight(api_token=token) ``` ## Creating and Revoking API Tokens -You can manage your API tokens from the Groundlight website at [https://app.groundlight.ai/reef/my-account/api-tokens](https://app.groundlight.ai/reef/my-account/api-tokens). +You can manage your API tokens from the Groundlight dashboard at [https://dashboard.groundlight.ai/reef/my-account/api-tokens](https://dashboard.groundlight.ai/reef/my-account/api-tokens). ### Creating API Tokens @@ -66,4 +66,3 @@ On the API tokens page, you can see a list of your current tokens, along with th 1. Confirm that you want to revoke the token. Note: Revoking an API token will immediately invalidate it and prevent any applications using it from accessing your Groundlight account. Be sure to update your applications with a new token before revoking an old one. - diff --git a/docs/docs/getting-started/3-retail-analytics.md b/docs/docs/getting-started/3-retail-analytics.md index ec6250bd..f64073ba 100644 --- a/docs/docs/getting-started/3-retail-analytics.md +++ b/docs/docs/getting-started/3-retail-analytics.md @@ -32,7 +32,7 @@ pip install groundlight opencv-python pillow ## Creating the Application -1. First, log in to the [Groundlight application](https://app.groundlight.ai) and get an [API Token](api-tokens). +1. First, log in to the [Groundlight dashboard](https://dashboard.groundlight.ai) and create an [API Token](https://dashboard.groundlight.ai/reef/my-account/api-tokens). 2. Next, we'll write the Python script for the application. Import the required libraries: @@ -166,4 +166,3 @@ Save the script as `service_counter_monitor.py` and run it: ```bash python service_counter_monitor.py ``` - diff --git a/docs/docs/getting-started/4-dog-on-couch.md b/docs/docs/getting-started/4-dog-on-couch.md index e2a4a5fa..0305af0c 100644 --- a/docs/docs/getting-started/4-dog-on-couch.md +++ b/docs/docs/getting-started/4-dog-on-couch.md @@ -19,7 +19,7 @@ pip install groundlight opencv-python pillow pyaudio ## Creating the Application -1. First, log in to the [Groundlight application](https://app.groundlight.ai) and get an [API Token](api-tokens). +1. First, log in to the [Groundlight dashboard](https://dashboard.groundlight.ai) and create an [API Token](https://dashboard.groundlight.ai/reef/my-account/api-tokens). 2. Next, we'll write the Python script for the application. Import the required libraries: @@ -106,4 +106,3 @@ Save the script as `dog_on_couch_detector.py` and run it: ```bash python dog_on_couch_detector.py ``` - diff --git a/docs/docs/getting-started/5-streaming.md b/docs/docs/getting-started/5-streaming.md index 80eca24c..2b0a597b 100644 --- a/docs/docs/getting-started/5-streaming.md +++ b/docs/docs/getting-started/5-streaming.md @@ -39,7 +39,7 @@ This will download the most recent frame from a YouTube live stream and save it chmod +x get_latest_frame.sh ``` -3. Log in to the [Groundlight application](https://app.groundlight.ai) and get an [API Token](api-tokens). +3. Log in to the [Groundlight dashboard](https://dashboard.groundlight.ai) and create an [API Token](https://dashboard.groundlight.ai/reef/my-account/api-tokens). 4. Next, we'll write the Python script for the application. @@ -83,4 +83,3 @@ if __name__ == "__main__": ```bash python streaming_alert.py --video-id= --detector-name= --query= ``` - diff --git a/docs/docs/getting-started/getting-started.mdx b/docs/docs/getting-started/getting-started.mdx index b1abf684..ca683ce7 100644 --- a/docs/docs/getting-started/getting-started.mdx +++ b/docs/docs/getting-started/getting-started.mdx @@ -33,8 +33,7 @@ Groundlight's Escalation Technology combines the power of generative AI using ou pip3 install groundlight ``` -1. Head over to the [groundlight web - app](https://app.groundlight.ai/reef/my-account/api-tokens) to create an [API token](/docs/getting-started/api-tokens). You will +1. Head over to the [Groundlight dashboard](https://dashboard.groundlight.ai/) to create an [API token](https://dashboard.groundlight.ai/reef/my-account/api-tokens). You will need to set the `GROUNDLIGHT_API_TOKEN` environment variable to access the API. ```shell diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index cd79ecc7..8e90100b 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -176,7 +176,7 @@ const config = { }, { label: "Sign In", - href: "https://app.groundlight.ai/", + href: "https://dashboard.groundlight.ai/", }, ], }, diff --git a/docs/package-lock.json b/docs/package-lock.json index 7e4440d2..fba34c55 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -6345,14 +6345,6 @@ "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, - "node_modules/fast-url-parser": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/fast-url-parser/-/fast-url-parser-1.1.3.tgz", - "integrity": "sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==", - "dependencies": { - "punycode": "^1.3.2" - } - }, "node_modules/fastq": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", @@ -11501,9 +11493,10 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "node_modules/path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.9.0.tgz", + "integrity": "sha512-xIp7/apCFJuUHdDLWe8O1HIkb0kQrOMb/0u6FXQjemHn/ii5LrIzU6bdECnsiTF/GjZkMEKg1xdiZwNqDYlZ6g==", + "license": "MIT", "dependencies": { "isarray": "0.0.1" } @@ -12319,11 +12312,6 @@ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, - "node_modules/punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==" - }, "node_modules/pupa": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/pupa/-/pupa-3.1.0.tgz", @@ -12852,6 +12840,7 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/rehype-katex/-/rehype-katex-7.0.1.tgz", "integrity": "sha512-OiM2wrZ/wuhKkigASodFoo8wimG3H12LWQaH8qSPVJn9apWKFSH3YOCtbKpBorTVw/eI7cuT21XBbvwEswbIOA==", + "license": "MIT", "dependencies": { "@types/hast": "^3.0.0", "@types/katex": "^0.16.0", @@ -13010,6 +12999,7 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/remark-math/-/remark-math-6.0.0.tgz", "integrity": "sha512-MMqgnP74Igy+S3WwnhQ7kqGlEerTETXMvJhrUzDikVZ2/uogJCb+WHUg97hK9/jcfc0dkD73s3LN8zU49cTEtA==", + "license": "MIT", "dependencies": { "@types/mdast": "^4.0.0", "mdast-util-math": "^3.0.0", @@ -13566,24 +13556,25 @@ } }, "node_modules/serve-handler": { - "version": "6.1.5", - "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-6.1.5.tgz", - "integrity": "sha512-ijPFle6Hwe8zfmBxJdE+5fta53fdIY0lHISJvuikXB3VYFafRjMRpOffSPvCYsbKyBA7pvy9oYr/BT1O3EArlg==", + "version": "6.1.6", + "resolved": "https://registry.npmjs.org/serve-handler/-/serve-handler-6.1.6.tgz", + "integrity": "sha512-x5RL9Y2p5+Sh3D38Fh9i/iQ5ZK+e4xuXRd/pGbM4D13tgo/MGwbttUk8emytcr1YYzBYs+apnUngBDFYfpjPuQ==", + "license": "MIT", "dependencies": { "bytes": "3.0.0", "content-disposition": "0.5.2", - "fast-url-parser": "1.1.3", "mime-types": "2.1.18", "minimatch": "3.1.2", "path-is-inside": "1.0.2", - "path-to-regexp": "2.2.1", + "path-to-regexp": "3.3.0", "range-parser": "1.2.0" } }, "node_modules/serve-handler/node_modules/path-to-regexp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-2.2.1.tgz", - "integrity": "sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==" + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-3.3.0.tgz", + "integrity": "sha512-qyCH421YQPS2WFDxDjftfc1ZR5WKQzVzqsp4n9M2kQhVOo/ByahFoUNJfl58kOcEGfQ//7weFTDhm+ss8Ecxgw==", + "license": "MIT" }, "node_modules/serve-index": { "version": "1.9.1", @@ -15290,9 +15281,10 @@ } }, "node_modules/webpack-dev-server/node_modules/ws": { - "version": "8.14.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", - "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", + "license": "MIT", "engines": { "node": ">=10.0.0" }, @@ -15515,9 +15507,10 @@ } }, "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", + "license": "MIT", "engines": { "node": ">=8.3.0" }, diff --git a/src/groundlight/config.py b/src/groundlight/config.py index b70d4842..c254d46d 100644 --- a/src/groundlight/config.py +++ b/src/groundlight/config.py @@ -1,4 +1,4 @@ -API_TOKEN_WEB_URL = "https://app.groundlight.ai/reef/my-account/api-tokens" +API_TOKEN_WEB_URL = "https://dashboard.groundlight.ai/reef/my-account/api-tokens" API_TOKEN_VARIABLE_NAME = "GROUNDLIGHT_API_TOKEN" DEFAULT_ENDPOINT = "https://api.groundlight.ai/"