Skip to content

Feat: heuristic-table-plugin rework - #86

Open
5ZYSZ3K wants to merge 21 commits into
masterfrom
feat/heuristic-table-plugin-rework
Open

5ZYSZ3K wants to merge 21 commits into
masterfrom
feat/heuristic-table-plugin-rework

Conversation

@5ZYSZ3K

@5ZYSZ3K 5ZYSZ3K commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

I added quite a few new features to the heuristic-table-plugin:

  • Column sizing: added / support and improved percentage widths, width bounds, spanning cells, and distribution of remaining space.
  • Container sizing: tables now account for ancestor padding, borders, and margins; nested tables use the space available inside their parent cells.
  • Borders and spacing: implemented collapsed-border resolution, separate-border spacing, default cell padding, and logical padding support.
  • Cell styling: resolve getStyleForCell once per layout and use its padding and borders consistently for sizing and rendering; improved vertical alignment and writing-direction handling.
  • Height and scrolling: preserve row heights, fill declared table heights, support optional growth through growBeyondHeight, and scroll fixed-height tables without clipping content.
  • Text estimation: added configurable character-width and font-weight
  • Robustness and maintenance: prevent crashes for stray cells, split layout into focused modules, remove unused dependencies and debug logging, and expand regression tests, type checks, and documentation.

I admit - those were mostly vibe-coded, I was looking at the ComparisonExample to compare, how does it perform, briefly checking the code, logic, but not going into too much details
I also run a few rounds of review-fix for most critical issues, and a few refactor rounds

Not everything is covered (double borders, missing cells), but it was good enough for the project on which I am working, and for which I decided to give it a shot to update it as quick as I can

Here are a couple of iOS screeshots from the example:
Screenshot 2026-09-15 at 22 31 37
Screenshot 2026-09-15 at 22 30 30
Screenshot 2026-09-15 at 22 30 11
Screenshot 2026-09-15 at 22 30 00
Screenshot 2026-09-15 at 22 29 53
Screenshot 2026-09-15 at 22 29 43
Screenshot 2026-09-15 at 22 29 28

And here are android screenshots:
1000004990
1000004991
1000004992
1000004993
1000004994
1000004995

5ZYSZ3K added 21 commits August 12, 2026 13:06
@5ZYSZ3K
5ZYSZ3K requested a review from jsamr September 15, 2026 20:34
@5ZYSZ3K 5ZYSZ3K self-assigned this Sep 15, 2026
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