Skip to content

Dark Mode Enhancements, Part Definition and Node Model Changes, and Misc. Part Traceability Refactoring#188

Merged
EyeBrawler merged 21 commits into
mainfrom
part-rework
Apr 21, 2026
Merged

Dark Mode Enhancements, Part Definition and Node Model Changes, and Misc. Part Traceability Refactoring#188
EyeBrawler merged 21 commits into
mainfrom
part-rework

Conversation

@EyeBrawler
Copy link
Copy Markdown
Collaborator

@EyeBrawler EyeBrawler commented Apr 21, 2026

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 IPartTraceabilityReworkService and PartReworkDialog Blazor 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 database
  • PartTraceabilityReworkService - 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.

EyeBrawler and others added 21 commits March 28, 2026 15:24
…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.
…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
…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")
@EyeBrawler EyeBrawler merged commit da4b469 into main Apr 21, 2026
1 check passed
@EyeBrawler EyeBrawler deleted the part-rework branch April 21, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants