-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MF2025 - Config List View - First version (#1934)
* Frontend shows config table = WIP * First refactoring done for the ConfigItems * WIP - ConfigItem View receiving Config * 1st working version of the table with acutal config data * Orphaned Serials Dialog is working correctly. * Reverted accidental conflict of Name and DeviceName for config * Fixed wrong clone * Fixed facetted filtering * Hide Status and Tags * Filters are working correctly for the table * Communication back and forth works for ConfigItem * Improve the JSON serialization including unit tests * Config Wizard opens correctly for OutputConfigItems * Remove unused property "name" * Serialize InputAction correctly * Use dynamic way of serializeing ConfigItem and ModifierBase * Clone InputConfigItem correctly * fix the property name for ConfigEdit message * Correctly open InputConfigWizard * Fixed some visuals for the table * Use short device type name * Improved table rendering and active state can be toggled. * Add output/input config items is possible * Copy ConfigItem is possible * All context menu actions are working. * Fix config ref title, code cleanup * Update workflow for PR build * Add xml attrib deserialization info for backward compatibility * Add status icons and inline name editing for config items * Fix the table width * Improved responsivness * Working playwright tests for the config list * Improving edit styles * Fixing linter errors * Status icons are working * Fixed playwright test * Fix failing build * Fix xml unit tests to preserve temporary backward compatiblity * Fixed Equals method for ConfigItem * Fix the update after input config item is edited * Display test mode status for config items
- Loading branch information
1 parent
61eac0c
commit c91fd53
Showing
124 changed files
with
6,285 additions
and
6,880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.Collections.Generic; | ||
using System.Xml.Serialization; | ||
|
||
namespace MobiFlight.Base | ||
{ | ||
[XmlRoot("config")] | ||
public class ConfigFileXmlItem | ||
{ | ||
|
||
[XmlAttribute("guid")] | ||
public string guid { get; set; } | ||
|
||
[XmlElement] | ||
public bool active { get; set; } | ||
|
||
[XmlElement] | ||
public string description { get; set; } | ||
} | ||
|
||
public class OutputConfigFileXmlElement : ConfigFileXmlItem | ||
{ | ||
[XmlElement] | ||
public OutputConfigItem settings { get; set; } | ||
} | ||
|
||
public class InputConfigFileXmlElement : ConfigFileXmlItem | ||
{ | ||
[XmlElement] | ||
public InputConfigItem settings { get; set; } | ||
} | ||
|
||
|
||
[XmlRoot("MobiflightConnector")] | ||
public class ConfigFileWrapperXML | ||
{ | ||
[XmlArray("outputs")] | ||
[XmlArrayItem("config")] | ||
public List<OutputConfigFileXmlElement> outputConfigs; | ||
|
||
[XmlArray("inputs")] | ||
[XmlArrayItem("config")] | ||
public List<InputConfigFileXmlElement> inputConfigs; | ||
} | ||
} |
Oops, something went wrong.