Skip to content

Commit dff04f1

Browse files
authored
Feature/screen snippit (#49)
* remove excessive setIcon calls * pageinfo scripting works * automation blocked pages now get a tag * adding more debug and error handling * fix spinner color * add remote debug support to content script logging * bulk automation shows reason for failure * add logic to auto refresh bulk automation page * fix user log out error * added deep-save tag automatically to captures
1 parent 1c5987a commit dff04f1

22 files changed

+477
-507
lines changed

package-lock.json

Lines changed: 74 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "your-rapport",
3-
"version": "0.26.0",
3+
"version": "0.27.0",
44
"description": "A chrome extension for saving screenshots and making them searchable.",
55
"license": "Commercial",
66
"scripts": {
@@ -15,6 +15,7 @@
1515
"@mui/icons-material": "^5.14.14",
1616
"@mui/material": "^5.14.14",
1717
"@mui/styled-engine-sc": "^6.0.0-alpha.2",
18+
"@zumer/snapdom": "^2.0.2",
1819
"cheerio": "^1.1.2",
1920
"cron-parser": "^5.4.0",
2021
"dexie": "^4.2.0",

src/backgrounds/automation-queue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// src/backgrounds/automation-queue.ts
2-
import { getLocalItem, setLocalItem, updateRecord } from '../models/db/local';
32
import { processNotification } from '../utilities/loaders';
4-
import { IBulkAutomationRecord } from '../types';
53
import { debug } from '../services/logger_services';
64
import { db } from '../models/db/dexieDb';
75
import BulkAutomationUrl from '../models/schemas/BulkAutomationUrl';
@@ -53,7 +51,9 @@ export async function fail(queuedJob: BulkAutomationUrl, reason: string) {
5351
if (queuedJob) {
5452
queuedJob.status = 'failed';
5553
queuedJob.failReason = reason;
54+
queuedJob.description = reason;
5655
queuedJob.leaseUntil = null;
56+
queuedJob.completedOn = new Date().getTime();
5757
await debug(`automation job failed`, queuedJob);
5858
await db.bulkAutomation.put(queuedJob);
5959

src/backgrounds/automation-runner.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ let processing: boolean = false;
1818

1919
export function initializeAutomationRunner() {
2020
// add default set of tags used in the automations
21-
db.tag.bulkPut([new Tag('img-change-detected'), new Tag('selectors-detected'), new Tag('text-change-detected')]);
21+
db.tag.bulkPut([
22+
new Tag('img-change-detected'),
23+
new Tag('selectors-detected'),
24+
new Tag('text-change-detected'),
25+
new Tag('automation-blocked'),
26+
new Tag('deep-save')
27+
]);
2228

2329
// periodic tick to recover & continue
2430
chrome.alarms.create('yr_queue_tick', { periodInMinutes: 1 });

src/components/TopAppBar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default function TopAppBar() {
128128
}
129129
}}
130130
>
131-
<SecurityIcon color={ hasPermission ? 'success' : 'error'}/>
131+
<SecurityIcon color={ hasPermission ? 'primary' : 'error'}/>
132132
</IconButton>
133133
</Tooltip>
134134

@@ -141,7 +141,7 @@ export default function TopAppBar() {
141141
color="inherit"
142142
onClick={() => createTab('https://github.com/yooper/your-rapport/wiki/Pro-features')}
143143
>
144-
<SyncIcon color={'success'} />
144+
<SyncIcon color={'info'} />
145145
</IconButton>
146146
</Tooltip>
147147
) : (
@@ -166,7 +166,7 @@ export default function TopAppBar() {
166166
color="inherit"
167167
onClick={() => createTab('https://github.com/yooper/your-rapport/wiki/Pro-features')}
168168
>
169-
<PersonIcon color={'success'}/>
169+
<PersonIcon color={'info'}/>
170170
</IconButton>
171171
</Tooltip>
172172
) : (

0 commit comments

Comments
 (0)