@checkstack/maintenance-frontend 0.4.1 → 0.4.3
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/CHANGELOG.md +27 -0
- package/package.json +1 -1
- package/src/components/MaintenanceEditor.tsx +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @checkstack/maintenance-frontend
|
|
2
2
|
|
|
3
|
+
## 0.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [db1f56f]
|
|
8
|
+
- Updated dependencies [538e45d]
|
|
9
|
+
- @checkstack/common@0.6.0
|
|
10
|
+
- @checkstack/ui@0.4.1
|
|
11
|
+
- @checkstack/dashboard-frontend@0.3.9
|
|
12
|
+
- @checkstack/auth-frontend@0.5.4
|
|
13
|
+
- @checkstack/catalog-common@1.2.4
|
|
14
|
+
- @checkstack/frontend-api@0.3.3
|
|
15
|
+
- @checkstack/maintenance-common@0.4.2
|
|
16
|
+
- @checkstack/signal-frontend@0.0.10
|
|
17
|
+
|
|
18
|
+
## 0.4.2
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- d1324e6: Updated MaintenanceEditor to handle DateTimePicker's `Date | undefined` type and removed redundant inner scroll wrapper
|
|
23
|
+
- Updated dependencies [d1324e6]
|
|
24
|
+
- Updated dependencies [1f1f6c2]
|
|
25
|
+
- Updated dependencies [2c0822d]
|
|
26
|
+
- @checkstack/ui@0.4.0
|
|
27
|
+
- @checkstack/dashboard-frontend@0.3.8
|
|
28
|
+
- @checkstack/auth-frontend@0.5.3
|
|
29
|
+
|
|
3
30
|
## 0.4.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -48,8 +48,8 @@ export const MaintenanceEditor: React.FC<Props> = ({
|
|
|
48
48
|
// Maintenance fields
|
|
49
49
|
const [title, setTitle] = useState("");
|
|
50
50
|
const [description, setDescription] = useState("");
|
|
51
|
-
const [startAt, setStartAt] = useState<Date>(new Date());
|
|
52
|
-
const [endAt, setEndAt] = useState<Date>(new Date());
|
|
51
|
+
const [startAt, setStartAt] = useState<Date | undefined>(new Date());
|
|
52
|
+
const [endAt, setEndAt] = useState<Date | undefined>(new Date());
|
|
53
53
|
const [selectedSystemIds, setSelectedSystemIds] = useState<Set<string>>(
|
|
54
54
|
new Set(),
|
|
55
55
|
);
|
|
@@ -140,6 +140,10 @@ export const MaintenanceEditor: React.FC<Props> = ({
|
|
|
140
140
|
toast.error("At least one system must be selected");
|
|
141
141
|
return;
|
|
142
142
|
}
|
|
143
|
+
if (!startAt || !endAt) {
|
|
144
|
+
toast.error("Start and end dates are required");
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
143
147
|
if (endAt <= startAt) {
|
|
144
148
|
toast.error("End date must be after start date");
|
|
145
149
|
return;
|
|
@@ -193,7 +197,7 @@ export const MaintenanceEditor: React.FC<Props> = ({
|
|
|
193
197
|
</DialogDescription>
|
|
194
198
|
</DialogHeader>
|
|
195
199
|
|
|
196
|
-
<div className="grid gap-6 py-4
|
|
200
|
+
<div className="grid gap-6 py-4">
|
|
197
201
|
{/* Basic Info Section */}
|
|
198
202
|
<div className="grid gap-4">
|
|
199
203
|
<div className="grid gap-2">
|