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(Timeline): new component #1312

Merged
merged 12 commits into from
Feb 4, 2025
Merged

feat(Timeline): new component #1312

merged 12 commits into from
Feb 4, 2025

Conversation

atabel
Copy link
Contributor

@atabel atabel commented Jan 23, 2025

Copy link

github-actions bot commented Jan 23, 2025

Size stats

master this branch diff
Total JS 12.3 MB 12.3 MB +10 kB
JS without icons 2.06 MB 2.06 MB +9.9 kB
Lib overhead 73.5 kB 73.5 kB 0 B
Lib overhead (gzip) 17.1 kB 17.1 kB 0 B

Copy link

github-actions bot commented Jan 23, 2025

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

Copy link

github-actions bot commented Jan 23, 2025

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-hvjqfglx6-flows-projects-65bb050e.vercel.app

Built with commit 4408737.
This pull request is being automatically deployed with vercel-action

@atabel atabel marked this pull request as ready for review January 28, 2025 10:01
src/timeline.tsx Outdated
/>
</svg>
);
} else if (asset.kind === 'number') {
Copy link
Member

Choose a reason for hiding this comment

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

[matter of taste] if all if branches have its own return, I prefer to not use else, so all ifs are in the same level

Copy link
Contributor Author

@atabel atabel Jan 30, 2025

Choose a reason for hiding this comment

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

I think an exhaustive switch is better here, changed

Copy link

@andredelramo-hm andredelramo-hm left a comment

Choose a reason for hiding this comment

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

Great job! :) I have a question: I can't seem to read the active event with the screen reader. I'm mentioning it just in case. Could there be an issue with this, or maybe I'm not doing it correctly?

},
]);

export const asset = style({

Choose a reason for hiding this comment

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

image
It seems that in the 24px assets, the dots and the icons without a circle, their container is deformed a bit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Choose a reason for hiding this comment

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

Captura de pantalla 2025-02-03 a las 17 07 20
In the icon option, I still see the 24x26 container

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it should be fixed now


type TimelineProps = {
children?: React.ReactNode;
orientation?: 'horizontal' | 'vertical';

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@yceballost yceballost left a comment

Choose a reason for hiding this comment

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

We need to remove the spacing between media and first element in naked card to avoid this problems. When media prop is undefined, this space should not be there

We also have to change the media property in naked card to optional.
https://tinyurl.com/24j4mhyp

don't know if this change can be make it in this pr or in other one

@atabel atabel enabled auto-merge February 4, 2025 08:27
@atabel atabel added this pull request to the merge queue Feb 4, 2025
Merged via the queue into master with commit 03426af Feb 4, 2025
11 checks passed
@atabel atabel deleted the atoledano-timeline branch February 4, 2025 08:46
tuentisre pushed a commit that referenced this pull request Feb 4, 2025
# [16.11.0](v16.10.0...v16.11.0) (2025-02-04)

### Features

* **Timeline:** new component ([#1312](#1312)) ([03426af](03426af))
@tuentisre
Copy link
Collaborator

🎉 This PR is included in version 16.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants