Dark Mode Enhancements, Part Definition and Node Model Changes, and Misc. Part Traceability Refactoring#188
Merged
Conversation
…dialog to be a bootstrap modal, added the ability for part traceability snapshots to get loaded into the part traceability state service. No validation in the dialog, selected work instruction not loading properly, part node inputs do not seem to populate.
…ity Snapshot is Loaded.
…ruction. Backend logic does not persist part rework correctly.
# Conflicts: # MESS/MESS.Blazor/MESS.Blazor.csproj # MESS/MESS.Data/MESS.Data.csproj # MESS/MESS.Tests/MESS.Tests.csproj
…s (the production log create page)
…pport - Renamed CancelExport method to CancelExportAsync for clarity and updated its implementation to ensure proper dialog closure. - Added rich-text content class to StepNodeListItem for improved dark mode compatibility. - Enhanced CSS for dark mode to ensure better visibility of text elements, including .text-muted and .text-dark. - Implemented JavaScript functionality to adjust rich-text colors based on the active theme, preserving original colors for better readability.
- Introduced a new `InputType` property in `PartDefinition` to manage traceability types (Serial Number or Internal Tag). - Updated UI components to reflect changes in input handling, including renaming and restructuring of related fields. - Migrated input type data from `PartNodes` to `PartDefinitions` for a single source of truth. - Adjusted database schema and migration scripts to support the new structure. - Enhanced service layer to accommodate the new input type logic during part resolution and updates.
…ows' into part-rework # Conflicts: # MESS/MESS.Blazor/wwwroot/Scripts/darkmode.js
…ing Migration from an older ApplicationContextModelSnapshot. Allows creation of a Designer.cs file to allow migration to be detected.
…operational (currently no service level support for part replacements or "producing a part over again")
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important Change
Serial number uniqueness and input type for parts can now only be managed through the "Parts" page. All of this data is now associated with part definitions rather than part nodes in work instructions. This simplifies the work instruction editor but also breaks some support for importing part definitions with all associated data from work instruction spreadsheets.
Note: A database migration is required for all deployments tracking
main.Fixes
A number of visual improvements have been made to dark mode, primarily related to making certain text fields more readable.
Partial New Feature
This pull request features some of the core Blazor component support for part rework. With the new
IPartTraceabilityReworkServiceandPartReworkDialogBlazor component, it is possible to load installed parts from an existing part tree into the Production Log Page. This feature has been rolled out in the codebase, but the button to access the dialog is currently hidden due to no service level support for part replacements or marking a part as reworked (and not producing a new part).Name Changes in Part Traceability Services
A few of the services related to part traceability have been removed or renamed. Here is the current layout...
PartTraceabilityPersistenceService- Persists part traceability data to the databasePartTraceabilityReworkService- Methods for rebuilding part data from the database for the UI (essential to future part rework)PartTraceabilityFormService- Collects and manages all part traceability data loaded into the UI (before persistence to the database)ProductionLogPartService- A legacy part traceability service that has now been removed.