Skip to content

Add options for local HTML view and a faster way to add storages to parts#1352

Open
kernchen-brc wants to merge 4 commits intoPart-DB:masterfrom
kernchen-brc:master
Open

Add options for local HTML view and a faster way to add storages to parts#1352
kernchen-brc wants to merge 4 commits intoPart-DB:masterfrom
kernchen-brc:master

Conversation

@kernchen-brc
Copy link
Copy Markdown
Contributor

Summary

This PR adds an "Add stock" button to the part stock information page.

Motivation

Previously, adding new stock entries required navigating away from the part stock
information view. This change improves usability by allowing users to create stock
entries directly from the relevant page.

Changes

  • Added an "Add stock" button to the part stock info page

Result

  • Fewer clicks to add stock

@kernchen-brc kernchen-brc changed the title Add "Add stock" button to part stock info page Add "Add stock" button for parts and disable warning option for user uploaded files Apr 24, 2026
@kernchen-brc
Copy link
Copy Markdown
Contributor Author

The new commit adds a checkbox that allows disabling the warning banner for user-uploaded HTML attachments. The banner remains enabled by default.

@kernchen-brc
Copy link
Copy Markdown
Contributor Author

Last commit in this pull request.

Add a new system setting "Allow HTML attachments to use browser storage"
(disabled by default) that controls whether sandboxed HTML attachments
can access the browser's localStorage/sessionStorage via allow-same-origin.

When disabled (default), attachments run in an opaque origin as before,
preventing any persistent storage. When enabled, data survives page
reloads but grants the attachment access to Part-DB's browser origin.

@kernchen-brc kernchen-brc changed the title Add "Add stock" button for parts and disable warning option for user uploaded files Add options for local HTML view and a faster way to add storages to parts Apr 24, 2026
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.

1 participant