Commit f7eb1b7
feat: enhance deployment results with file paths, hierarchical grouping, and resource type indicators (#30)
* Initial plan
* feat: enhance deployment logging with file paths and building block indicators
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* test(deploy): add comprehensive tests for deployment logging enhancements
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* refactor: use logger.info consistently instead of console.log
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* refactor: move file paths to deployment results table
Per feedback, file names and paths now appear as a column in the results
table after successful deployment, rather than being listed before deployment.
Building block indicators (🧱) are preserved in the File column.
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* refactor: simplify redundant ternary operators
Cleaned up unnecessary ternary checks - Map.get() already returns undefined
for missing keys.
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* test: add batched deployment test for process application
Added comprehensive test that verifies batched deployment behavior when
.process-application file is present. The test verifies:
- Batch deployment note is shown
- All resources in the directory are deployed together (2 files)
- Deployment attempt is made with all resources as a batch
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* refactor: improve test code quality and robustness
- Increased timeout to 10s for slower CI environments
- Extracted executeDeployment helper to reduce code duplication
- Improved error handling for successful deployment scenario
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* refactor: group process application resources in table instead of note
Per feedback, removed the general "(batch deployment from process application)"
note and instead mark process application resources with 📦 emoji in the
results table, grouped alongside building blocks and standalone resources.
- Added isProcessApplication field to ResourceFile interface
- Detect .process-application files during resource collection
- Updated sorting to group: building blocks → process apps → regular
- Show 📦 emoji for process application resources in table
- Updated tests to reflect new behavior (no more batch note)
- Updated documentation with new output examples
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* test: add mixed resources sample
* test: add simple BPMN process definition
* fix: properly group nested resources in building blocks and process applications
Resources are now correctly grouped based on their folder hierarchy, not just
immediate parent. All resources in a folder with _bb-* or .process-application
(including nested subdirectories) are grouped together.
- Added findGroupRoot() to traverse up directory tree
- Added groupPath field to track which group a resource belongs to
- Updated sorting to group by groupPath within BB and PA categories
- Added test for mixed resources with nested structure
- Updated documentation to explain hierarchical grouping
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* refactor: improve cross-platform path handling and type safety
- Use relative() for cross-platform path comparison instead of startsWith()
- Improve type safety with discriminated union for findGroupRoot return type
- Ensures proper behavior on Windows with different drive letters
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
* docs: update README to include deployment from multiple paths
* refactor: enhance deployment log output by grouping resources and normalizing structure
* chore: update version to 2.0.0-alpha.4 in package.json
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: vobu <6573426+vobu@users.noreply.github.com>
Co-authored-by: Volker Buzek <dev@metalodge.com>1 parent 8ad122a commit f7eb1b7
File tree
13 files changed
+498
-40
lines changed- src/commands
- tests
- fixtures/sample-mixed-resources
- bla
- _bb-building-block
- pa
- unit
13 files changed
+498
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
230 | 297 | | |
231 | 298 | | |
232 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments