Skip to content

LT-22686: Hide UI switching behind FW_AVALONIA environment variable - #1068

Merged
papeh merged 1 commit into
mainfrom
claude/jira-lt-22686-56d2cf
Aug 14, 2026
Merged

LT-22686: Hide UI switching behind FW_AVALONIA environment variable#1068
papeh merged 1 commit into
mainfrom
claude/jira-lt-22686-56d2cf

Conversation

@jasonleenaylor

@jasonleenaylor jasonleenaylor commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

This PR adds an environment variable FW_AVALONIA and treats any value except 0, false, or off as opting in. Non-existance of the environment variable is also opt-out.

When opted out the setting for turning on the New mode is ignored and the options dialog choice is not there.

Set-FieldWorksLegacyMode.ps1 which is used for testing now takes this into account.

Why - we want people to opt in to UI switching rather than have it available to everyone while early work and decision-making are still in progress.

Verification - build clean; FwUtilsTests 389/389, xWorksTests 1475 passed/2 skipped, LexTextControlsTests 349 passed/3 skipped.

Not covered by tests - the gate-closed paths (persisted New seeding Legacy, the group not being built, OK preserving the persisted mode) are verified by inspection only; the value rule itself is pinned by unit tests.

🤖 Generated with Claude Code


This change is Reviewable

* Update Set-FieldWorksLegacyMode.ps1 to honor this
* Also clean up some old comments

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

NUnit Tests

    1 files  ± 0      1 suites  ±0   11m 11s ⏱️ -24s
5 774 tests +14  5 693 ✅ +14  81 💤 ±0  0 ❌ ±0 
5 783 runs  +14  5 702 ✅ +14  81 💤 ±0  0 ❌ ±0 

Results for commit 8c5a84f. ± Comparison against base commit f2fac18.

@codecov-commenter

codecov-commenter commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.41935% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.05%. Comparing base (f2fac18) to head (8c5a84f).

Files with missing lines Patch % Lines
Src/LexText/LexTextControls/LexOptionsDlg.cs 64.70% 2 Missing and 4 partials ⚠️
Src/Common/FieldWorks/WelcomeToFieldWorksDlg.cs 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1068   +/-   ##
=======================================
  Coverage   38.04%   38.05%           
=======================================
  Files        1499     1499           
  Lines      350108   350127   +19     
  Branches    40231    40239    +8     
=======================================
+ Hits       133216   133231   +15     
- Misses     187607   187609    +2     
- Partials    29285    29287    +2     
Files with missing lines Coverage Δ
Src/Common/FwUtils/UIModeGates.cs 100.00% <100.00%> (ø)
Src/xWorks/FwXWindow.cs 11.31% <100.00%> (+0.15%) ⬆️
Src/Common/FieldWorks/WelcomeToFieldWorksDlg.cs 22.53% <0.00%> (ø)
Src/LexText/LexTextControls/LexOptionsDlg.cs 42.77% <64.70%> (-0.28%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@papeh
papeh merged commit 58ccd9e into main Aug 14, 2026
6 checks passed
@papeh
papeh deleted the claude/jira-lt-22686-56d2cf branch August 14, 2026 20:50
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