@ciridae/ui 0.12.0 → 0.13.0

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.
@@ -4,7 +4,7 @@ import { PaperclipIcon } from "lucide-react";
4
4
  import { formatFeedbackTimestampFull, getFeedbackTimestampDateTime } from "./feedback-date-format.js";
5
5
  import { FeedbackStatusBadge } from "./feedback-status-badge.js";
6
6
  import { FeedbackTypeBadge } from "./feedback-type-badge.js";
7
- import { feedbackStatusLabels, feedbackStatusValues, getFeedbackInitials, } from "./feedback-tracking-types.js";
7
+ import { feedbackStatusLabels, feedbackTriageStatusValues, getFeedbackInitials, } from "./feedback-tracking-types.js";
8
8
  import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar.js";
9
9
  import { Button } from "../ui/button.js";
10
10
  import { Card } from "../ui/card.js";
@@ -28,10 +28,10 @@ function FeedbackDetailContent({ feedback, onStatusChange, pendingStatus, }) {
28
28
  function FeedbackDetailStatusSection({ onStatusChange, pendingStatus, status, }) {
29
29
  const selectId = React.useId();
30
30
  return (_jsxs("div", { className: "grid gap-2", children: [_jsx("label", { className: "text-meta text-muted-foreground", htmlFor: selectId, children: "Status" }), _jsxs(Select, { disabled: pendingStatus !== undefined, onValueChange: (value) => {
31
- const next = feedbackStatusValues.find((candidate) => candidate === value);
31
+ const next = feedbackTriageStatusValues.find((candidate) => candidate === value);
32
32
  if (next && next !== status)
33
33
  onStatusChange(next);
34
- }, value: pendingStatus ?? status, children: [_jsx(SelectTrigger, { className: "w-full", id: selectId, children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: feedbackStatusValues.map((value) => (_jsx(SelectItem, { value: value, children: feedbackStatusLabels[value] }, value))) })] })] }));
34
+ }, value: pendingStatus ?? status, children: [_jsx(SelectTrigger, { className: "w-full", id: selectId, children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: feedbackTriageStatusValues.map((value) => (_jsx(SelectItem, { value: value, children: feedbackStatusLabels[value] }, value))) })] })] }));
35
35
  }
36
36
  function FeedbackDetailSummary({ feedback }) {
37
37
  const submitter = feedback.submittedBy;
@@ -1,5 +1,6 @@
1
1
  declare const feedbackStatusValues: readonly ["received", "in_progress", "discussion_required", "completed", "no_action", "withdrawn"];
2
2
  type FeedbackStatus = (typeof feedbackStatusValues)[number];
3
+ declare const feedbackTriageStatusValues: readonly ["received", "in_progress", "discussion_required", "completed", "no_action"];
3
4
  type StakeholderFeedbackType = "bug" | "feature" | "general";
4
5
  type FeedbackUrgency = "emergency" | "normal";
5
6
  type FeedbackAffectedScope = "everyone" | "just_me" | "my_team" | "unknown";
@@ -93,4 +94,4 @@ declare const feedbackTypeOptions: readonly [{
93
94
  readonly value: "general";
94
95
  }];
95
96
  declare function getFeedbackInitials(name: string, email: string | undefined): string;
96
- export { feedbackStatusLabels, feedbackStatusOptions, feedbackStatusValues, feedbackTypeLabels, feedbackTypeOptions, getFeedbackInitials, type FeedbackAffectedScope, type FeedbackAttachment, type FeedbackMetrics, type FeedbackStatus, type FeedbackSubmittedBy, type FeedbackTimelineEvent, type FeedbackUrgency, type StakeholderFeedbackItem, type StakeholderFeedbackType, type UserFeedbackItem, };
97
+ export { feedbackStatusLabels, feedbackStatusOptions, feedbackTriageStatusValues, feedbackStatusValues, feedbackTypeLabels, feedbackTypeOptions, getFeedbackInitials, type FeedbackAffectedScope, type FeedbackAttachment, type FeedbackMetrics, type FeedbackStatus, type FeedbackSubmittedBy, type FeedbackTimelineEvent, type FeedbackUrgency, type StakeholderFeedbackItem, type StakeholderFeedbackType, type UserFeedbackItem, };
@@ -7,6 +7,13 @@ const feedbackStatusValues = [
7
7
  "no_action",
8
8
  "withdrawn",
9
9
  ];
10
+ const feedbackTriageStatusValues = [
11
+ "received",
12
+ "in_progress",
13
+ "discussion_required",
14
+ "completed",
15
+ "no_action",
16
+ ];
10
17
  const feedbackStatusLabels = {
11
18
  completed: "Completed",
12
19
  discussion_required: "Discussion required",
@@ -44,4 +51,4 @@ function getFeedbackInitials(name, email) {
44
51
  .map((part) => part.charAt(0).toUpperCase())
45
52
  .join("");
46
53
  }
47
- export { feedbackStatusLabels, feedbackStatusOptions, feedbackStatusValues, feedbackTypeLabels, feedbackTypeOptions, getFeedbackInitials, };
54
+ export { feedbackStatusLabels, feedbackStatusOptions, feedbackTriageStatusValues, feedbackStatusValues, feedbackTypeLabels, feedbackTypeOptions, getFeedbackInitials, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciridae/ui",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "engines": {