message: Improve progress UI for `deep-reblame`
diff: @@ -9,7 +9,7 @@ import * as pageDetect from 'github-url-detection';
  import features from '.';
  import * as api from '../github-helpers/api';
  import GitHubURL from '../github-helpers/github-url';
  -import LoadingIcon from '../github-helpers/icon-loading';
  +import showToast from '../github-helpers/toast';
  import looseParseInt from '../helpers/loose-parse-int';
  const getPullRequestBlameCommit = mem(async (commit: string, prNumbers: number[], currentFilename: string): Promise<string> => {
  @@ -67,17 +67,14 @@ async function redirectToBlameCommit(event: delegate.Event<MouseEvent, HTMLAncho
  const prCommit = select('a.message', blameHunk)!.pathname.split('/').pop()!;
  const blameUrl = new GitHubURL(location.href);
  - const spinner = <LoadingIcon className="mr-2"/>;
  - blameElement.firstElementChild!.replaceWith(spinner);
  -
  - try {
  + await showToast(async () => {
  blameUrl.branch = await getPullRequestBlameCommit(prCommit, prNumbers, blameUrl.filePath);
  blameUrl.hash = 'L' + select('.js-line-number', blameHunk)!.textContent!;
  location.href = blameUrl.href;
  - } catch (error: unknown) {
  - spinner.replaceWith(<VersionsIcon/>);
  - alert((error as Error).message);
  - }
  + }, {
  + message: 'Fetching pull request',
  + doneMessage: 'Redirecting',
  + });
  }
  function init(): void | false {
  