APIKeys: Update text on API keys deprecation (#97022)

* update text on API keys deprecation

* run prettier

* add betterer results
pull/97041/head
Mihai Doarna 8 months ago committed by GitHub
parent 5039725da6
commit d2fab92d8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      .betterer.results
  2. 17
      public/app/features/api-keys/MigrateToServiceAccountsCard.tsx

@ -1848,8 +1848,7 @@ exports[`better eslint`] = {
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "1"],
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "2"],
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "3"],
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "4"],
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "5"]
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "4"]
],
"public/app/features/auth-config/AuthDrawer.tsx:5381": [
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "0"],

@ -17,30 +17,23 @@ export const MigrateToServiceAccountsCard = ({ onMigrate, apikeysCount, disabled
const docsLink = (
<a
className="external-link"
href="https://grafana.com/docs/grafana/latest/administration/service-accounts/migrate-api-keys/)"
href="https://grafana.com/docs/grafana/latest/administration/service-accounts/migrate-api-keys/"
target="_blank"
rel="noopener noreferrer"
>
Find out more about the migration here.
</a>
);
const migrationBoxDesc = (
<span>
Migrating all API keys will hide the API keys tab.
<br></br>
<br></br>
The API keys API will remain available for you to create new API keys, but we strongly encourage you to use
Service accounts instead.
</span>
);
const migrationBoxDesc = <span>Migrating all API keys will hide the API keys tab.</span>;
return (
<>
{apikeysCount > 0 && (
<Alert title="Switch from API keys to service accounts" severity="warning">
<div className={styles.text}>
We will soon deprecate API keys. Each API key will be migrated into a service account with a token and will
continue to work as they were. We encourage you to migrate your API keys to service accounts now. {docsLink}
API keys are deprecated and will be removed from Grafana on Jan 31, 2025. Each API key will be migrated into
a service account with a token and will continue to work as they were. We encourage you to migrate your API
keys to service accounts now. {docsLink}
</div>
<div className={styles.actionRow}>
<Button className={styles.actionButton} onClick={() => setIsModalOpen(true)}>

Loading…
Cancel
Save