Skip to content

Commit b956254

Browse files
authored
Show edited text in red in moderation queue (#9982)
1 parent c59411b commit b956254

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

h/static/scripts/components/AnnotationCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export default function AnnotationCard({
178178
annotationUpdated={annotation.updated}
179179
withEditedTimestamp={
180180
annotation.updated !== annotation.created
181-
? 'prominent'
181+
? 'highlighted'
182182
: false
183183
}
184184
/>

h/static/scripts/components/test/AnnotationCard-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ describe('AnnotationCard', () => {
163163
);
164164
assert.equal(
165165
timestamps.prop('withEditedTimestamp'),
166-
fakeAnnotation.created !== fakeAnnotation.updated ? 'prominent' : false,
166+
fakeAnnotation.created !== fakeAnnotation.updated
167+
? 'highlighted'
168+
: false,
167169
);
168170
});
169171
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@babel/preset-env": "^7.27.1",
1818
"@babel/preset-react": "^7.28.5",
1919
"@babel/preset-typescript": "^7.27.0",
20-
"@hypothesis/annotation-ui": "^1.0.0",
20+
"@hypothesis/annotation-ui": "^1.1.0",
2121
"@hypothesis/frontend-build": "^5.0.0",
2222
"@hypothesis/frontend-shared": "^10.3.2",
2323
"@rollup/plugin-babel": "^6.0.4",

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2192,16 +2192,16 @@ __metadata:
21922192
languageName: node
21932193
linkType: hard
21942194

2195-
"@hypothesis/annotation-ui@npm:^1.0.0":
2196-
version: 1.0.0
2197-
resolution: "@hypothesis/annotation-ui@npm:1.0.0"
2195+
"@hypothesis/annotation-ui@npm:^1.1.0":
2196+
version: 1.1.0
2197+
resolution: "@hypothesis/annotation-ui@npm:1.1.0"
21982198
peerDependencies:
2199-
"@hypothesis/frontend-shared": ^9.4.0
2199+
"@hypothesis/frontend-shared": ^10.2.0
22002200
dompurify: ^3.0.0
22012201
escape-html: ^1.0.3
22022202
katex: ^0.16.0
22032203
showdown: ^2.0.0
2204-
checksum: 3dbb8d1c0b3dbc1826fe388c659ed036277393c89bd56f5782ff8d76888a07504cd9dd90e7fa743ebbc28e846a5e58d536d699e7a4c183f0358cb5fbf7047f31
2204+
checksum: 945dfa4315f36717c0fd466632ae2c0dbd6c721e7c8855e2e881a294ca0806bac9871bd942284498e3d7e21d38e05392c7d860a0a51a155d07cc17a19db8c273
22052205
languageName: node
22062206
linkType: hard
22072207

@@ -7151,7 +7151,7 @@ __metadata:
71517151
"@babel/preset-env": ^7.27.1
71527152
"@babel/preset-react": ^7.28.5
71537153
"@babel/preset-typescript": ^7.27.0
7154-
"@hypothesis/annotation-ui": ^1.0.0
7154+
"@hypothesis/annotation-ui": ^1.1.0
71557155
"@hypothesis/frontend-build": ^5.0.0
71567156
"@hypothesis/frontend-shared": ^10.3.2
71577157
"@hypothesis/frontend-testing": ^1.7.1

0 commit comments

Comments
 (0)