Skip to content

Fix column order and show/hide menu when SOC is excluded; honor display - #186

Merged
LittleBeannie merged 3 commits into
mainfrom
fix-185-column-toggles
Nov 6, 2026
Merged

LittleBeannie merged 3 commits into
mainfrom
fix-185-column-toggles

Conversation

@yihui

@yihui yihui commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Closes #185

  • display_soc_toggle = FALSE left the figure columns after n/(%): the hidden SOC column was dropped before lt_move() ran, so the move lost its anchor. The SOC column is now left out of the table entirely and the figures anchor on the term column.
  • The "Show/Hide columns" menu is now always shown, and the stray soc_name filter chip no longer appears when SOC is excluded.
  • display_diff_toggle is deprecated and ignored: the risk-difference columns are always offered in the menu (hidden by default unless "diff" is in display).
  • format_lt_forestly() honors display again for fig_prop, fig_diff, n, and prop, as the pre-lt version did.

Two commits: the first covers the #185 fixes and the deprecation, the second restores the display behavior.

🤖 Generated with Claude Code

yihui and others added 3 commits November 5, 2026 13:22
…lay_diff_toggle

- `display_soc_toggle = FALSE` dropped `soc_name` before `lt_move()` ran, so the
  figure columns lost their anchor and stayed after n/(%). The SOC column is now
  left out of the table data and the figures anchor on `name`.
- Always show the "Show/Hide columns" menu, and no longer add a `soc_name`
  filter chip when SOC is excluded.
- Deprecate `display_diff_toggle`: the risk-difference columns are always
  offered in the menu (hidden by default unless "diff" is in `display`).

Co-Authored-By: Claude Code <noreply@anthropic.com>
The reactable version hid the proportion/difference figures and the n/(%)
columns when absent from `format_ae_forestly(display=)`; the lt version ignored
them. Build each figure only when listed, and include n/prop columns only when
listed (proportions are still carried, hidden, when the dot plot reads them;
CI bounds ship only with the error bar).

Co-Authored-By: Claude Code <noreply@anthropic.com>
@LittleBeannie
LittleBeannie merged commit 68f7c66 into main Nov 6, 2026
2 checks passed
@LittleBeannie
LittleBeannie deleted the fix-185-column-toggles branch November 6, 2026 15:34
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.

Remove display_soc_toggle =... and display_diff_toggle=... in ae_forestly()?

2 participants