Skip to content

Fix schedule pane not being displayed in the folder view.#167

Open
SharonStrats wants to merge 4 commits intorefactor/styles-separateCSSfrom
fix/schedpane-not-displayed
Open

Fix schedule pane not being displayed in the folder view.#167
SharonStrats wants to merge 4 commits intorefactor/styles-separateCSSfrom
fix/schedpane-not-displayed

Conversation

@SharonStrats
Copy link

Ticket SolidOS/solid-panes#180

folder-pane hardcodes index.ttl#this for rendering and looking through label on the panes, but the data for schedulePane is stored at details.ttl#event. In order to render old schedulePanes this needs to be done. However in the future we should modify schedulePanes to create an index.ttl#this defining it's type.

Copy link

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

Updates the folder pane’s “package view” detection so folders that don’t have index.ttl#this but do have legacy schedule-pane data in details.ttl#event can still render the intended pane view rather than falling back to a raw container listing.

Changes:

  • Detect details.ttl (via details.ttl#event) as a fallback “view subject” when index.ttl is not present.
  • Load and render the chosen view document/subject via the outliner.

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

Comment on lines +103 to 106
const sourceLabel = hasIndexDoc ? 'index' : 'details-fallback'
console.log(
'View of folder will be view of indexThing. Loading ' + indexThing
'[folder-pane] using ' + sourceLabel + ' view subject: ' + folderViewThing
)
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

This console.log runs on every render when index.ttl or details.ttl is present, which can be noisy in production and makes it harder to debug other issues. Consider removing it or gating it behind an explicit debug flag/logging facility so normal folder navigation doesn’t spam the console.

Copilot uses AI. Check for mistakes.
Copy link
Member

@timea-solid timea-solid left a comment

Choose a reason for hiding this comment

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

I approve

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