Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: attempt to switch table to react-table + react-window #81

Closed
wants to merge 3 commits into from

Conversation

ivan-aksamentov
Copy link
Member

@ivan-aksamentov ivan-aksamentov commented Jul 3, 2020

This is an ongoing work on replacing the plain <table/> on results page.

The plan is to:

@vercel
Copy link

vercel bot commented Jul 3, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

@ivan-aksamentov ivan-aksamentov self-assigned this Jul 3, 2020
{
Header: 'Sequence',
Cell({ cell, row }) {
const sequence = row.original
Copy link

Choose a reason for hiding this comment

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

[eslint] reported by reviewdog 🐶
Unsafe assignment of an any value. @typescript-eslint/no-unsafe-assignment

{
Header: 'Sequence',
Cell({ cell, row }) {
const sequence = row.original
Copy link

Choose a reason for hiding this comment

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

[eslint] reported by reviewdog 🐶
Unsafe member access .original on an any value. @typescript-eslint/no-unsafe-member-access

Header: 'Sequence',
Cell({ cell, row }) {
const sequence = row.original
return <ColumnName {...cell.getCellProps()} seqName={sequence.seqName} sequence={sequence} />
Copy link

Choose a reason for hiding this comment

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

[eslint] reported by reviewdog 🐶
Unsafe member access .getCellProps on an any value. @typescript-eslint/no-unsafe-member-access

Header: 'Sequence',
Cell({ cell, row }) {
const sequence = row.original
return <ColumnName {...cell.getCellProps()} seqName={sequence.seqName} sequence={sequence} />
Copy link

Choose a reason for hiding this comment

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

[eslint] reported by reviewdog 🐶
Unsafe call of an any typed value. @typescript-eslint/no-unsafe-call

Header: 'Sequence',
Cell({ cell, row }) {
const sequence = row.original
return <ColumnName {...cell.getCellProps()} seqName={sequence.seqName} sequence={sequence} />
Copy link

Choose a reason for hiding this comment

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

[eslint] reported by reviewdog 🐶
Unsafe assignment of an any value. @typescript-eslint/no-unsafe-assignment

Header: 'Sequence',
Cell({ cell, row }) {
const sequence = row.original
return <ColumnName {...cell.getCellProps()} seqName={sequence.seqName} sequence={sequence} />
Copy link

Choose a reason for hiding this comment

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

[eslint] reported by reviewdog 🐶
Unsafe member access .seqName on an any value. @typescript-eslint/no-unsafe-member-access

Header: 'Sequence',
Cell({ cell, row }) {
const sequence = row.original
return <ColumnName {...cell.getCellProps()} seqName={sequence.seqName} sequence={sequence} />
Copy link

Choose a reason for hiding this comment

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

[eslint] reported by reviewdog 🐶
Unsafe assignment of an any value. @typescript-eslint/no-unsafe-assignment

<tr className="results-table-row" key={seqName}>
<ColumnName seqName={seqName} sequence={sequence} />
<td colSpan={7} className="results-table-col results-table-col-clade" />
<tr {...row.getRowProps({ style })}>
Copy link

Choose a reason for hiding this comment

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

[eslint] reported by reviewdog 🐶
Unsafe assignment of an any value. @typescript-eslint/no-unsafe-assignment

{headers.map((column) => {
// console.log({ column })
return (
<div {...column.getHeaderProps()} className="th">
Copy link

Choose a reason for hiding this comment

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

[eslint] reported by reviewdog 🐶
Missing "key" prop for element in iterator react/jsx-key

@ivan-aksamentov
Copy link
Member Author

ivan-aksamentov commented Jul 6, 2020

Abandoning this idea, because react-table column-oriented design does not work well for us. Also, I no longer see any advantages of using it.

@ivan-aksamentov ivan-aksamentov deleted the feat/better-table branch July 23, 2020 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant