Commit d7f8117
committed
feat(Common/SCM): Add DTO for updating SCM provider properties
Introduces `SourceControlUpdateDTO` struct in the Common crate to facilitate updates to SCM provider properties. This DTO will be used across the Land architecture for:
1. Propagating UI state changes (commit message input box value) from `Wind/Sky` components to `Mountain` via Tauri events
2. Synchronizing badge counts between `Cocoon` extensions and the native backend via `Vine` gRPC
3. Enabling the SCM workflow (#8) by allowing updates to provider-specific properties
The DTO includes optional fields for `InputBoxValue` and `Count` with `ProviderHandle` identification, using `serde` attributes for PascalCase serialization. This aligns with our trait-based architecture where:
- `Common` defines the data contract
- `Mountain` implements state persistence in `AppState`
- `Cocoon` will use this for extension communication
- `Wind` services will consume/produce this DTO
Completes the SCM DTO foundation started in recent commits (Refs 00f54f8, 4c0cc70).1 parent 00f54f8 commit d7f8117
File tree
1 file changed
+22
-0
lines changed- Source/SourceControlManagement/DTO
1 file changed
+22
-0
lines changedLines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments