Skip to content

Staging#38

Merged
camrun91 merged 3 commits intomainfrom
staging
Dec 5, 2025
Merged

Staging#38
camrun91 merged 3 commits intomainfrom
staging

Conversation

@camrun91
Copy link
Owner

@camrun91 camrun91 commented Dec 5, 2025

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code quality improvement (refactoring, linting, etc.)
  • Release preparation

Checklist

  • I have run npm run lint:fix and fixed any remaining errors
  • I have tested my changes in Foundry VTT
  • I have updated the documentation (if applicable)
  • I have added/updated tests (if applicable)
  • I have updated CHANGELOG.md (if this is a user-facing change)
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code

Testing

Foundry VTT Version:
Game System:

Screenshots (if applicable)

Related Issues

Closes #

@cursor
Copy link

cursor bot commented Dec 5, 2025

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on January 8.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

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

This pull request addresses two key improvements: fixing realtime sync behavior to prevent unintended API calls for non-Archivist documents, and changing dialog default selections to require explicit user opt-in.

  • Refactored realtime sync hooks to use metadata-based type checking instead of parent journal name checking, improving robustness and preventing conflicts with other modules
  • Changed default selection state from true to false in World Setup and Sync dialogs to prevent accidental bulk operations
  • Removed redundant hook handlers (createItem, createJournalEntryPage) to focus sync on Archivist-flagged documents only

Reviewed changes

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

File Description
scripts/archivist-sync.js Refactored realtime sync hooks to use metadata-based scoping and consolidated update/delete logic for better maintainability
scripts/dialogs/world-setup-dialog.js Changed default selected field from true to false in reconciliation model building
scripts/dialogs/sync-dialog.js Changed default selected field from true to false for diff entries and removed trailing whitespace
CHANGELOG.md Documented the fixes and behavioral changes in an Unreleased section

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

Copy link
Owner Author

@camrun91 camrun91 left a comment

Choose a reason for hiding this comment

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

approved

@camrun91 camrun91 merged commit 6e40c74 into main Dec 5, 2025
1 check passed
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