Skip to content

Add functionality to support 3 dots menu - #320

Open
SharonStrats wants to merge 1 commit into
stagingfrom
feat/3-dots-menu
Open

Add functionality to support 3 dots menu#320
SharonStrats wants to merge 1 commit into
stagingfrom
feat/3-dots-menu

Conversation

@SharonStrats

Copy link
Copy Markdown
Contributor

No description provided.

@SharonStrats
SharonStrats requested a lite review from Copilot August 9, 2026 03:16
@SharonStrats SharonStrats self-assigned this Aug 9, 2026
@SharonStrats SharonStrats added the enhancement New feature or request label Aug 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 introduces a dedicated resource logic module to support resource/container operations needed by the UI (e.g., a “3 dots menu”), including recursive deletion and optional type-index cleanup, and wires it into SolidLogic.

Changes:

  • Added ResourceLogic (new src/resource/resourceLogic.ts) to centralize container helpers and recursive deletion (optionally deleting type index registrations).
  • Enhanced container detection and added a container member-count helper in containerLogic.
  • Extended type-index logic with deleteTypeIndexRegistrationForResource and exposed resource on SolidLogic.

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/util/utilityLogic.ts Removes recursiveDelete from utility logic (moved responsibility to resource).
src/util/containerLogic.ts Improves isContainer detection and adds getContainerMemberCount.
src/types.ts Adds ResourceLogic/options and extends TypeIndexLogic/SolidLogic types.
src/typeIndex/typeIndexLogic.ts Adds deletion of type-index registrations that reference a resource.
src/resource/resourceLogic.ts New module implementing resource/container helpers and recursive deletion.
src/logic/solidLogic.ts Wires new resource logic into the main SolidLogic object.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/types.ts
Comment thread src/types.ts
Comment thread src/resource/resourceLogic.ts
Comment on lines +29 to +36
async function recursiveDelete(resourceNode: NamedNode, options: ResourceDeleteOptions = {}) {
try {
const resourceParent = resourceNode.dir()

if (isContainer(resourceNode)) {
const containerMembers = await containerLogic.getContainerMembers(resourceNode)
await Promise.all(containerMembers.map((url) => recursiveDelete(url, options)))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants