init
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/SystemSettings/QASettings/Properties/AssemblyInfo.cs
|
||||
generated_at: "2026-04-17T16:15:04.731518+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "16671d9a7022a987"
|
||||
---
|
||||
|
||||
# Properties
|
||||
|
||||
### Purpose
|
||||
This module contains assembly metadata for the QASettings component. It defines version information, copyright, and COM visibility settings for the QASettings assembly using standard .NET assembly attributes. This is a build-time configuration module with no runtime logic.
|
||||
|
||||
### Public Interface
|
||||
No public types are defined in this module. It contains only assembly-level attributes:
|
||||
- `AssemblyTitle("QASettings")` - Sets the assembly title
|
||||
- `AssemblyDescription("")` - Empty description
|
||||
- `AssemblyProduct("QASettings")` - Product name
|
||||
- `AssemblyCopyright("Copyright © 2016")` - Copyright notice
|
||||
- `ComVisible(false)` - COM components not visible by default
|
||||
- `Guid("7446722e-490d-4f6a-beaf-907947e576d5")` - Type library GUID for COM exposure
|
||||
- `AssemblyVersion("1.0.0.0")` - Assembly version
|
||||
- `AssemblyFileVersion("1.0.0.0")` - File version
|
||||
|
||||
### Invariants
|
||||
- AssemblyVersion and AssemblyFileVersion are both fixed at "1.0.0.0"
|
||||
- ComVisible is always false, meaning types are not visible to COM components by default
|
||||
- The GUID "7446722e-490d-4f6a-beaf-907947e576d5" uniquely identifies this assembly's type library
|
||||
|
||||
### Dependencies
|
||||
**Depends on:**
|
||||
- `System.Reflection` - For assembly attribute support
|
||||
- `System.Runtime.CompilerServices` - For compiler services
|
||||
- `System.Runtime.InteropServices` - For COM interop attributes
|
||||
|
||||
**Depended on by:** Unclear from source alone - this is the assembly info for the QASettings module.
|
||||
|
||||
### Gotchas
|
||||
None identified from source alone.
|
||||
|
||||
---
|
||||
35
docs/ai/DataPRO/Modules/SystemSettings/QASettings/View.md
Normal file
35
docs/ai/DataPRO/Modules/SystemSettings/QASettings/View.md
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/SystemSettings/QASettings/View/QASettingsView.xaml.cs
|
||||
generated_at: "2026-04-17T16:15:04.734040+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "0199f1292468a364"
|
||||
---
|
||||
|
||||
# View
|
||||
|
||||
### Purpose
|
||||
This module provides the code-behind for the QASettingsView XAML component. It implements the `IQASettingsView` interface and serves as the visual presentation layer for QA (Quality Assurance) settings configuration within the SystemSettings module hierarchy.
|
||||
|
||||
### Public Interface
|
||||
- **`QASettingsView`** (class, partial) - WPF view component for QA settings
|
||||
- Signature: `public partial class QASettingsView : IQASettingsView`
|
||||
- Constructor: `public QASettingsView()` - Initializes the component via `InitializeComponent()`
|
||||
- Implements `IQASettingsView` interface (defined externally in `DTS.Common.Interface`)
|
||||
|
||||
### Invariants
|
||||
- The view must be initialized via `InitializeComponent()` before use
|
||||
- The class is partial, indicating a corresponding XAML file (`QASettingsView.xaml`) exists
|
||||
|
||||
### Dependencies
|
||||
**Depends on:**
|
||||
- `DTS.Common.Interface` - Provides `IQASettingsView` interface
|
||||
|
||||
**Depended on by:** Unclear from source alone - likely consumed by a ViewModel or navigation system.
|
||||
|
||||
### Gotchas
|
||||
- The view has no additional logic beyond initialization; all behavior is presumably handled via XAML bindings or an associated ViewModel not shown in this source.
|
||||
- The relationship between this view and its ViewModel is not defined in this source file.
|
||||
|
||||
---
|
||||
@@ -0,0 +1,81 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/Modules/SystemSettings/QASettings/ViewModel/QASettingsViewModel.cs
|
||||
generated_at: "2026-04-17T16:15:47.040916+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "5648af1b9b10131b"
|
||||
---
|
||||
|
||||
# ViewModel
|
||||
|
||||
### 1. Purpose
|
||||
This module provides the ViewModel component for the Power and Battery settings UI within the SystemSettings feature area. It follows the MVVM pattern using Prism and MEF, serving as a placeholder view model that integrates with the application's navigation, event aggregation, and dependency injection infrastructure. The module currently provides minimal domain-specific functionality but establishes the structural foundation for power and battery configuration management.
|
||||
|
||||
### 2. Public Interface
|
||||
|
||||
**Class: `PowerAndBatteryViewModel`**
|
||||
- Inherits: `BasePropertyChanged`
|
||||
- Implements: `IPowerAndBatteryViewModel`
|
||||
- MEF Export: `[Export(typeof(IPowerAndBatteryView))]` with `[PartCreationPolicy(CreationPolicy.Shared)]` (singleton scope)
|
||||
|
||||
**Constructor:**
|
||||
```csharp
|
||||
public PowerAndBatteryViewModel(IPowerAndBatteryView view, IRegionManager regionManager, IEventAggregator eventAggregator, IUnityContainer unityContainer)
|
||||
```
|
||||
Initializes the view model, sets the View's DataContext to itself, creates interaction requests, and subscribes to `RaiseNotification` and `BusyIndicatorChangeNotification` events.
|
||||
|
||||
**Lifecycle Methods:**
|
||||
- `void Cleanup()` - Empty implementation
|
||||
- `Task CleanupAsync()` - Returns `Task.CompletedTask`
|
||||
- `void Initialize()` - Empty implementation
|
||||
- `void Initialize(object parameter)` - Empty implementation
|
||||
- `void Initialize(object parameter, object model)` - Empty implementation
|
||||
- `Task InitializeAsync()` - Returns `Task.CompletedTask`
|
||||
- `Task InitializeAsync(object parameter)` - Returns `Task.CompletedTask`
|
||||
- `void Activated()` - Empty implementation
|
||||
|
||||
**Properties:**
|
||||
- `IPowerAndBatteryView View { get; }` - The associated view instance
|
||||
- `InteractionRequest<Notification> NotificationRequest { get; }` - For raising notification dialogs
|
||||
- `InteractionRequest<Confirmation> ConfirmationRequest { get; }` - For raising confirmation dialogs
|
||||
- `bool IsDirty { get; private set; }` - Tracks unsaved changes state
|
||||
- `bool IsBusy { get; set; }` - Busy indicator state, bound to UI
|
||||
- `bool IsMenuIncluded { get; set; }` - Menu inclusion flag
|
||||
- `bool IsNavigationIncluded { get; set; }` - Navigation inclusion flag
|
||||
- `string HeaderInfo { get; }` - Returns hardcoded "MainRegion"
|
||||
|
||||
**Private Event Handlers:**
|
||||
- `void OnBusyIndicatorNotification(bool eventArg)` - Sets `IsBusy` property from event
|
||||
- `void OnRaiseNotification(NotificationContentEventArgs eventArgsWithTitle)` - Raises notification dialog via `NotificationRequest.Raise()`
|
||||
|
||||
### 3. Invariants
|
||||
- The `View` property is set at construction and never reassigned.
|
||||
- `View.DataContext` is always set to `this` (the ViewModel instance) during construction.
|
||||
- `NotificationRequest` and `ConfirmationRequest` are initialized at construction and never null.
|
||||
- Event subscriptions use `ThreadOption.PublisherThread` for `BusyIndicatorChangeNotification` with `keepSubscriberReferenceAlive: true`.
|
||||
- `HeaderInfo` always returns the literal string "MainRegion".
|
||||
|
||||
### 4. Dependencies
|
||||
|
||||
**Imports (this module depends on):**
|
||||
- `DTS.Common.Base` - `BasePropertyChanged` base class
|
||||
- `DTS.Common.Events` - `RaiseNotification`, `BusyIndicatorChangeNotification`, `NotificationContentEventArgs`
|
||||
- `DTS.Common.Interactivity` - `InteractionRequest<T>`, `Notification`, `Confirmation`
|
||||
- `DTS.Common.Interface` - `IPowerAndBatteryView`, `IPowerAndBatteryViewModel`
|
||||
- `Prism.Events` - `IEventAggregator`, `ThreadOption`
|
||||
- `Prism.Regions` - `IRegionManager`
|
||||
- `Unity` - `IUnityContainer`
|
||||
- `System.ComponentModel.Composition` - MEF attributes
|
||||
|
||||
**Dependents (inferred):**
|
||||
- The View component (`PowerAndBatteryView`) which is injected via constructor
|
||||
- Shell/Bootstrapper that discovers and loads this MEF export
|
||||
|
||||
### 5. Gotchas
|
||||
- **Stale XML documentation**: The constructor's XML comment references "TechnologyDomainEditViewModel" which appears to be a copy-paste error from another module.
|
||||
- **Empty lifecycle methods**: All `Initialize` and `Cleanup` methods are empty shells. The module does not perform any initialization or cleanup logic.
|
||||
- **Unused `ConfirmationRequest`**: While instantiated, `ConfirmationRequest` is never raised anywhere in this class.
|
||||
- **Hardcoded `HeaderInfo`**: Returns "MainRegion" which may be misleading as it suggests region identification but is a static string.
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user