Skip to content

Adapt terminal layout to current width#132

Merged
zhongwencool merged 3 commits into
mainfrom
v1.8.8
Jul 4, 2026
Merged

Adapt terminal layout to current width#132
zhongwencool merged 3 commits into
mainfrom
v1.8.8

Conversation

@zhongwencool

@zhongwencool zhongwencool commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Before

image

After

image

This should be the last feature release for the 1.x series. Subsequent work will focus on developing the 2.x line, with new CLI modes added to be more agent/AI-friendly.

Highlights:
- Add shared layout width helpers and padding to render against the real terminal columns.
- Expand Home, Application, ETS, Mnesia, Network, Process, Port, System, and less footer layouts for wide terminals.
- Add wide-layout regression coverage and test IO geometry support.
- Disable the Elvis god-module rule for existing renderer-heavy modules.

Validation:
- Ran rebar3 fmt.
- Ran epmd -daemon && rebar3 eunit, 274 tests, 0 failures.
- Ran git diff --cached --check.
Highlights:
- Split help content into start mode, global commands, HOME commands, process selection examples, and references.
- Reuse local section and shortcut helpers instead of hand-written highlighted rows.
- Add regression coverage for the new grouping.

Validation:
- Ran rebar3 fmt.
- Ran rebar3 as test eunit --module=observer_cli_help_test, 7 tests, 0 failures.
- Ran git diff --check.
Highlights:
- Bump README, mix.exs, and observer_cli.app.src versions to 1.8.8.
- Add CHANGELOG notes for terminal width adaptation, help grouping, and Elvis rule adjustment.
- Leave generated doc HTML untouched because only source docs are tracked.

Validation:
- Ran rebar3 compile.
- Ran rebar3 as ci compile.
- Ran epmd -daemon && rebar3 eunit, 274 tests, 0 failures.
- Ran rebar3 check.
- Ran git diff --check.
@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.85535% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.37%. Comparing base (1f5a86d) to head (647ddab).

Files with missing lines Patch % Lines
src/observer_cli_lib.erl 88.23% 6 Missing ⚠️
src/observer_cli.erl 98.46% 3 Missing ⚠️
src/observer_cli_inet.erl 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
+ Coverage   92.08%   92.37%   +0.28%     
==========================================
  Files          17       17              
  Lines        1934     2058     +124     
==========================================
+ Hits         1781     1901     +120     
- Misses        153      157       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zhongwencool zhongwencool merged commit 48e2ae4 into main Jul 4, 2026
10 checks passed
@zhongwencool zhongwencool deleted the v1.8.8 branch July 4, 2026 08:37
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