Skip to content

Commit 89f3304

Browse files
committed
1 parent 25d7b9e commit 89f3304

20 files changed

Lines changed: 47 additions & 36 deletions

Module.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ <h5 class="h5-returns">Returns:</h5>
22382238
<br class="clear">
22392239

22402240
<footer>
2241-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2241+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
22422242
</footer>
22432243

22442244
<script>prettyPrint();</script>

TBListener.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ <h5 class="h5-parameters">Parameters:</h5>
842842
<br class="clear">
843843

844844
<footer>
845-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
845+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
846846
</footer>
847847

848848
<script>prettyPrint();</script>

background_messageHandling.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h1 class="page-title">background/messageHandling.js</h1>
8686
<br class="clear">
8787

8888
<footer>
89-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
89+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
9090
</footer>
9191

9292
<script>prettyPrint();</script>

global.html

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ <h4 class="name" id="defaultNoteLabelValueToLabelType"><span class="type-signatu
919919

920920
<dt class="tag-source">Source:</dt>
921921
<dd class="tag-source"><ul class="dummy"><li>
922-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line86">line 86</a>
922+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line88">line 88</a>
923923
</li></ul></dd>
924924

925925

@@ -1260,7 +1260,7 @@ <h4 class="name" id="labelNames"><span class="type-signature type-signature-cons
12601260

12611261
<dt class="tag-source">Source:</dt>
12621262
<dd class="tag-source"><ul class="dummy"><li>
1263-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line71">line 71</a>
1263+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line72">line 72</a>
12641264
</li></ul></dd>
12651265

12661266

@@ -1923,7 +1923,7 @@ <h4 class="name" id="submissionFullnamesCache"><span class="type-signature type-
19231923

19241924
<dt class="tag-source">Source:</dt>
19251925
<dd class="tag-source"><ul class="dummy"><li>
1926-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line221">line 221</a>
1926+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line227">line 227</a>
19271927
</li></ul></dd>
19281928

19291929

@@ -2311,7 +2311,7 @@ <h4 class="name" id="ModNotesBadge"><span class="type-signature"></span>ModNotes
23112311

23122312
<dt class="tag-source">Source:</dt>
23132313
<dd class="tag-source"><ul class="dummy"><li>
2314-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line286">line 286</a>
2314+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line292">line 292</a>
23152315
</li></ul></dd>
23162316

23172317

@@ -2627,7 +2627,7 @@ <h4 class="name" id="ModNotesPager"><span class="type-signature"></span>ModNotes
26272627

26282628
<dt class="tag-source">Source:</dt>
26292629
<dd class="tag-source"><ul class="dummy"><li>
2630-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line316">line 316</a>
2630+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line322">line 322</a>
26312631
</li></ul></dd>
26322632

26332633

@@ -2712,7 +2712,7 @@ <h4 class="name" id="ModNotesPopup"><span class="type-signature"></span>ModNotes
27122712

27132713
<dt class="tag-source">Source:</dt>
27142714
<dd class="tag-source"><ul class="dummy"><li>
2715-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line380">line 380</a>
2715+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line386">line 386</a>
27162716
</li></ul></dd>
27172717

27182718

@@ -3028,7 +3028,7 @@ <h4 class="name" id="NoteTableRow"><span class="type-signature"></span>NoteTable
30283028

30293029
<dt class="tag-source">Source:</dt>
30303030
<dd class="tag-source"><ul class="dummy"><li>
3031-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line489">line 489</a>
3031+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line495">line 495</a>
30323032
</li></ul></dd>
30333033

30343034

@@ -6690,7 +6690,7 @@ <h4 class="name" id="getAllModNotes"><span class="type-signature type-signature-
66906690

66916691
<dt class="tag-source">Source:</dt>
66926692
<dd class="tag-source"><ul class="dummy"><li>
6693-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line187">line 187</a>
6693+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line193">line 193</a>
66946694
</li></ul></dd>
66956695

66966696

@@ -6892,7 +6892,7 @@ <h4 class="name" id="getContextURL"><span class="type-signature type-signature-a
68926892

68936893
<dt class="tag-source">Source:</dt>
68946894
<dd class="tag-source"><ul class="dummy"><li>
6895-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line251">line 251</a>
6895+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line257">line 257</a>
68966896
</li></ul></dd>
68976897

68986898

@@ -7150,13 +7150,14 @@ <h4 class="name" id="getLatestModNote"><span class="type-signature"></span>getLa
71507150
<dl class="details">
71517151

71527152
<dt class="tag-description">Description:</dt>
7153-
<dd class="tag-description"><ul class="dummy"><li><p>Fetches the most recent mod note on the given user in the given subreddit.</p></li></ul></dd>
7153+
<dd class="tag-description"><ul class="dummy"><li><p>Fetches the most recent mod note on the given user in the given subreddit.
7154+
Does not return AI-generated user summary &quot;notes.&quot;</p></li></ul></dd>
71547155

71557156

71567157

71577158
<dt class="tag-source">Source:</dt>
71587159
<dd class="tag-source"><ul class="dummy"><li>
7159-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line113">line 113</a>
7160+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line116">line 116</a>
71607161
</li></ul></dd>
71617162

71627163

@@ -7816,7 +7817,7 @@ <h4 class="name" id="getSubmissionFullname"><span class="type-signature"></span>
78167817

