mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-26 21:39:43 +02:00
refactor(api): rename personal access tokens to API keys and update related UI components for consistency
This commit is contained in:
parent
96b64166b1
commit
d5e2540e51
9 changed files with 162 additions and 81 deletions
|
|
@ -1,12 +1,10 @@
|
|||
import { Link2Off } from "lucide-react";
|
||||
|
||||
interface PublicChatSnapshotsEmptyStateProps {
|
||||
title?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export function PublicChatSnapshotsEmptyState({
|
||||
title = "No public chat links",
|
||||
title = "No public chats",
|
||||
description = "When you create public links to share chats, they will appear here.",
|
||||
}: PublicChatSnapshotsEmptyStateProps) {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ export function PublicChatSnapshotsManager({
|
|||
<Alert variant="destructive">
|
||||
<AlertCircle className="h-4 w-4" />
|
||||
<AlertDescription>
|
||||
Failed to load public chat links. Please try again later.
|
||||
Failed to load public chats. Please try again later.
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
);
|
||||
|
|
@ -127,7 +127,7 @@ export function PublicChatSnapshotsManager({
|
|||
<Alert>
|
||||
<Info />
|
||||
<AlertDescription>
|
||||
You don't have permission to view public chat links in this search space.
|
||||
You don't have permission to view public chats in this search space.
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
);
|
||||
|
|
@ -140,8 +140,8 @@ export function PublicChatSnapshotsManager({
|
|||
<Alert>
|
||||
<Info />
|
||||
<AlertDescription>
|
||||
Public chat links allow anyone with the URL to view a snapshot of a chat. These links do
|
||||
not update when the original chat changes.
|
||||
Public chats allow anyone with the URL to view a snapshot of a chat. They do not update
|
||||
when the original chat changes.
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
|
||||
|
|
|
|||
|
|
@ -208,10 +208,9 @@ export function GeneralSettingsManager({ searchSpaceId }: GeneralSettingsManager
|
|||
|
||||
<div className="border-t pt-6 flex flex-col gap-3 md:flex-row md:items-center md:justify-between">
|
||||
<div className="space-y-1">
|
||||
<Label htmlFor="api-access-enabled">Programmatic API access</Label>
|
||||
<Label htmlFor="api-access-enabled">API key access</Label>
|
||||
<p className="text-xs text-muted-foreground">
|
||||
Allow personal access tokens to use this search space. Web and desktop sessions are not
|
||||
affected.
|
||||
Allow API keys to access this search space.
|
||||
</p>
|
||||
</div>
|
||||
<Switch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue