@meith/theme-raidframe 0.23.0 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/theme-raidframe",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "description": "A gaming theme for Meith — guild, raid and match boards — built on the default theme's slots.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -20,9 +20,9 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@meith/theme-default": "^0.23.0",
24
- "@meith/theme-kit": "^0.23.0",
25
- "@meith/ui": "^0.23.0"
23
+ "@meith/theme-default": "^0.23.2",
24
+ "@meith/theme-kit": "^0.23.2",
25
+ "@meith/ui": "^0.23.2"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^19.2.0"
package/src/copy.ts CHANGED
@@ -248,6 +248,8 @@ export function threadRowCopy(t: Translator): SlotCopy {
248
248
  'raidframe.threadRow.pinned',
249
249
  'raidframe.threadRow.locked',
250
250
  'raidframe.threadRow.moved',
251
+ 'raidframe.threadRow.deleted',
252
+ 'raidframe.threadRow.unapproved',
251
253
  'raidframe.threadRow.startedBy',
252
254
  'raidframe.threadRow.none',
253
255
  'raidframe.threadRow.byPrefix',
@@ -119,12 +119,14 @@
119
119
  "raidframe.subforumList.ariaLabel": "Subforums",
120
120
  "raidframe.subforumList.label": "subforums",
121
121
  "raidframe.threadRow.byPrefix": "by ",
122
+ "raidframe.threadRow.deleted": "Deleted",
122
123
  "raidframe.threadRow.locked": "locked",
123
124
  "raidframe.threadRow.moved": "moved",
124
125
  "raidframe.threadRow.newPosts": "(new posts)",
125
126
  "raidframe.threadRow.none": "—",
126
127
  "raidframe.threadRow.pinned": "pinned",
127
128
  "raidframe.threadRow.startedBy": "started by",
129
+ "raidframe.threadRow.unapproved": "Pending",
128
130
  "raidframe.threadView.locked": "locked",
129
131
  "raidframe.threadView.markRead": "mark read",
130
132
  "raidframe.threadView.pinned": "pinned",
@@ -8,8 +8,14 @@ const TAG = 'border px-1.5 py-px font-mono text-[0.625rem] font-bold uppercase t
8
8
  export function ThreadRow({ thread, select, copy }: ThreadRowSlotModel & { copy: SlotCopy }) {
9
9
  const c = (key: string) => fromSlotCopy(copy, `raidframe.threadRow.${key}`)
10
10
 
11
+ const hidden = thread.visibility === 'deleted' || thread.visibility === 'unapproved'
12
+ const tint = thread.visibility === 'deleted' ? 'bg-thread-deleted/10' : 'bg-thread-unapproved/10'
13
+
11
14
  return (
12
- <tr className="border-t border-border align-top hover:bg-secondary/50">
15
+ <tr
16
+ data-visibility={hidden ? thread.visibility : undefined}
17
+ className={`border-t border-border align-top hover:bg-secondary/50 ${hidden ? tint : ''}`}
18
+ >
13
19
  <td className="px-3 py-2.5">
14
20
  <div className="flex flex-wrap items-baseline gap-2">
15
21
  {select !== null && (
@@ -49,6 +55,16 @@ export function ThreadRow({ thread, select, copy }: ThreadRowSlotModel & { copy:
49
55
  {thread.isMoved && (
50
56
  <span className={`${TAG} border-thread-moved/60 text-thread-moved`}>{c('moved')}</span>
51
57
  )}
58
+ {thread.visibility === 'unapproved' && (
59
+ <span className={`${TAG} border-thread-unapproved/60 text-thread-unapproved`}>
60
+ {c('unapproved')}
61
+ </span>
62
+ )}
63
+ {thread.visibility === 'deleted' && (
64
+ <span className={`${TAG} border-thread-deleted/60 text-thread-deleted`}>
65
+ {c('deleted')}
66
+ </span>
67
+ )}
52
68
  </div>
53
69
 
54
70
  <p className={`${MICRO} mt-1 normal-case`}>