-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
Add support for synced tabs #640
Conversation
🦋 Changeset detectedLatest commit: 6f12a6b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
* main: (440 commits) i18n(fr): update `getting-started.mdx` (withastro#1245) [ci] format docs(showcase): add csmos.space (withastro#1269) [ci] format docs: add SiteOne Crawler to showcase (withastro#1264) Fix formatting [ci] format docs(i18n): Add Indonesian translation for site search documentation (withastro#1250) i18n(es): fix typo (withastro#1246) i18n(ja): Update getting-started.mdx (withastro#1252) i18n(es): Update `getting-started.mdx` (withastro#1247) i18n(ko-KR): update `getting-started.mdx` (withastro#1248) Update upgrade instructions to show new `@astrojs/upgrade` (withastro#1241) [ci] format [ci] release (withastro#1240) i18n(ru): Fix typo in `i18n.untranslatedContent` (withastro#1243) Fix timezone-reliance in LastUpdated (withastro#1170) Prefetch links on hover by default (withastro#1242) Add support for Astro v4, drop support for Astro v3 (withastro#1238) Add Matrix social icon (withastro#1203) ...
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
* main: (419 commits) i18n(fr): Update `guides/i18n.mdx` with <Steps> (withastro#1652) i18n(es): update `site-search` (withastro#1666) i18n(fr): Update `resources/plugins.mdx` with LinkCard Zoom (withastro#1654) i18(zh-cn): Update i18n.mdx (withastro#1672) i18(zh-cn): Update customization.mdx (withastro#1671) [ci] format i18n(it): Update css-and-tailwind.mdx (withastro#1643) [ci] format i18n(it): Update customization.mdx (withastro#1642) [ci] format i18n(es): update `overriding-components` (withastro#1670) i18n(fr): Update `guides/customization.mdx` with <Steps> (withastro#1650) [ci] format i18n(es): update `css-and-tailwind` (withastro#1669) i18n(es): updates `customization` (withastro#1668) i18n(it): Update i18n.mdx (withastro#1645) i18n(es): update `i18n` (withastro#1667) i18n(it): Update site-search.mdx (withastro#1644) [ci] format i18n(fr): Update `guides/overriding-components.mdx` in MDX format and with <Steps> (withastro#1655) ...
Just updated the pull request and also added a new behavior to avoid scroll position changes when alternating between tabs which could happen for example when switching between tabs with different content height. |
Thanks for another great review, super appreciated 🙌 Everything noticed so far should be fixed now until further changes are requested. |
* main: (21 commits) Update fa.json (withastro#1793) i18n(fr): update `resources/community-content.mdx` (withastro#1795) [ci] format i18n(ko-KR): update `community-content.mdx` (withastro#1794) [ci] format Adds Starlight in Next.js project video (withastro#1789) [ci] format i18n(ru): update translations (withastro#1783) i18n(id): Update getting-started.mdx (withastro#1778) Upgrade Lunaria and add Action (withastro#1768) [ci] format i18n(es): update `sidebar` (withastro#1767) i18n(pt-br): Update `getting-started.mdx` (withastro#1776) i18n(es): update `configuration` (withastro#1766) [ci] format Add TrueCharts to showcases (withastro#1773) i18n(zh-cn): Update `sidebar.mdx` (withastro#1761) i18n(ko-KR): update `sidebar.mdx` (withastro#1760) i18n(fr): update `guides/sidebar` (withastro#1758) test: fix Windows path separator test issues (withastro#1759) ...
Co-authored-by: Chris Swithinbank <[email protected]> Co-authored-by: Sarah Rainsberger <[email protected]>
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for release! Still working my way through our PR backlog, but this should be able to go out later today.
Thank you for the work on this @HiDeoo — probably taking the award for longest lived PR so far 😅
What kind of changes does this PR include?
Description
Synced tabs #462Synced tabs #953.This pull request adds support for synced tabs.
demo.mp4
syncKey
property to enable syncing (can be renamed easily).StarlightTabs
web component (we would only have 1 use case for such a store right now so I feel it's easier to follow if everything is scoped to this component).Regarding testing, now that withastro/astro#7979 has been merged, this PR introduces some E2E tests with an architecture a bit similar to the one in the Astro repo:
The approach is much more lightweight than the one in the Astro repo as we don't need at the moment so much features (edits, builds and preview, etc.). My idea was to make it as simple as possible to get started with E2E tests for what I needed in this PR and then, we can iterate on it depending on our needs. Maybe we will also want to add E2E tests for some other already existing features but I think it might be better to do it in a separate PR (or we could also only add tests for existing features when we get bug reports for them as regression tests).
I also edited the
CONTRIBUTING.md
file to add a section about E2E tests with an emphasis on the fact that they should only be used for parts that cannot be properly tested with unit tests (e.g. client code for user interactions).Hope this is what you had in mind Chris when you mentioned the programmatic API in #462. Happy to discuss any part of this PR if needed.