Skip to content

LT 22373: Fix reversal numbers#875

Merged
aror92 merged 6 commits into
mainfrom
LT-22373
May 12, 2026
Merged

LT 22373: Fix reversal numbers#875
aror92 merged 6 commits into
mainfrom
LT-22373

Conversation

@aror92
Copy link
Copy Markdown
Contributor

@aror92 aror92 commented May 11, 2026

  • Fix width of "Number even a single sense" message to prevent
    the final e being cut off.
  • Fix position of "number even a single sense" box to prevent
    box border being cut off.
  • Fix title of the configuration to say "Reversal Number
    Configuration" instead of "Sense Number Configuration"
    when configuring referenced senses in the reversal.
  • Fix reversal number handling in GetSenseNumber
  • Fix disappearing sense nums if reversals are toggled on/off

This change is Reviewable

aror92 added 4 commits May 11, 2026 11:00
* Fix width of "Number even a single sense" message to prevent
the final e being cut off.
* Fix title of the configuration to say "Reversal Number
Configuration" instead of "Sense Number Configuration"
when configuring referenced senses in the reversal.

Change-Id: I6ec67b5bd1809e658dad6d745898b3ba5cb338c9
Change-Id: I7c65902ca0c77896f83b0703440fdc9ba8635cbe
Change-Id: Ia1d9bf18a600a7289652fe8858eef14bbe3febae
The number even a single sense box was positioned too low,
so was cutting off the bottom border of the box it is inside.
Moved the box up a few ticks, and it displays properly now.

Change-Id: I82b6d225c47c4a8aa15c40b82a1c152a984b2863
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 11, 2026

NUnit Tests

    1 files  ±0      1 suites  ±0   11m 20s ⏱️ -11s
4 187 tests ±0  4 116 ✅ ±0  71 💤 ±0  0 ❌ ±0 
4 196 runs  ±0  4 125 ✅ ±0  71 💤 ±0  0 ❌ ±0 

Results for commit fac22e2. ± Comparison against base commit 502b832.

♻️ This comment has been updated with latest results.

@jasonleenaylor
Copy link
Copy Markdown
Contributor

Src/xWorks/DictionaryDetailsController.cs line 78 at r1 (raw file):

			m_configModel = model;
			m_node = node;
			bool isReversal = DictionaryConfigurationDlg.GetTopLevelNode(node).Label == "Reversal Entry";

I feel lilke we already have an IsReversal method or property somewhere that should be usable here. We shouldn't need to make GetTopLevelNode public and do logic here. If you can't find an IsReversal method that we can use here then we should make one. I would prefer to isolate any string comparison in the config into a clear method that shows why we care about it.

Use existing methods and node lists to check for isReversal
and revert GetTopLevelNode to private.

Change-Id: I953ee0ac233c82ac4a6d89f41b2b437b34d193e6
Copy link
Copy Markdown
Contributor Author

@aror92 aror92 left a comment

Choose a reason for hiding this comment

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

@aror92 made 1 comment.
Reviewable status: 0 of 11 files reviewed, all discussions resolved (waiting on jasonleenaylor).


Src/xWorks/DictionaryDetailsController.cs line 78 at r1 (raw file):

Previously, jasonleenaylor (Jason Naylor) wrote…

I feel lilke we already have an IsReversal method or property somewhere that should be usable here. We shouldn't need to make GetTopLevelNode public and do logic here. If you can't find an IsReversal method that we can use here then we should make one. I would prefer to isolate any string comparison in the config into a clear method that shows why we care about it.

This makes sense. You're right, there is a model.IsReversal property. Updated to use that instead. I was using GetTopLevelNode in ConfiguredLcmGenerator as well, but it's not needed there because we already have a node list and can access the root node directly. Removed that usage too, and reverted GetTopLevelNode back to private.

Change-Id: Ic034d616f0e485299d6788720735fe1b22784702
Copy link
Copy Markdown
Contributor

@jasonleenaylor jasonleenaylor left a comment

Choose a reason for hiding this comment

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

:lgtm:

@jasonleenaylor reviewed 11 files and all commit messages, and made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on aror92).

@aror92 aror92 merged commit 3fd7827 into main May 12, 2026
7 checks passed
@aror92 aror92 deleted the LT-22373 branch May 12, 2026 17:02
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.

2 participants