@checkstack/maintenance-frontend 0.4.1 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @checkstack/maintenance-frontend
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - d1324e6: Updated MaintenanceEditor to handle DateTimePicker's `Date | undefined` type and removed redundant inner scroll wrapper
8
+ - Updated dependencies [d1324e6]
9
+ - Updated dependencies [1f1f6c2]
10
+ - Updated dependencies [2c0822d]
11
+ - @checkstack/ui@0.4.0
12
+ - @checkstack/dashboard-frontend@0.3.8
13
+ - @checkstack/auth-frontend@0.5.3
14
+
3
15
  ## 0.4.1
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/maintenance-frontend",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "main": "src/index.tsx",
6
6
  "scripts": {
@@ -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 max-h-[70vh] overflow-y-auto">
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">