Skip to content

fix render for subject change - #227

Open
SharonStrats wants to merge 3 commits into
stagingfrom
fix/render
Open

fix render for subject change#227
SharonStrats wants to merge 3 commits into
stagingfrom
fix/render

Conversation

@SharonStrats

Copy link
Copy Markdown
Contributor

Something happened where when a subject changed it was loading the content for the new subject and nothing was getting displayed.

@SharonStrats
SharonStrats requested a lite review from Copilot September 3, 2026 21:36
@SharonStrats SharonStrats self-assigned this Sep 3, 2026
@SharonStrats SharonStrats added the bug Something isn't working label Sep 3, 2026
@SharonStrats SharonStrats moved this to In review in SolidOS NLNet UI Sep 3, 2026
@SharonStrats SharonStrats linked an issue Sep 3, 2026 that may be closed by this pull request

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.

🟡 Changes recommended

The updated code introduces a strict-null-checks TypeScript type error (passing possibly-undefined subject to fetchContentAndMetadata) and should be corrected before merge.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR fixes the Source pane not displaying content after the subject changes by re-triggering content/metadata loading on context/subject updates and guarding against stale async responses overwriting newer state.

Changes:

  • Reload content/metadata when context or subject changes (moved from firstUpdated to updated).
  • Reset dataLoaded when inputs change so the editor card is re-rendered after the new load completes.
  • Add a warning log when loading fails.
File summaries
File Description
src/components/source-provider/SourceProvider.ts Reworks lifecycle to reload on subject/context changes and avoid stale async updates; adds warning logging on load failure.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

Comment thread src/components/source-provider/SourceProvider.ts Outdated
Comment thread src/components/source-provider/SourceProvider.ts
Co-authored-by: bourgeoa <2218470+bourgeoa@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

The pane is no longer appearing

3 participants