Skip to content

Sandbox#18

Open
sbagg wants to merge 16 commits intomainfrom
sandbox
Open

Sandbox#18
sbagg wants to merge 16 commits intomainfrom
sandbox

Conversation

@sbagg
Copy link
Copy Markdown
Contributor

@sbagg sbagg commented Apr 22, 2026

Completed functionality

@sbagg sbagg requested a review from Copilot April 22, 2026 22:24
@sbagg sbagg self-assigned this Apr 22, 2026
Copy link
Copy Markdown

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 PR completes the “Sandbox” cookie manager demo by adding cookie grouping support, implementing cookie/group deletion attempts, and updating the demo app + documentation to reflect the new configuration options.

Changes:

  • Reworked the cookie manager UI to render cookies grouped under collapsible sections, with per-cookie and per-group delete actions.
  • Added group-rules synchronization/validation logic plus cookie deletion attempts (including parent-domain attempts) in the element implementation.
  • Updated demo app wiring, dev server script, and README instructions/usage examples.

Reviewed changes

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

Show a summary per file
File Description
src/elements/cork-cookie-manager.tpl.js New grouped “grid” UI layout, group header + delete-group button, dev-only test cookie button
src/elements/cork-cookie-manager.js Group rules syncing/validation, cookie grouping, cookie & group deletion logic, dev-only test cookie generation
app/public/elements/demo-main.tpl.js Demo now imports exported rules and renders them; passes group rules into <cork-cookie-manager>
app/public/elements/demo-main.js Adds demo groupRules configuration used by the template
app/package.json Switches demo serve script to node server.js
README.md Updates local dev steps and adds usage/config documentation (group rules + parent domain)

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

Comment thread src/elements/cork-cookie-manager.js
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread src/elements/cork-cookie-manager.tpl.js
Comment thread src/elements/cork-cookie-manager.tpl.js Outdated
Comment thread src/elements/cork-cookie-manager.tpl.js Outdated
Comment thread src/elements/cork-cookie-manager.js
Comment thread src/elements/cork-cookie-manager.js
@sbagg sbagg requested review from spelkey-ucd April 22, 2026 23:05
Copy link
Copy Markdown

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

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


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

Comment thread README.md
Comment thread README.md
Comment thread src/elements/cork-cookie-manager.js
Comment thread src/elements/cork-cookie-manager.js
Comment thread src/elements/cork-cookie-manager.js
Comment thread README.md
Comment thread app/public/elements/demo-main.tpl.js
Comment thread app/public/elements/demo-main.tpl.js
Comment thread src/elements/cork-cookie-manager.js
Comment thread src/elements/cork-cookie-manager.js
Comment thread src/elements/cork-cookie-manager.tpl.js
Comment thread src/elements/cork-cookie-manager.tpl.js
Comment thread src/elements/cork-cookie-manager.tpl.js

<!-- Body Rows -->
${cookies.map(cookie => html`
<div class="grid-row" role="row">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i'm just looking at your code and have not tested it, but make sure your element looks good on a very small screen (especially with a long cookie name). This is where a "table-like" layout typically fails.

Comment thread README.md
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.

3 participants