Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/renderer/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"heading": "Laden"
},
"login": {
"create_token": "API-Token erstellen",
"create_token": "Erstellen Sie ein API-Token mit Bereichen",
"duplicate_username": "Dieser Benutzername wurde bereits hinzugefügt. Bitte verwenden Sie einen anderen Benutzernamen.",
"error_message": "Hoppla! Die angegebene Benutzernamen-Token-Kombination ist ungültig. Bitte versuchen Sie es erneut.",
"security_docs": "Siehe Atlassian-Dokumentation",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"heading": "Loading"
},
"login": {
"create_token": "Create API token",
"create_token": "Create API token with scopes",
"duplicate_username": "This username has already been added. Please use a different username.",
"error_message": "Oops! The username + token combination provided are not valid. Please try again.",
"security_docs": "See Atlassian documentation",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"heading": "Cargando"
},
"login": {
"create_token": "Crear token API",
"create_token": "Crear token API con alcances",
"duplicate_username": "Este nombre de usuario ya ha sido agregado. Utilice un nombre de usuario diferente.",
"error_message": "¡Ups! La combinación de token de nombre de usuario proporcionada no es válida. Por favor inténtalo de nuevo.",
"security_docs": "Ver documentación de Atlassian",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"heading": "Chargement"
},
"login": {
"create_token": "Créer un jeton API",
"create_token": "Créer un jeton API avec des étendues",
"duplicate_username": "Ce nom d'utilisateur a déjà été ajouté. Veuillez utiliser un autre nom d'utilisateur.",
"error_message": "Oups ! La combinaison de jetons de nom d'utilisateur fournie n'est pas valide. Veuillez réessayer.",
"security_docs": "Voir la documentation Atlassian",
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/routes/__snapshots__/Login.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 31 additions & 1 deletion src/renderer/utils/system/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,36 @@ import type { Account, AtlassifyNotification, Link } from '../../types';

import { openExternalLink, trackEvent } from './comms';

const SECURITY_TOKEN_SCOPES = [
// 'read:assets:twg-cli',
// 'read:board-scope.admin:jira-software',
// 'read:3p-data:twg-cli',
// 'read:board-scope:jira-software',
// 'read:csm:twg-cli',
// 'read:confluence:twg-cli',
'read:account',
// 'read:loom:twg-cli',
// 'read:ops-alert:jira-service-management',
// 'read:jira-align:twg-cli',
// 'read:jsm:twg-cli',
// 'read:goal:townsquare',
// 'read:mercury:twg-cli',
'read:jira-work',
// 'read:jsw:twg-cli',
'read:jira-user',
// 'read:issue-details:jira',
// 'read:project:jira',
// 'read:project:townsquare',
// 'read:sprint:jira-software',
// 'read:trello:twg-cli',
// 'read:radar:twg-cli',
// 'read:teamwork-graph:twg-cli',
] as const;

const SECURITY_TOKEN_SELECTED_SCOPES = encodeURIComponent(
JSON.stringify(SECURITY_TOKEN_SCOPES),
);

export const URLs = {
ATLASSIAN: {
API: 'https://team.atlassian.net/gateway/api/graphql' as Link,
Expand All @@ -16,7 +46,7 @@ export const URLs = {
MY_NOTIFICATIONS: 'https://team.atlassian.com/notifications' as Link,
PEOPLE: 'https://team.atlassian.com/people' as Link,
SECURITY_TOKENS:
'https://id.atlassian.com/manage-profile/security/api-tokens' as Link,
`https://id.atlassian.com/manage-profile/security/api-tokens?autofillToken=Atlassify&appId=twg&selectedScopes=${SECURITY_TOKEN_SELECTED_SCOPES}&expiryDays=365` as Link,
},
},
};
Expand Down
Loading