Skip to content

feat: 218 v5 table component table cell part [05]#313

Merged
rpt-rfoxy merged 71 commits intomainfrom
feat-218-v5-table-component-parts-table-cell
Mar 10, 2025
Merged

feat: 218 v5 table component table cell part [05]#313
rpt-rfoxy merged 71 commits intomainfrom
feat-218-v5-table-component-parts-table-cell

Conversation

@rpt-rfoxy
Copy link
Copy Markdown
Contributor

Pull request checklist

  • Create table cell Component (td)

Detail as per issue below (required):
as perdiscusstion here Discussion
schreenshoot
image

@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Feb 10, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
Report missing for 80da58e1 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (80da58e) Report Missing Report Missing Report Missing
Head commit (46401a0) 4437 4043 91.12%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#313) 28 28 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Footnotes

  1. Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

@rpt-rfoxy rpt-rfoxy changed the base branch from main to feat-218-v5-table-component-part-tablehead-and-tableheadercell February 12, 2025 01:03
@rpt-rfoxy rpt-rfoxy changed the base branch from feat-218-v5-table-component-part-tablehead-and-tableheadercell to feat-218-v5-table-component-part-table-row February 12, 2025 01:03
Copy link
Copy Markdown
Contributor

@kurtdoherty kurtdoherty left a comment

Choose a reason for hiding this comment

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

Thanks @rpt-rfoxy. It feels like you're still stepping beyond the design specification too often. I shouldn't see components be capable of things that design haven't specified. If you have opinions or ideas you'd like to share, by all means raise them on the Figma design spec for the component. And if you do add things into the code that is not specified in the design spec, please highlight it on the PR via a comment.

alignment?: 'left' | 'center' | 'right'
width?: string
minWidth?: string
maxWidth?: string
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

question: where does the design specification show the need for flexDirection and isFlexWrap?

Copy link
Copy Markdown
Contributor Author

@rpt-rfoxy rpt-rfoxy Feb 27, 2025

Choose a reason for hiding this comment

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

hi @kurtdoherty for this question we already discuss here here also hereand its needit since we have limited style properties for the i add new wrapper

inside the td to give flexibility styling.

and if the contentwrapper are necessery we can remove it and also remove flexDirection and isFlexWrap.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm confused. The two comments you have referred to don't seem to have anything to do with this component's need for flexDirection and isFlexWrap...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hi @kurtdoherty i already cahnge the code, and keep the props as DOC from here

minWidth?: string
maxWidth?: string
flexDirection?: 'column' | 'row'
isFlexWrap?: boolean
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

issue: I don't think the special CSS style props defined for ElTableCell should be exposed here. For TableCell, the only way consumers should be able to specify the min/max/fixed width of the cell is via the explicit props for those values, not style.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

hi @kurtdoherty thanks for the feedback,
Notes: the minWidth and maxWidth also alignment property is sugested from this discussion
image
and i just following the past discussion and for flexDirection and isFlexWrap we can remove it since its part of tablecellcontent

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm confused here too. My comments above are focused on your use of the TableCellCSSProps type for this React component's style prop. This TableCellCSSProps type includes CSS variable property definitions; these should not be part of TableCell's prop interface, instead they should only be part of ElTableCell's prop interface.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

aah i see, im sorry my bad, i'll remove the style tyle,
i thougt since the have child so i thougt it will be good if style props will ocused only for ElTableCellContent.

now its clear, i'll remove it

question: should we remove ElTableCellContent or just keep it?

import { styled } from '@linaria/react'
import { CSSProperties } from 'react'

export interface TableCellCSSProps extends CSSProperties {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

issue: please remove the export of this interface and rename the interface as ElTableCellCSSProperties

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

image
its laready ermoved

@rpt-rfoxy rpt-rfoxy requested a review from kurtdoherty March 3, 2025 02:47
@reapit reapit deleted a comment from foxdreamstudio Mar 3, 2025
Copy link
Copy Markdown
Contributor

@kurtdoherty kurtdoherty left a comment

Choose a reason for hiding this comment

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

Thanks @rpt-rfoxy. I still don't understand the need for ElTableCellContent and I don't think you've provided a clear demonstration for why it's necessary, but I'm pretty fatigued from the number rounds all these table-related PRs have taken so I think the best path forward is to just get this merged in and move on.

Base automatically changed from feat-218-v5-table-component-part-table-row to main March 10, 2025 00:16
@rpt-rfoxy rpt-rfoxy merged commit 78681cc into main Mar 10, 2025
6 checks passed
@rpt-rfoxy rpt-rfoxy deleted the feat-218-v5-table-component-parts-table-cell branch March 10, 2025 00:38
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