Skip to content

Commit 54c236f

Browse files
greg-ferArekBalysNordic
authored andcommitted
tech writer review
1 parent 0bf354d commit 54c236f

10 files changed

+28
-53
lines changed

Changelog.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.0.0 2025-10-30
1+
## 1.0.0 - 2025-11-04
22

33
### Added
44

@@ -21,12 +21,12 @@
2121

2222
- Parent dialog now shows a greyed-out background with reduced opacity when
2323
child dialogs are open.
24+
- Handling composite types, ensuring their length field is set to a non-zero
25+
value.
2426

2527
### Fixed
2628

2729
- Issue where saving to an XML file would result in missing fields.
28-
- Issue where `false` and `0` values would not be correctly saved in the XML
29-
file.
3030
- Issue with the saving mechanism of the cluster extension to ensure that
3131
`deviceType` is excluded if it does not have all required non-default
3232
values.
@@ -40,11 +40,6 @@
4040
- Issue with incorrect storage of the `name` field for each item in the XML
4141
file.
4242

43-
### Removed
44-
45-
- The "array" type from the type list, which was replaced by the new button
46-
for marking a field as an array.
47-
4843
## 0.1.0 - 2025-06-24
4944

5045
- Initial public release.

doc/docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The app supports the following features:
1818
- Creating extensions to the existing clusters defined in the Matter data model.
1919
- Adding new enumerations and structures.
2020
- Creating a new device type that is not listed in the Matter Device Type Library Specification.
21-
- Opening and editing XML files that contains multiple clusters, device types, or cluster extensions.
21+
- Opening and editing XML files that contain multiple clusters, device types, or cluster extensions.
2222

2323
Based on your edits, the tool generates a new XML file with the cluster definition or an extension to the existing cluster.
2424
You can use the XML file as an argument in the Matter west commands to add the XML file to the Matter ZCL database.

doc/docs/overview.md

Lines changed: 24 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,33 @@ The buttons in this section let you load Matter cluster XML files and save them.
3737

3838
### XML Cluster Extension File
3939

40-
This tab includes the **Save extension to file** button, which checks the difference between the current filled-in values and the loaded cluster and saves the difference to an XML file.
40+
This section includes the **Save extension to file** button, which checks the difference between the current filled-in values and the loaded cluster and saves the difference to an XML file.
4141

4242
The {{app_name}} automatically compares your current cluster with the originally loaded cluster and saves only the differences as an extension file. This means the following:
4343

4444
- Only newly added elements are included in the extension.
4545
- Modified elements are included with their new values.
4646
- Unchanged elements are not included in the extension.
4747

48-
If there is no difference, the tool shows a notification indicating that there is no data to create a cluster extension, as in the following figure:
49-
50-
![Save extension no difference](./screenshots/matter_cluster_tool_save_extension_no_difference.png "Save extension no difference")
48+
If there is no difference, the tool shows a notification indicating that there is no data to create a cluster extension.
5149

5250
### Utility
5351

54-
This tab includes utilities mechanism that you can use to manipulate edited data.
55-
56-
Currently the following utilities are supported:
57-
58-
* **Clear All**
59-
60-
![Utiities](./screenshots/matter_cluster_tool_utilities.png "Utiities")
52+
This section includes buttons that you can use to manipulate edited data.
6153

62-
Use this button to wipe all data stored in the current window and reset the application to its initial state. This operation cannot be undone, so the following message appears:
54+
![Utility section](./screenshots/matter_cluster_tool_utilities.png "Utility section")
6355

64-
![Warning before clearing all data](./screenshots/matter_cluster_tool_warning_before_clearing_all_data.png "Warning before clearing all data")
56+
| Button | Description |
57+
|--------------------------|---------------------------------------------------------------------------------------------|
58+
| **Clear all** | Wipes all data stored in the current window and resets the application to its initial state.<br/><br/>**Note:** This operation cannot be undone. |
6559

6660
### Loaded file
6761

68-
This tab shows a name of the currently loaded file.
62+
This section shows the name of the currently loaded file.
6963

7064
### Elements in the file
7165

72-
If an XML file contains multiple device types, clusters, or cluster extensions, all correctly recognized elements will appear in this section.
66+
This section displays all correctly recognized elements in the currently loaded XML file (multiple device types, clusters, or cluster extensions).
7367

7468
Depending on the contents of the loaded file, this section can display up to three separate lists:
7569

@@ -78,16 +72,14 @@ Depending on the contents of the loaded file, this section can display up to thr
7872
| List name | Description |
7973
|------------------|--------------------------------------------------------------------|
8074
| **Clusters** | This list displays all clusters found in the file. |
81-
| **Device Types** | This list displays all device types found in the file. |
75+
| **Device Types** | This list displays all device types found in the file.<br/><br/>![Multiple device types](./screenshots/matter_cluster_tool_multiple_device_types.png "Multiple device types") |
8276
| **Extensions** | This list displays all cluster extensions found in the file. |
8377

84-
For example, if the file contains multiple device types, you can see a similar list to the following one:
78+
Click an item in one of the lists to open and edit it in the main window. You can edit only one cluster or cluster extension in the main window at a time.
8579

