Skip to content

fix(preview): dynamically resolve project text extensions - #1

Merged
opendev9 merged 1 commit into
devfrom
fix/dynamic-simtext-config
Nov 19, 2026
Merged

opendev9 merged 1 commit into
devfrom
fix/dynamic-simtext-config

Conversation

@opendev9

Copy link
Copy Markdown
Contributor

Purpose

Make the generic preview engine honor project-configured text file extensions after the FileType enum has already been initialized, without hardcoding any project's file types in core.

Changes

  • Resolve KK_SIMTEXT dynamically rather than freezing a snapshot at class initialization.
  • Keep built-in preview handlers (PDF/Office/etc.) higher priority than configurable text suffixes.
  • Support whitespace and leading-dot suffix configuration; publish configuration changes with a volatile, defensive-copy reference.
  • Add focused JUnit tests for initialization order, reload, built-in precedence and empty config.
  • Document how downstream projects should extend and migrate without including business storage, permissions or proprietary converters in the core.

Validation

  • Maven Java 21 portable tests: 114 passed, 0 failures/errors.
  • Linux LibreOffice / SevenZip environment-dependent tests and real preview E2E were not run on this machine.
  • No production deployment or release is included.

@opendev9
opendev9 merged commit 6d42f57 into dev Nov 19, 2026
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.

1 participant