Skip to content

Bugfix: VTT notes not displaying on GCS Actor Sheet#2736

Merged
mjeffw merged 2 commits into
develop/v13-onlyfrom
bugfix/2680
May 29, 2026
Merged

Bugfix: VTT notes not displaying on GCS Actor Sheet#2736
mjeffw merged 2 commits into
develop/v13-onlyfrom
bugfix/2680

Conversation

@rinickolous
Copy link
Copy Markdown
Collaborator

Fixes #2680

Copy link
Copy Markdown
Contributor

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

Fixes #2680 by restoring display/edit support for “VTT Notes” (often containing OTF) in the v1.0.0 item UI/data flow.

Changes:

  • Renames the item system field from vtt_notes to vttNotes across templates, adapters, importers, and i18n keys.
  • Updates BaseItemModel.toDisplayItem() to include VTT notes when generating the rendered notes HTML.
  • Updates multiple translations to match the new vttNotes key.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
static/templates/item/partials/details-base.hbs Uses system.vttNotes / systemFields.vttNotes in the item details form.
static/lang/en.json Renames translation key from vtt_notes to vttNotes.
static/lang/de.json Renames translation key from vtt_notes to vttNotes.
static/lang/fr.json Renames translation key from vtt_notes to vttNotes.
static/lang/pt_br.json Renames translation key from vtt_notes to vttNotes.
static/lang/ru.json Renames translation key from vtt_notes to vttNotes.
src/module/item/legacy/trait-adapter.ts Reads VTT notes from system.vttNotes when composing legacy notes.
src/module/item/legacy/spell-adapter.ts Reads VTT notes from system.vttNotes when composing legacy notes.
src/module/item/legacy/skill-adapter.ts Reads VTT notes from system.vttNotes when composing legacy notes.
src/module/item/legacy/equipment-adapter.ts Reads VTT notes from system.vttNotes when composing legacy notes.
src/module/item/data/base.ts Adds VTT notes into toDisplayItem() output and renames schema field to vttNotes.
src/module/importer/gcs-importer/importer.ts Maps GCS vtt_notes input into system.vttNotes.
src/module/importer/gca-importer/importer.ts Maps GCA vttnotes input into system.vttNotes.

Comment thread src/module/item/data/base.ts
Comment thread src/module/item/data/base.ts
@rinickolous rinickolous changed the title Bugfix/2680 Bugfix: VTT notes not displaying on GCS Actor Sheet May 16, 2026
Base automatically changed from bugfix/2734 to develop/v13-only May 29, 2026 20:04
@mjeffw mjeffw requested a review from Copilot May 29, 2026 20:05
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.


/** VTT-specific notes about this item, not visible in external programs but useful for storing OTF and the like. */
vtt_notes: new fields.StringField({ required: true, nullable: true, initial: null }),
vttNotes: new fields.StringField({ required: true, nullable: true, initial: null }),
Comment on lines +377 to +383
let unformattedNotes = this.notes.trim()

if (unformattedNotes.length > 0) unformattedNotes += '\n'

const vttNotesTrimmed = this.vttNotes?.trim() ?? ''

unformattedNotes += vttNotesTrimmed
@mjeffw mjeffw merged commit 60bb128 into develop/v13-only May 29, 2026
1 check passed
@mjeffw mjeffw deleted the bugfix/2680 branch May 29, 2026 20:24
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.

V1.0.0 Content from VTT notes is not displayed

3 participants