Skip to content

Fix SQL parsing and HTML review findings#15

Merged
PaulStSmith merged 3 commits into
masterfrom
legacy-html-assets
May 18, 2026
Merged

Fix SQL parsing and HTML review findings#15
PaulStSmith merged 3 commits into
masterfrom
legacy-html-assets

Conversation

@PaulStSmith

@PaulStSmith PaulStSmith commented May 18, 2026

Copy link
Copy Markdown
Member

Summary

  • Ignore SQL Server double-at system variables during DBAccess parameter parsing
  • Add regression coverage for ROWCOUNT-style system variables beside regular bind parameters
  • Address Copilot findings in the legacy HTML asset scope already present on this branch

Verification

  • node --check on updated HTML JavaScript files
  • Focused DBAccess parameter parser tests passed for net48 and net9.0

● Bring over the legacy HTML CSS and JavaScript asset folder.
● Add companion HTML documentation and migration notes.
● Exclude double-at SQL Server system variables from parameter parsing

● Keep real bind parameters discoverable beside @@rowcount expressions

● Add regression coverage for SQL Server system variable parsing
Copilot AI review requested due to automatic review settings May 18, 2026 01:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates DBAccess SQL parameter parsing to avoid treating SQL Server @@... system variables as bind parameters, and adds a new set of static HTML/CSS/JavaScript UI framework assets with documentation.

Changes:

  • Refines DBAccess parameter parsing regexes to exclude SQL Server @@ system variables (e.g., @@ROWCOUNT) while still capturing normal @Param binds.
  • Adds a regression unit test covering @@ROWCOUNT mixed with regular bind parameters.
  • Introduces a repo-level HTML/ UI framework (CSS + JS components) and accompanying migration/docs updates.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 15 comments.

Show a summary per file
File Description
Toolkit.Modern/Data/Database/DBAccess.Parameters.cs Regex refactor to avoid parsing @@... system variables as bind parameters.
Toolkit.Modern.Tests/Unit/Data/Database/DBAccessParameterParsingSimpleTests.cs Adds regression coverage ensuring @@ROWCOUNT doesn’t produce @ROWCOUNT.
MIGRATION-legacy-toolkit.md Documents new repo-level HTML/ asset folder and doc location.
HTML/README.md Adds UI framework overview and usage notes.
HTML/JavaScript/README.md Documents the browser-side helper scripts and integration guidance.
HTML/JavaScript/ByteForge-utilities.js Adds general client-side utilities (validation, clipboard, security hardening).
HTML/JavaScript/ByteForge-tri-state-toggle.js Adds a tri-state toggle UI component.
HTML/JavaScript/ByteForge-multi-selector.js Adds a two-list selector helper component.
HTML/JavaScript/ByteForge-modal.js Adds a modal/notification system component.
HTML/JavaScript/ByteForge-calendar.js Adds a custom date picker widget component.
HTML/JavaScript/ByteForge-bulk-processor.js Adds a preview-then-apply bulk workflow controller.
HTML/CSS/ByteForge-ui.css Adds styling for the new UI framework components (modal, calendar, toggles, etc.).
Docs/HTML.md Adds a documentation copy for the UI framework.

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

Comment thread HTML/JavaScript/ByteForge-utilities.js Outdated
Comment thread HTML/JavaScript/ByteForge-utilities.js Outdated
Comment thread HTML/JavaScript/ByteForge-utilities.js Outdated
Comment thread HTML/JavaScript/ByteForge-utilities.js
Comment thread HTML/JavaScript/ByteForge-calendar.js
Comment thread HTML/README.md Outdated
Comment thread Docs/HTML.md Outdated
Comment thread HTML/JavaScript/ByteForge-utilities.js Outdated
Comment thread HTML/JavaScript/ByteForge-utilities.js Outdated
Comment thread HTML/JavaScript/ByteForge-bulk-processor.js Outdated
● Correct validation and calendar behavior flagged during review

● Harden modal, selector, and bulk summary rendering against unsafe HTML

● Fix case-sensitive documentation links
@PaulStSmith PaulStSmith changed the title Fix SQL system variable parsing Fix SQL parsing and HTML review findings May 18, 2026
@PaulStSmith PaulStSmith merged commit 63b6342 into master May 18, 2026
1 of 2 checks passed
@PaulStSmith PaulStSmith deleted the legacy-html-assets branch May 18, 2026 02:29
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