78177818
<dt class="tag-source">Source:</dt>
78187819
<dd class="tag-source"><ul class="dummy"><li>
7819-
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line228">line 228</a>
7820+
<a href="modules_modnotes.jsx.html">modules/modnotes.jsx</a>, <a href="modules_modnotes.jsx.html#line234">line 234</a>
78207821
</li></ul></dd>
78217822

78227823

@@ -19195,7 +19196,7 @@ <h4 class="name" id="getModlogCallback"><span class="type-signature"></span>getM
1919519196
<br class="clear">
1919619197

1919719198
<footer>
19198-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
19199+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1919919200
</footer>
1920019201

1920119202
<script>prettyPrint();</script>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ <h3>Tagging a New Release</h3>
230230
<br class="clear">
231231

232232
<footer>
233-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
233+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
234234
</footer>
235235

236236
<script>prettyPrint();</script>

modules_historybutton.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ <h1 class="page-title">modules/historybutton.js</h1>
914914
<br class="clear">
915915

916916
<footer>
917-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
917+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
918918
</footer>
919919

920920
<script>prettyPrint();</script>

modules_modbar.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ <h1 class="page-title">modules/modbar.js</h1>
708708
<br class="clear">
709709

710710
<footer>
711-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
711+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
712712
</footer>
713713

714714
<script>prettyPrint();</script>

modules_modbutton.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ <h1 class="page-title">modules/modbutton.js</h1>
851851
<br class="clear">
852852

853853
<footer>
854-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
854+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
855855
</footer>
856856

857857
<script>prettyPrint();</script>

modules_modnotes.jsx.html

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ <h1 class="page-title">modules/modnotes.jsx</h1>
6262
import {drawPosition, textFeedback, TextFeedbackKind} from '../tbui.js';
6363
import createLogger from '../util/logging.ts';
6464
import {setSettingAsync} from '../util/settings.ts';
65-
import {createBodyShadowPortal, reactRenderer} from '../util/ui_interop.tsx';
65+
import {classes, createBodyShadowPortal, reactRenderer} from '../util/ui_interop.tsx';
6666

6767
import {
6868
ActionButton,
@@ -111,6 +111,7 @@ <h1 class="page-title">modules/modnotes.jsx</h1>
111111
SPAM_WATCH: 'fuchsia',
112112
SOLID_CONTRIBUTOR: 'green',
113113
HELPFUL_USER: 'lightseagreen',
114+
USER_SUMMARY: 'darkgray',
114115
};
115116

116117
/**
@@ -126,6 +127,7 @@ <h1 class="page-title">modules/modnotes.jsx</h1>
126127
SPAM_WATCH: 'Spam Watch',
127128
SOLID_CONTRIBUTOR: 'Solid Contributor',
128129
HELPFUL_USER: 'Helpful User',
130+
USER_SUMMARY: 'AI-generated user summary',
129131
};
130132

131133
/**
@@ -155,6 +157,7 @@ <h1 class="page-title">modules/modnotes.jsx</h1>
155157

156158
/**
157159
* Fetches the most recent mod note on the given user in the given subreddit.
160+
* Does not return AI-generated user summary "notes."
158161
* @param {string} subreddit The name of the subreddit
159162
* @param {string} user The name of the user
160163
* @returns {Promise} Resolves to a note object or `null`, or rejects an error
@@ -207,7 +210,10 @@ <h1 class="page-title">modules/modnotes.jsx</h1>
207210
const users = queuedRequests.map(entry => entry.user);
208211

209212
// Perform the request to fetch the notes
210-
const notes = await TBApi.getRecentModNotes(subreddits, users);
213+
let notes = await TBApi.getRecentModNotes(subreddits, users);
214+
215+
// Remove AI summary notes from the result. reddit why
216+
notes = notes.map(note => note?.user_note_data?.label === 'USER_SUMMARY' ? null : note);
211217

212218
// We now have to pass each note to the appropriate caller's promise
213219
// resolver; since the arrays are in the same order, we can loop
@@ -351,7 +357,7 @@ <h1 class="page-title">modules/modnotes.jsx</h1>
351357
}
352358
return (
353359
&lt;BracketButton
354-
className='tb-bracket-button tb-modnote-badge'
360+
className={classes('tb-bracket-button', 'tb-modnote-badge', css.noteButton)}
355361
tabIndex='0'
356362
title={`Mod notes for /u/${user} in /r/${subreddit}`}
357363
onClick={onClick}
@@ -537,7 +543,11 @@ <h1 class="page-title">modules/modnotes.jsx</h1>
537543
*/
538544
function NoteTableRow ({note, onDelete}) {
539545
const createdAt = new Date(note.created_at * 1000);
540-
const mod = note.operator; // TODO: can [deleted] show up here?
546+
let mod = note.operator; // TODO: can [deleted] show up here?
547+
if (note.user_note_data?.label === 'USER_SUMMARY') {
548+
// Special handling for AI-generated user summaries
549+
mod = 'reddit';
550+
}
541551

542552
const contextURL = useFetched(getContextURL(note));
543553

@@ -734,7 +744,7 @@ <h1 class="page-title">modules/modnotes.jsx</h1>
734744
<br class="clear">
735745

736746
<footer>
737-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
747+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
738748
</footer>
739749

740750
<script>prettyPrint();</script>

modules_nukecomments.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ <h1 class="page-title">modules/nukecomments.js</h1>
380380
<br class="clear">
381381

382382
<footer>
383-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Jul 29 2025 22:20:44 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
383+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Oct 23 2025 20:37:40 GMT+0000 (Coordinated Universal Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
384384
</footer>
385385

386386
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)