Skip to content

Commit

Permalink
all: de-emphasise 'instance' and 'self-hosted' terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Dec 11, 2024
1 parent 27c64e7 commit 49aaae6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,29 @@
{
"name": "cloudToken",
"title": "Sourcegraph.com: Access token",
"description": "Available under 'Profile' -> 'Access token' on Sourcegraph.com",
"description": "Configures 'Sourcegraph.com' commands - available under 'Profile' -> 'Access token' on Sourcegraph.com",
"required": false,
"type": "password"
},
{
"name": "customInstance",
"title": "Sourcegraph Instance: Instance URL",
"description": "Required to use use 'Sourcegraph Instance' commands - URL of the Sourcegraph instance you want to connect to.",
"title": "Sourcegraph: URL",
"description": "Required to use 'Sourcegraph' commands - Sourcegraph URL you want to connect to.",
"placeholder": "https://sourcegraph.my-company.com",
"required": false,
"type": "textfield"
},
{
"name": "customInstanceToken",
"title": "Sourcegraph Instance: Access token",
"description": "Required to use 'Sourcegraph Instance' commands - available under 'Profile' -> 'Access token' on your Sourcegraph instance.",
"title": "Sourcegraph: Access token",
"description": "Required to use 'Sourcegraph' commands - available under 'Profile' -> 'Access token' in Sourcegraph.",
"required": false,
"type": "password"
},
{
"name": "customInstanceProxy",
"title": "Sourcegraph Instance: Proxy",
"description": "Optional proxy to use when connecting to a custom Sourcegraph instance - presently, only Unix domain sockets are supported.",
"title": "Sourcegraph: Proxy",
"description": "Optional proxy to use when using a custom Sourcegraph connection - presently, only Unix domain sockets are supported.",
"required": false,
"type": "textfield"
},
Expand Down Expand Up @@ -96,8 +96,8 @@
"name": "searchInstance",
"icon": "logo-bw.png",
"title": "Search Code",
"subtitle": "Sourcegraph Instance",
"description": "Search code on a Sourcegraph instance.",
"subtitle": "Sourcegraph",
"description": "Search code on Sourcegraph.",
"mode": "view",
"keywords": [
"sourcegraph",
Expand Down Expand Up @@ -136,7 +136,7 @@
"name": "searchHistoryInstance",
"icon": "logo-bw.png",
"title": "Code Search History",
"subtitle": "Sourcegraph Instance",
"subtitle": "Sourcegraph",
"description": "Browse and launch recent code searches.",
"mode": "view",
"keywords": [
Expand All @@ -152,8 +152,8 @@
"name": "findNotebooksInstance",
"icon": "logo-bw.png",
"title": "Find Search Notebooks",
"subtitle": "Sourcegraph Instance",
"description": "Browse search notebooks on a Sourcegraph instance.",
"subtitle": "Sourcegraph",
"description": "Browse search notebooks in Sourcegraph.",
"mode": "view",
"keywords": [
"sourcegraph",
Expand All @@ -167,8 +167,8 @@
"name": "manageBatchChangesInstance",
"icon": "logo-bw.png",
"title": "Manage Batch Changes",
"subtitle": "Sourcegraph Instance",
"description": "Manage batch changes on a Sourcegraph instance.",
"subtitle": "Sourcegraph",
"description": "Manage batch changes in Sourcegraph.",
"mode": "view",
"keywords": [
"sourcegraph",
Expand Down Expand Up @@ -221,4 +221,4 @@
"gql": "graphql-codegen --config graphql-codegen.yml && npm run fmt",
"postinstall": "patch-package"
}
}
}
8 changes: 4 additions & 4 deletions raycast-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
/* eslint-disable @typescript-eslint/ban-types */

type ExtensionPreferences = {
/** Sourcegraph.com: Access token - Available under 'Profile' -> 'Access token' on Sourcegraph.com */
/** Sourcegraph.com: Access token - Configures 'Sourcegraph.com' commands - available under 'Profile' -> 'Access token' on Sourcegraph.com */
"cloudToken"?: string,
/** Sourcegraph Instance: Instance URL - Required to use use 'Sourcegraph Instance' commands - URL of the Sourcegraph instance you want to connect to. */
/** Sourcegraph: URL - Required to use 'Sourcegraph' commands - Sourcegraph URL you want to connect to. */
"customInstance"?: string,
/** Sourcegraph Instance: Access token - Required to use 'Sourcegraph Instance' commands - available under 'Profile' -> 'Access token' on your Sourcegraph instance. */
/** Sourcegraph: Access token - Required to use 'Sourcegraph' commands - available under 'Profile' -> 'Access token' in Sourcegraph. */
"customInstanceToken"?: string,
/** Sourcegraph Instance: Proxy - Optional proxy to use when connecting to a custom Sourcegraph instance - presently, only Unix domain sockets are supported. */
/** Sourcegraph: Proxy - Optional proxy to use when using a custom Sourcegraph connection - presently, only Unix domain sockets are supported. */
"customInstanceProxy"?: string,
/** Additional features - Toggle the search pattern dropdown in the search command. */
"featureSearchPatternDropdown": boolean,
Expand Down
26 changes: 13 additions & 13 deletions src/components/InstanceCommand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function InstanceCommand({
Command: React.FunctionComponent<{ src: Sourcegraph; props?: LaunchProps }>;
props?: LaunchProps;
}) {
const tryCloudMessage = "Alternatively, you can try the Sourcegraph.com version of this command first.";
const tryDotComMessage = "Alternatively, you can try the 'Sourcegraph.com' commands first.";

const setupGuideAction = (
<Action.OpenInBrowser
Expand All @@ -43,14 +43,14 @@ export default function InstanceCommand({
updateCommandMetadata({ subtitle: null });
return (
<Detail
navigationTitle="No Sourcegraph Self-Hosted instance configured"
navigationTitle="No Sourcegraph connection configured"
markdown={`${bold(
`⚠️ No Sourcegraph Sourcegraph Self-Hosted instance configured`,
)} - please set one up in the extension preferences to use this command!\n\n${tryCloudMessage}`}
`⚠️ No Sourcegraph connection configured`,
)} - please set one up in the extension preferences to use this command!\n\n${tryDotComMessage}`}
actions={
<ActionPanel>
{setupGuideAction}
{openPreferencesAction}
{setupGuideAction}
</ActionPanel>
}
/>
Expand All @@ -62,14 +62,14 @@ export default function InstanceCommand({
updateCommandMetadata({ subtitle: null });
return (
<Detail
navigationTitle="Invalid Sourcegraph Self-Hosted URL"
navigationTitle="Invalid Sourcegraph URL"
markdown={`${bold(
`⚠️ Sourcegraph Self-Hosted URL '${src.instance}' is invalid:`,
)} ${e}\n\nUpdate it in the extension preferences!\n\n${tryCloudMessage}`}
`⚠️ Sourcegraph URL '${src.instance}' is invalid:`,
)} ${e}\n\nUpdate it in the extension preferences!\n\n${tryDotComMessage}`}
actions={
<ActionPanel>
{openPreferencesAction}
{setupGuideAction}
{openPreferencesAction}
</ActionPanel>
}
/>
Expand All @@ -84,14 +84,14 @@ export default function InstanceCommand({
if (!src.token) {
return (
<Detail
navigationTitle="Invalid Sourcegraph Self-Hosted access token"
navigationTitle="Invalid Sourcegraph access token"
markdown={`${bold(
`⚠️ A token is required for Sourcegraph Self-Hosted instance '${src.instance}'`,
)} - please add an access token for Sourcegraph Self-Hosted in the extension preferences!\n\n${tryCloudMessage}`}
`⚠️ A token is required for Sourcegraph connection '${src.instance}'`,
)} - please add an access token for this Sourcegraph connection in the extension preferences!\n\n${tryDotComMessage}`}
actions={
<ActionPanel>
{openPreferencesAction}
{setupGuideAction}
{openPreferencesAction}
</ActionPanel>
}
/>
Expand Down

0 comments on commit 49aaae6

Please sign in to comment.