Skip to content

feat: Add team section on company show#1119

Merged
charlesBochet merged 4 commits intomainfrom
TWNTY-1106
Aug 9, 2023
Merged

feat: Add team section on company show#1119
charlesBochet merged 4 commits intomainfrom
TWNTY-1106

Conversation

@gitstart-twenty
Copy link
Copy Markdown
Contributor

Co-authored-by: RubensRafael <rubensrafael2@live.com>
@ergomake
Copy link
Copy Markdown

ergomake bot commented Aug 9, 2023

Hi 👋

Here's a preview environment 🚀

https://front-twentyhq-twenty-1119.env.ergomake.link

Environment Summary 📑

Container Source URL
front Dockerfile https://front-twentyhq-twenty-1119.env.ergomake.link
server Dockerfile https://server-twentyhq-twenty-1119.env.ergomake.link
postgres Dockerfile [not exposed - internal service]

Here are your environment's logs.

For questions or comments, join Discord.

Click here to disable Ergomake.

@Weiko
Copy link
Copy Markdown
Member

Weiko commented Aug 9, 2023

Thanks! I've just tested with preview env and I can see that if you have many employees it won't fit properly in the menu

Screen.Recording.2023-08-09.at.11.45.40.mov

Copy link
Copy Markdown
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

Nice work! Added cosmetic comments


const StyledTitle = styled.div`
color: ${({ theme }) => theme.font.color.primary};
font-family: Inter;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

font-family should not be needed
font-size: use theme

font-family: Inter;
font-size: 13px;

font-style: normal;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should not be needed


const StyledTitleContainer = styled.div`
align-items: center;
align-self: stretch;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is align-self: strech needed?


const StyledListContainer = styled.div`
align-items: flex-start;
align-self: stretch;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same question?


const StyledContainer = styled.div`
align-items: flex-start;
align-self: stretch;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same (see below)


font-style: normal;
font-weight: 500;
line-height: 150%;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

use theme :)


const StyledCard = styled.div`
align-items: center;
align-self: stretch;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

idem!

Copy link
Copy Markdown
Contributor Author

@gitstart-twenty gitstart-twenty Aug 9, 2023

Choose a reason for hiding this comment

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

We are actually using this one. Using width: 100% would result in something like below:

Screenshot 2023-08-09 at 23 45 35

const StyledTitle = styled.div`
color: ${({ theme }) => theme.font.color.primary};
font-family: Inter;
font-size: 13px;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

use theme or remove css properties (see CompanyTeam comments)

const StyledJobTitle = styled.div`
border-radius: ${({ theme }) => theme.spacing(1)};
color: ${({ theme }) => theme.font.color.secondary};
padding: 3px 4px 3px 0px;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's not use 3px for values actually. Let's use theme spacing too

color: ${({ theme }) => theme.font.color.primary};
display: flex;
justify-content: space-between;
padding: 12px 12px 0px 12px;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's use theme spacing for padding

@gitstart-twenty
Copy link
Copy Markdown
Contributor Author

gitstart-twenty commented Aug 9, 2023

Nice work! Added cosmetic comments

On it

gitstart-twenty and others added 3 commits August 9, 2023 20:21
Co-authored-by: RubensRafael <rubensrafael2@live.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: RubensRafael <rubensrafael2@live.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
@gitstart-twenty
Copy link
Copy Markdown
Contributor Author

Fixed companies with many members:

team-members.mp4

Copy link
Copy Markdown
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

Thank you!

@charlesBochet charlesBochet merged commit 22b4bff into main Aug 9, 2023
@charlesBochet charlesBochet deleted the TWNTY-1106 branch August 9, 2023 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On Company Show, I see a a Team section displaying a list of person linked to the company

3 participants