Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add user menu on users table#1222

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 3 commits intomainfrombq/add-action-dropdown
May 2, 2022

Conversation

BrunoQuaresma
Copy link
Collaborator

No description provided.

@BrunoQuaresmaBrunoQuaresma self-assigned thisApr 29, 2022
@BrunoQuaresmaBrunoQuaresma requested a review froma team as acode ownerApril 29, 2022 16:59
@codecov
Copy link

codecovbot commentedApr 29, 2022
edited
Loading

Codecov Report

Merging#1222 (1f562a3) intomain (365c96c) willincrease coverage by0.14%.
The diff coverage is84.00%.

@@            Coverage Diff             @@##             main    #1222      +/-   ##==========================================+ Coverage   65.58%   65.73%   +0.14%==========================================  Files         269      272       +3       Lines       17337    17791     +454       Branches      162      216      +54     ==========================================+ Hits        11371    11695     +324- Misses       4774     4872      +98- Partials     1192     1224      +32
FlagCoverage Δ
unittest-go-macos-latest53.08% <ø> (+0.26%)⬆️
unittest-go-postgres-64.81% <ø> (+0.15%)⬆️
unittest-go-ubuntu-latest55.67% <ø> (+0.27%)⬆️
unittest-go-windows-2022?
unittest-js70.69% <84.00%> (+1.84%)⬆️
Impacted FilesCoverage Δ
site/src/components/TableRowMenu/TableRowMenu.tsx73.33% <73.33%> (ø)
site/src/components/Table/Table.tsx100.00% <100.00%> (ø)
site/src/components/TableHeaders/TableHeaders.tsx100.00% <100.00%> (ø)
site/src/components/UsersTable/UsersTable.tsx100.00% <100.00%> (ø)
provisionersdk/serve.go35.13% <0.00%> (-8.11%)⬇️
site/src/pages/UsersPage/UsersPage.tsx75.00% <0.00%> (-7.36%)⬇️
cli/configssh.go62.04% <0.00%> (-5.87%)⬇️
pty/ptytest/ptytest.go86.95% <0.00%> (-4.35%)⬇️
coderd/userauth.go54.16% <0.00%> (-4.17%)⬇️
cli/templateinit.go58.62% <0.00%> (-3.45%)⬇️
... and37 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update365c96c...1f562a3. Read thecomment docs.

@@ -16,6 +17,8 @@ export const TableHeaders: React.FC<TableHeadersProps> = ({ columns }) => {
{c}
</TableCell>
))}
{/* 1% is a hack to make the table cell width fits the content */}
{hasMenu && <TableCell width="1%" />}
Copy link
Contributor

@greyscaledgreyscaledApr 29, 2022
edited
Loading

Choose a reason for hiding this comment

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

Aside: Added ticket for storybook here:#1224

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

I don't think we need to have a storybook for each table component, I think one for "Table" is good enough since it will use all the others. What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

@BrunoQuaresma In general I agree, but I can think of a reason it might be useful to storybook subcomponents: if they take props that make them render differently, a story for the subcomponent will allow you to play with those props and make different stories for them, whereas it's a little harder to do that in a story for just the composite component.

BrunoQuaresma reacted with thumbs up emoji
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Hm... I think that is ok when the component can be used outside of the "main" component but in this case, the TableHeader should be used inside of the Table component and it also does not have states or multiple behaviors 🤔. But I'm ok with doing the storybook for this component, we can discuss it better in a FE Variety meeting.

Copy link
Contributor

Choose a reason for hiding this comment

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

If we decide against it and close the ticket, no harm is done. Wasn't intending to add context or weight here, just noticed it and made a ticket and moved on.

BrunoQuaresma reacted with thumbs up emoji
Co-authored-by: G r e y <grey@coder.com>
Copy link
Contributor

@greyscaledgreyscaled left a comment

Choose a reason for hiding this comment

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

Approving with the recommendation to unnestUserMenu and addLangauge for the hard-codedSuspend operation ✅

@@ -16,6 +17,8 @@ export const TableHeaders: React.FC<TableHeadersProps> = ({ columns }) => {
{c}
</TableCell>
))}
{/* 1% is a hack to make the table cell width fits the content */}
{hasMenu && <TableCell width="1%" />}
Copy link
Contributor

Choose a reason for hiding this comment

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

If we decide against it and close the ticket, no harm is done. Wasn't intending to add context or weight here, just noticed it and made a ticket and moved on.

BrunoQuaresma reacted with thumbs up emoji
@BrunoQuaresma
Copy link
CollaboratorAuthor

@vapurrmaid, not a problem! I assigned all of them to me already.

@BrunoQuaresmaBrunoQuaresmaenabled auto-merge (squash)May 2, 2022 14:50
@BrunoQuaresmaBrunoQuaresma merged commit7534328 intomainMay 2, 2022
@BrunoQuaresmaBrunoQuaresma deleted the bq/add-action-dropdown branchMay 2, 2022 14:58
@missknissmisskniss added this to theV2 Beta milestoneMay 15, 2022
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@greyscaledgreyscaledgreyscaled approved these changes

@presleyppresleypAwaiting requested review from presleyp

Assignees

@BrunoQuaresmaBrunoQuaresma

Labels
None yet
Projects
None yet
Milestone
V2 Beta
Development

Successfully merging this pull request may close these issues.

4 participants
@BrunoQuaresma@presleyp@greyscaled@misskniss

[8]ページ先頭

©2009-2025 Movatter.jp