86-
![Multiple device types](./screenshots/matter_cluster_tool_multiple_device_types.png "Multiple device types")
87-
88-
Click an item in one of the lists to open and edit it in the main window.
89-
Please note: You can only edit one cluster or cluster extension in the main window at a time.
90-
If you want to make changes to a different item, simply select it from the list, your changes will be preserved and you can switch between items freely.
80+
!!! info "Tip"
81+
If you want to make changes to a different item, select it from the list.
82+
Changes you have made to the current item are preserved, and you can switch between items freely.
9183

9284
## Main window
9385

@@ -222,7 +214,7 @@ When you click this button, the edit box dialog appears.
222214
| **Code** | A text input field for the attribute code. | Yes |
223215
| **Define** | A text input field for the attribute definition. | Yes |
224216
| **Type** | A combined text input and drop-down field for selecting the data type. | Yes |
225-
| **Length** | A text input field for the attribute. length. | No |
217+
| **Length** | A text input field for the attribute length. | No |
226218
| **Min** | A text input field for the minimum value of the attribute. Only valid for the numeric data types. | No |
227219
| **Max** | A text input field for the maximum value of the attribute. Must be higher than **Min**. Only valid for the numeric data types. | No |
228220
| **Default** | A text input field for the default value of the attribute. Must be the same as **Type**. | No |
@@ -337,8 +329,8 @@ You can edit the following fields of the items entry.
337329
| **Field Id** | A text input field for the numeric identifier of the item. The identifier must be unique within the structure. | Yes |
338330
| **Name** | A text input field for the item name. The name must be unique within the structure. | Yes |
339331
| **Type** | A combined text input and drop-down field for selecting the data type of the item. The data type list is populated from the Matter Data Model template. | Yes |
340-
| **Length** | Length of the item in bytes. Applies only to the `array` data type. Must be higher than **Min Length**. | No |
341-
| **Min Length** | Minimum allowed length of the item in bytes. Applies only to the `array` data type. | No |
332+
| **Length** | Length of the item in bytes. Applies only to the `array`, and `composite` data type. Must be higher than 0 and **Min Length**. | No |
333+
| **Min Length** | Minimum allowed length of the item in bytes. Applies only to the `array`, and `composite` data type. Must be higher than 0. | No |
342334
| **Min** | The minimum allowed value of the item. Applies only to the numeric data types. The minimum value must be smaller than **Max** value and must fit in the numeric type bounds. | No |
343335
| **Max** | The maximum allowed value of the item. Applies only to the numeric data types. The maximum value must be greater than **Min** value and must fit in the numeric type bounds. | No |
344336
| **Is Nullable** | Toggle button to define whether the item can be null (toggle enabled) or not (toggle disabled). | No |
@@ -550,29 +542,17 @@ Given that the {{app_name}} does not interact with any devices, it does not use
550542

551543
## Notifications
552544

553-
The tool validates that all required fields are filled before saving. If required fields are not filled, you will see an error message when trying to save the element:
545+
The tool validates that all required fields are filled before saving.
554546

555-
![Edit window error](./screenshots/matter_cluster_tool_edit_box_error.png "Edit window error")
547+
This can lead to different types of notifications, for example asking you to fill in the required fields or setting the required values.
556548

557-
If there are no differences between the current cluster and the loaded cluster, the tool shows a message indicating no data to create an extension:
558-
559-
![Save extension no difference](./screenshots/matter_cluster_tool_save_extension_no_difference.png "Save extension no difference")
560-
561-
If the loaded XML file does have elements that have not defined all mandatory fields, the tool show a message indicating all of them to inform user that the missing values were replaced with the default values:
562-
563-
![Missing configuration](./screenshots/matter_cluster_tool_missing_configuration.png "Missing configuration")
549+
### Save options
564550

565551
If the loaded XML file contains multiple elements, while saving cluster to file, the tool shows a message to choose a ways of saving:
566552

567553
![Save options](./screenshots/matter_cluster_tool_save_options.png "Save options")
568554

569-
The first option **Save only the edited element** saves only the current device type and/or cluster.
570-
The second option **Save all data from original file with your edits** saves all loaded data with all modifications that you provided.
571-
572-
If you choose one of the array types, then you must set the **Length** field bigger than 0. If it is set to 0, the following message appears:
573-
574-
![Wrong array](./screenshots/matter_cluster_tool_wrong_array.png "Wrong array")
575-
576-
If you choose one of the numerical types, then the **Max** value must be bigger thatn **Min** value. If the condition is not met, the following message appears:
577-
578-
![Wrong max size](./screenshots/matter_cluster_tool_wrong_max_size.png "Wrong max size")
555+
| Option | Description |
556+
|--------|-------------|
557+
| **Save only the currently selected device type** | Saves only the current device type or cluster (or both). |
558+
| **Save all data from original file with your edits** | Saves all loaded data with all modifications that you provided. |
-3.77 KB
Loading
1.99 KB
Loading
7.54 KB
Loading
-1.24 KB
Loading
-617 Bytes
Loading
-12.4 KB
Loading
5.99 KB
Loading

0 commit comments

Comments
 (0)