summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/features/github-actions-indicators.tsx (renamed from source/features/scheduled-and-manual-workflow-indicators.tsx)7
-rw-r--r--source/options-storage.ts3
-rw-r--r--source/refined-github.ts2
3 files changed, 7 insertions, 5 deletions
diff --git a/source/features/scheduled-and-manual-workflow-indicators.tsx b/source/features/github-actions-indicators.tsx
index e4feca9d..c2c11197 100644
--- a/source/features/scheduled-and-manual-workflow-indicators.tsx
+++ b/source/features/github-actions-indicators.tsx
@@ -99,12 +99,13 @@ async function addIndicators(workflowListItem: HTMLAnchorElement): Promise<void>
const relativeTime = <relative-time datetime={String(nextTime)}/>;
select('.ActionList-item-label', workflowListItem)!.append(
<em>
- (next {relativeTime})
+ ({relativeTime})
</em>,
);
+
setTimeout(() => {
- // The content of `relative-time` might not be immediately available
- addTooltip(workflowListItem, 'Next run in ' + relativeTime.textContent!);
+ // The content of `relative-time` might is not immediately available
+ addTooltip(workflowListItem, `Next run: ${relativeTime.shadowRoot!.textContent!}`);
}, 500);
}
diff --git a/source/options-storage.ts b/source/options-storage.ts
index b8b68376..4a365305 100644
--- a/source/options-storage.ts
+++ b/source/options-storage.ts
@@ -36,7 +36,7 @@ export const renamedFeatures = new Map<string, string>([
['navigate-pages-with-arrow-keys', 'pagination-hotkey'],
['list-pr-for-branch', 'list-prs-for-branch'],
['quick-label-hiding', 'quick-label-removal'],
- ['next-scheduled-github-action', 'scheduled-and-manual-workflow-indicators'],
+ ['next-scheduled-github-action', 'github-actions-indicators'],
['raw-file-link', 'more-file-links'],
['conversation-filters', 'more-conversation-filters'],
['quick-pr-diff-options', 'one-click-diff-options'],
@@ -44,6 +44,7 @@ export const renamedFeatures = new Map<string, string>([
['wait-for-build', 'wait-for-checks'],
['pull-request-hotkey', 'pull-request-hotkeys'],
['first-published-tag-for-merged-pr', 'closing-remarks'],
+ ['scheduled-and-manual-workflow-indicators', 'github-actions-indicators'],
]);
export function getNewFeatureName(possibleFeatureName: string): FeatureID | undefined {
diff --git a/source/refined-github.ts b/source/refined-github.ts
index 8122bfb8..844c1762 100644
--- a/source/refined-github.ts
+++ b/source/refined-github.ts
@@ -176,7 +176,7 @@ import './features/same-page-definition-jump';
import './features/new-repo-disable-projects-and-wikis';
import './features/table-input';
import './features/link-to-github-io';
-import './features/scheduled-and-manual-workflow-indicators';
+import './features/github-actions-indicators';
import './features/convert-pr-to-draft-improvements';
import './features/git-checkout-pr';
import './features/unfinished-comments';