6 Commits

Author SHA1 Message Date
Taber
d4bc6f8562 Fix delete functionality for vendor notes dynamic rows
- Changed row ID prefix from 'row_' to '_' for valid CSS selectors
- Added _id property assignment in row data for proper rendering
- Resolves querySelectorAll SyntaxError when deleting rows

The issue was that numeric row IDs (0, 1, 2) created invalid CSS
selectors like 'tr#0 button.action-delete'. CSS IDs cannot start
with numbers. By prefixing with underscore, we get valid selectors
like 'tr#_0 button.action-delete'.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 12:58:58 -05:00
shopkeeperdev
677b43db02 Rename package to shopkeeper/module-vendor-notes and fix delete button issue
- Update package name from shopkeeper/vendornotes to shopkeeper/module-vendor-notes to follow naming conventions
- Fix invalid CSS selector issue by prefixing numeric row IDs with 'row_' in getArrayRows()
- Resolves JavaScript error: "Failed to execute 'querySelectorAll' on 'Document': 'tr#0 button.action-delete' is not a valid selector"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-06 14:23:40 -05:00
shopkeeperdev
7062fd8db2 Support for HTML content 2025-10-08 09:34:26 -04:00
shopkeeperdev
9d6112b703 Fix HTML rendering for vendor notes links
Add proper HTML filtering to render mailto links and formatting in vendor notes.

- Create HtmlArraySerialized backend model to prevent HTML escaping
- Add filterOutputHtml() method to safely render HTML content
- Update template to use HTML filtering
- Decode HTML entities before display
2025-10-07 19:03:16 -04:00
shopkeeperdev
fcc8697c75 Added ability to add/edit note fields in Magento Admin. 2025-10-07 18:57:28 -04:00
shopkeeperdev
20786161b7 Initial commit 2025-10-07 18:31:07 -04:00