Skip to content

gui3: reload main guide tips without restarting - #7786

Merged
Vest merged 3 commits into
PCGen:masterfrom
Vest:feat/info-guide-tip-reload
Nov 5, 2026
Merged

Vest merged 3 commits into
PCGen:masterfrom
Vest:feat/info-guide-tip-reload

Conversation

@Vest

@Vest Vest commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #7785.

  • Reuse the file-backed TipRenderer in the main info guide so native WebView Reload rereads the active tips file.
  • Preserve each view's displayed tip position, clamp it when tips are removed, and allow recovery from an empty file.
  • Release private tip documents on frame disposal and ignore late updates.
  • Document the Reload workflow and add real FXML/WebView regression coverage.

Validation

  • Compilation passed on the latest upstream master baseline.
  • 22 targeted tests passed: TipOfTheDayTest (14), InfoGuidePanelTest (4), InfoGuideControllerTest (4); no failures or skips.
  • Full suite and native macOS Swing/JavaFX disposal lifecycle have not been validated.

Performance optimizations are intentionally excluded and will be handled separately.

Share the file-backed tip renderer with the main guide, retain each view's displayed slot on Reload, and release temporary documents on frame disposal.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Vest Vest self-assigned this Nov 3, 2026
Vest and others added 2 commits November 4, 2026 09:16
Initialize the guide as a final constructor dependency and close it unconditionally. Initialize independent references at declaration and mark JavaFX window fields transient.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Vest
Vest merged commit d96d4da into PCGen:master Nov 5, 2026
3 checks passed
@Vest
Vest deleted the feat/info-guide-tip-reload branch November 5, 2026 14:57
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🚧 PCGen Code Coverage

Overall Project 28.04% -0.01% ❌
Files changed 57.33% ❌

File Coverage
TipOfTheDayController.java 95.51% 🍏
TipRenderer.java 89.51% 🍏
InfoGuideController.java 89.46% -1.42% 🍏
PCGenFrame.java 0.96% -1.22% ❌
InfoGuidePane.java 0% -12.41% ❌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant