Skip to content

Configuration Fix#190

Merged
BryanSoltis merged 4 commits intomainfrom
dev
Jan 13, 2026
Merged

Configuration Fix#190
BryanSoltis merged 4 commits intomainfrom
dev

Conversation

@BryanSoltis
Copy link
Copy Markdown
Contributor

Fix ID collision bug when adding components after deletion and modal footer visibility

  • Fixed ID assignment in ResourceComponentService, CustomComponentService, ResourceDelimiterService, and ResourceTypeService to use Max(ID)+1 instead of Count+1
  • This prevents ID collisions when adding new items after deletions
  • Fixed AddModal footer being cut off by moving it inside modern-modal-content container
  • Updated modal CSS to properly handle scrolling body with fixed footer using flexbox layout

Fixes #188

Bryan Soltis and others added 2 commits January 7, 2026 14:47
…footer visibility

- Fixed ID assignment in ResourceComponentService, CustomComponentService, ResourceDelimiterService, and ResourceTypeService to use Max(ID)+1 instead of Count+1
- This prevents ID collisions when adding new items after deletions
- Fixed AddModal footer being cut off by moving it inside modern-modal-content container
- Updated modal CSS to properly handle scrolling body with fixed footer using flexbox layout
@BryanSoltis BryanSoltis requested a review from jamasten as a code owner January 13, 2026 14:42
Copilot AI review requested due to automatic review settings January 13, 2026 14:42
@BryanSoltis BryanSoltis requested a review from jocontr as a code owner January 13, 2026 14:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes two issues: an ID collision bug when adding components after deletions, and a modal footer visibility problem in the AddModal component.

Changes:

  • Updated ID assignment logic in four service classes to use Max(ID) + 1 instead of Count + 1, preventing ID collisions after item deletions
  • Repositioned the modal footer inside the modern-modal-content container in AddModal.razor
  • Adjusted CSS flexbox properties to ensure proper scrolling behavior with a fixed footer

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/Services/ResourceTypeService.cs Changed ID assignment to use max existing ID + 1 to prevent collisions
src/Services/ResourceDelimiterService.cs Changed ID assignment to use max existing ID + 1 to prevent collisions
src/Services/ResourceComponentService.cs Changed ID assignment to use max existing ID + 1 to prevent collisions
src/Services/CustomComponentService.cs Changed ID assignment and removed duplicate ID assignment logic that was overwriting the correct value
src/Components/Modals/AddModal.razor Moved footer inside modern-modal-content container for proper layout
src/wwwroot/css/modern-components.css Updated flexbox properties to ensure scrollable body with fixed footer

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Bryan Soltis and others added 2 commits January 13, 2026 09:41
…e warnings and improve ResourceDelimiterService

- Added unit tests for ID collision prevention in ResourceComponentService, CustomComponentService, ResourceDelimiterService, and ResourceTypeService
- Upgraded Newtonsoft.Json from 9.0.1 to 13.0.3 to resolve security vulnerability (NU1903)
- Upgraded Microsoft.NET.Test.Sdk from 16.11.0 to 17.12.0
- Fixed ResourceDelimiterService null handling bug that caused ArgumentNullException when items is null
- Fixed ResourceDelimiterService to disable other delimiters when adding a new enabled delimiter (not just when updating)
- Fixed nullable reference warnings across test suite using object casting pattern: ((object?)variable).Should()...
- Build now completes with 0 warnings, all 417 tests passing (403 succeeded, 14 skipped)
Add test coverage for ID collision fix, upgrade packages, fix nullabl…
@BryanSoltis BryanSoltis merged commit a250de9 into main Jan 13, 2026
3 checks passed
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.

After deleting a custom component, adding new ones replaces existing components

2 participants