Skip to content

Use smaller components to simplify the code#70

Merged
severo merged 21 commits intomasterfrom
simplify-logic
Mar 13, 2025
Merged

Use smaller components to simplify the code#70
severo merged 21 commits intomasterfrom
simplify-logic

Conversation

@severo
Copy link
Copy Markdown
Contributor

@severo severo commented Mar 12, 2025

Before implementing big changes like supporting multicolumn sort, I propose simplifying the code's structure by splitting HighTable and TableHeader into smaller components. This PR is a first step in that direction, and it does not change the functionalities in any way.

Note that it allowed me to get rid of the "fake" table-corner div floating above the table. Now it's the first cell of the table, as a user would expect.

I'm merging it so that I can keep working on it, but cc @platypii as it significantly changes the structure of the code (note: it's partly inspired by https://www.joshwcomeau.com/react/file-structure/).

@severo severo changed the title Simplify logic Use smaller components to simplify the code Mar 13, 2025
@severo severo marked this pull request as ready for review March 13, 2025 09:01
@severo severo merged commit 89f0035 into master Mar 13, 2025
@severo severo deleted the simplify-logic branch March 13, 2025 09:46
Copy link
Copy Markdown
Contributor

@platypii platypii left a comment

Choose a reason for hiding this comment

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

Nice I am in favor of splitting out files

Comment thread src/HighTable.css
Comment thread src/components/Cell/Cell.tsx
Comment thread src/components/HighTable/HighTable.tsx
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