Skip to content

move header out of source pane - #217

Merged
SharonStrats merged 2 commits into
stagingfrom
file-explorer-header
Aug 5, 2026
Merged

move header out of source pane#217
SharonStrats merged 2 commits into
stagingfrom
file-explorer-header

Conversation

@SharonStrats

@SharonStrats SharonStrats commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Move the header into solid-panes so it can be used by all panes. Some additional code improvements where needed.

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 refactors the Source Pane to remove the in-pane header UI and associated header-focused metadata, while introducing new UI infrastructure (dialogs root) and beginning a “view mode” model for the editor.

Changes:

  • Removes the Source Pane header components and trims metadata types down to editor-focused fields (contentType, eTag).
  • Refactors SourceProvider/SourceEditorCard state to use a viewMode ('source' | 'rdfxml') instead of dirty/editing flags.
  • Adds dialog infrastructure (solid-ui-dialogs-root) and introduces a new delete dialog component.

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/types.ts Simplifies metadata typing and replaces dirty/editing with viewMode in SourcePaneState.
src/sourcePane.ts Renders the Source Pane without the header and adds a dialogs root element.
src/sourcePane.css Adds box-sizing: border-box to the pane container.
src/resourceLoader.ts Narrows response metadata extraction to editor needs (contentType, eTag).
src/primitives/context.ts Simplifies SourceContext to match reduced metadata/state surface.
src/components/ui/resource-actions-menu/DeleteResourceDialog.ts Adds a new Solid UI dialog component for delete confirmation.
src/components/source-provider/SourceProvider.ts Removes header rendering and updates context wiring to new state/metadata types.
src/components/source-editor-card/SourceEditorCard.ts Adds view-mode-dependent content handling and shifts dirty/editing tracking logic.
src/components/header/* Removes Source Pane header implementation and styles.

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

Comment thread src/components/source-editor-card/SourceEditorCard.ts
Comment thread src/components/source-editor-card/SourceEditorCard.ts Outdated
Comment thread src/sourcePane.ts
Comment thread src/components/ui/resource-actions-menu/DeleteResourceDialog.ts Outdated
@SharonStrats
SharonStrats force-pushed the file-explorer-header branch from bd42bf2 to af6ae3c Compare August 5, 2026 07:50
…istry@3.1.2-2 solid-ui@3.1.3-15) (latest: rdflib@2.4.0)
@SharonStrats SharonStrats added the enhancement New feature or request label Aug 5, 2026
@SharonStrats SharonStrats moved this to Ready in SolidOS NLNet UI Aug 5, 2026
@SharonStrats
SharonStrats merged commit 3bc7230 into staging Aug 5, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to Done in SolidOS NLNet UI Aug 5, 2026
@SharonStrats
SharonStrats deleted the file-explorer-header branch August 5, 2026 08:03
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: Done

Development

Successfully merging this pull request may close these issues.

2 participants