Skip to content

Commit d2d1445

Browse files
committed
Miscellaneous updates:
- Fix set operation on map not showing input field. - Fix json variable controller highlighting. - Fix json syntax highlighting for storage operations. - Fix controllers not disposing. - Fix focus nodes for json variable input fields. - Add insertAll option for list operations - Refactor insert list operation to use json input field.
1 parent 2984644 commit d2d1445

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

lib/src/api/models/action/action.dart

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ enum ListOperation {
166166
/// Insert [newValue] at [index] in the list.
167167
insert,
168168

169+
/// Insert [newValue] at [index] in the list.
170+
insertAll,
171+
169172
/// Remove value at [index] from the list.
170173
removeAt,
171174

@@ -177,14 +180,15 @@ enum ListOperation {
177180

178181
/// Returns a string representation of this enum.
179182
String get prettify => switch (this) {
180-
ListOperation.replace => 'Replace',
181-
ListOperation.add => 'Add',
182-
ListOperation.set => 'Set',
183-
ListOperation.insert => 'Insert',
184-
ListOperation.removeAt => 'Remove At',
185-
ListOperation.remove => 'Remove',
186-
ListOperation.update => 'Update'
187-
};
183+
ListOperation.replace => 'Replace',
184+
ListOperation.add => 'Add',
185+
ListOperation.set => 'Set',
186+
ListOperation.insert => 'Insert',
187+
ListOperation.insertAll => 'Insert All',
188+
ListOperation.removeAt => 'Remove At',
189+
ListOperation.remove => 'Remove',
190+
ListOperation.update => 'Update'
191+
};
188192
}
189193

190194
/// Defines the operation to be performed on a map type variable.
@@ -207,12 +211,12 @@ enum MapOperation {
207211

208212
/// Returns a string representation of this enum.
209213
String get prettify => switch (this) {
210-
MapOperation.replace => 'Replace',
211-
MapOperation.add => 'Add',
212-
MapOperation.remove => 'Remove',
213-
MapOperation.update => 'Update',
214-
MapOperation.set => 'Set'
215-
};
214+
MapOperation.replace => 'Replace',
215+
MapOperation.add => 'Add',
216+
MapOperation.remove => 'Remove',
217+
MapOperation.update => 'Update',
218+
MapOperation.set => 'Set'
219+
};
216220
}
217221

218222
/// Represents operations that can be performed on a number.
@@ -252,4 +256,4 @@ abstract interface class DataOperationInterface {
252256

253257
/// Operation to be performed on the int/double type variable.
254258
abstract final NumberOperation numberOperation;
255-
}
259+
}

lib/src/api/models/action/set_cloud_storage_action.g.dart

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/api/models/action/set_storage_action.g.dart

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/api/models/action/set_variable_action.g.dart

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)