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

Improve Timeline design #5919

Open
2 tasks
Bonapara opened this issue Jun 18, 2024 · 22 comments
Open
2 tasks

Improve Timeline design #5919

Bonapara opened this issue Jun 18, 2024 · 22 comments
Assignees
Labels
for experienced contributor good first issue Good for newcomers scope: front Issues that are affecting the frontend side only size: short

Comments

@Bonapara
Copy link
Member

Bonapara commented Jun 18, 2024

Desired Behavior

CleanShot 2024-06-18 at 11 02 10

  • 1. Content should be extended by default (Today only field edits are open by default, not email and calendar events)
  • 2. There should be a line in the middle of the gray timeline when it's opened:

CleanShot 2024-06-18 at 11 07 38

Copy link
Contributor

greptile-apps bot commented Jun 18, 2024

Implementation Steps

  1. Update Padding:

    • Modify the padding in TimelineItemsContainer.tsx:
      const StyledTimelineContainer = styled.div`
        align-items: center;
        align-self: stretch;
        display: flex;
        flex: 1 0 0;
        flex-direction: column;
        gap: ${({ theme }) => theme.spacing(1)};
        justify-content: flex-start;
        padding: 24px;
        width: calc(100% - 48px);
      `;
  2. Extend Content by Default:

    • Ensure the StyledScrollWrapper in TimelineItemsContainer.tsx extends content:
      const StyledScrollWrapper = styled(ScrollWrapper)`
        flex: 1 0 auto;
      `;
  3. Add Middle Line:

    • Add a middle line in TimelineActivity.tsx:
      const StyledVerticalLine = styled.div`
        align-self: stretch;
        background: ${({ theme }) => theme.border.color.medium};
        flex-shrink: 0;
        width: 2px;
        margin: 0 auto;
      `;
    • Ensure the line is rendered in the TimelineActivity component:
      {!isLastActivity && (
        <StyledTimelineItemContainer isGap>
          <StyledVerticalLineContainer>
            <StyledVerticalLine />
          </StyledVerticalLineContainer>
        </StyledTimelineItemContainer>
      )}

References

/packages/twenty-front/src/modules/activities/timeline/components/Timeline.tsx
/packages/twenty-front/src/modules/activities/timeline/components/TimelineActivity.tsx
/packages/twenty-front/src/modules/activities/timeline/components/TimelineItemsContainer.tsx
/packages/twenty-front/src/modules/activities/timeline

Ask Greptile

@Bonapara
Copy link
Member Author

/oss.gg 150

Copy link

oss-gg bot commented Sep 30, 2024

Thanks for opening an issue! It's live on oss.gg!

@Jemeni11
Copy link

Jemeni11 commented Oct 1, 2024

/assign

@oss-gg oss-gg bot assigned Jemeni11 Oct 1, 2024
Copy link

oss-gg bot commented Oct 1, 2024

Assigned to @Jemeni11! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

@Jemeni11
Copy link

Jemeni11 commented Oct 1, 2024

Hi @Bonapara. I encountered a problem while setting up locally.

https://twenty.com/developers/local-setup#step-3:-set-up-a-postgresql-database

I'm currently on this step and I ran into this error:
image

I assumed it was solvable by using sudo but I still got an error:
image

So, I decided to skip this step.

I made it to this step before running into another error
https://twenty.com/developers/local-setup#step-6:-running-the-project

image
image
image
image
image

I’m not sure how to resolve this issue. Could you help?

@Bonapara
Copy link
Member Author

Bonapara commented Oct 2, 2024

You can ask on our #Help Discord @Jemeni11
Thanks!

@Jemeni11 Jemeni11 removed their assignment Oct 2, 2024
@Supratim69
Copy link

Can I pick this up?

@Bonapara
Copy link
Member Author

Bonapara commented Oct 4, 2024

Sure @Jemeni11, thanks for contributing!

@Jemeni11
Copy link

Jemeni11 commented Oct 4, 2024

Hi @Bonapara I'm not sure if I'll be able to work on this yet. I haven't finished fixing up local setup error. That's why I unassigned myself. The discord was helpful, thanks for recommending it.

@Jemeni11
Copy link

Jemeni11 commented Oct 5, 2024

Hi @Bonapara , I will be unable to work on this. My system can't handle this.

@Jemeni11 Jemeni11 removed their assignment Oct 5, 2024
@AshishViradiya153
Copy link
Contributor

/assign

Copy link

oss-gg bot commented Oct 6, 2024

You already have an open issue assigned to you here. Once that's closed or unassigned, only then we recommend you to take up more.

@Harsh-Mathur-1503
Copy link

/assign

Copy link

oss-gg bot commented Oct 10, 2024

Assigned to @Harsh-Mathur-1503! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

@ManpreetKhinda
Copy link

/assign

Copy link

oss-gg bot commented Oct 10, 2024

This issue is already assigned to another person. Please find more issues here.

Copy link

oss-gg bot commented Oct 12, 2024

@Harsh-Mathur-1503, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.

2 similar comments
Copy link

oss-gg bot commented Oct 14, 2024

@Harsh-Mathur-1503, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.

Copy link

oss-gg bot commented Oct 16, 2024

@Harsh-Mathur-1503, Just a little reminder: Please open a draft PR linking this issue within 12 hours. If we can't detect a PR in 12h, you will be unassigned automatically.

@attarzai
Copy link

/assign

Copy link

oss-gg bot commented Oct 16, 2024

Assigned to @attarzai! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for experienced contributor good first issue Good for newcomers scope: front Issues that are affecting the frontend side only size: short
Projects
Status: 🔖 Planned
Development

No branches or pull requests

9 participants