mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 18:36:23 +02:00
refactor: update OAuth scopes and improve connector UI messages
- Removed unnecessary OAuth scopes for Confluence and Jira connectors to streamline authentication requirements. - Updated the Confluence and Jira configuration components to enhance user experience by clarifying connection update instructions and improving styling for displayed URLs.
This commit is contained in:
parent
3dc04f906d
commit
6ea6e752f6
4 changed files with 7 additions and 10 deletions
|
|
@ -80,7 +80,7 @@ export const ConfluenceConfig: FC<ConfluenceConfigProps> = ({
|
|||
|
||||
// For OAuth connectors, show simple info message
|
||||
if (isOAuth) {
|
||||
const siteUrl = (connector.config?.site_url as string) || "Unknown";
|
||||
const siteUrl = (connector.config?.base_url as string) || (connector.config?.site_url as string) || "Unknown";
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
{/* OAuth Info */}
|
||||
|
|
@ -94,10 +94,10 @@ export const ConfluenceConfig: FC<ConfluenceConfigProps> = ({
|
|||
This connector is authenticated using OAuth 2.0. Your Confluence instance is:
|
||||
</p>
|
||||
<p className="text-muted-foreground mt-1 text-[10px] sm:text-sm">
|
||||
<code className="bg-muted px-1 py-0.5 rounded text-[9px]">{siteUrl}</code>
|
||||
<code className="bg-muted px-1 py-0.5 rounded text-inherit">{siteUrl}</code>
|
||||
</p>
|
||||
<p className="text-muted-foreground mt-2 text-[10px] sm:text-sm">
|
||||
To update your connection, disconnect and reconnect through the OAuth flow.
|
||||
<p className="text-muted-foreground mt-1 text-[10px] sm:text-sm">
|
||||
To update your connection, reconnect this connector.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -88,10 +88,10 @@ export const JiraConfig: FC<JiraConfigProps> = ({ connector, onConfigChange, onN
|
|||
This connector is authenticated using OAuth 2.0. Your Jira instance is:
|
||||
</p>
|
||||
<p className="text-muted-foreground mt-1 text-[10px] sm:text-sm">
|
||||
<code className="bg-muted px-1 py-0.5 rounded text-[9px]">{baseUrl}</code>
|
||||
<code className="bg-muted px-1 py-0.5 rounded text-inherit">{baseUrl}</code>
|
||||
</p>
|
||||
<p className="text-muted-foreground mt-2 text-[10px] sm:text-sm">
|
||||
To update your connection, disconnect and reconnect through the OAuth flow.
|
||||
<p className="text-muted-foreground mt-1 text-[10px] sm:text-sm">
|
||||
To update your connection, reconnect this connector.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue