Repository navigation
feat: [docs, progress] check props tables in ci and add changelogs #971
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
Open
Shreyag02
wants to merge
20
commits into
main
Choose a base branch
from
fix/docs-props-sync
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,290
−179
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
db41114
fix: [docs] sync props tables with components
Shreyag02 eb767c2
fix: [docs] list the props each component declares
Shreyag02 ea3d801
fix: [docs] correct required props, defaults and examples
Shreyag02 ab4d998
fix: [docs] document button style, search placeholder and select details
Shreyag02 5aab562
fix: [docs] remove extra JSDoc tags and wording changes
Shreyag02 dfb3fb2
fix: [docs] correct sidepanel, empty state, tooltip and preview card …
Shreyag02 87a60c0
fix: [docs] correct callback arguments, field error match, message sl…
Shreyag02 55cd58e
fix: [docs] document drawer, popover and code block parts
Shreyag02 420abc5
fix: [indicator] default the fallback label to the accent variant
Shreyag02 c912d8a
fix: [docs] correct defaults, types and descriptions in props tables
Shreyag02 2d06e53
fix: [docs] describe null for defaultFilterValue
Shreyag02 c6f7f48
Merge branch 'main' into fix/docs-props-sync
Shreyag02 3114980
chore: [indicator] move the fallback label fix to its own branch
Shreyag02 0b8bb93
fix: [docs] fix props tables flagged by the check
Shreyag02 ed823f8
fix: [indicator, data-view] mark classNames as deprecated
Shreyag02 a689ce2
fix: [progress] make value optional to match its default
Shreyag02 7655bbe
feat: [docs] check props tables against component types in ci
Shreyag02 75945fd
feat: [docs] show each component's changelog from git history
Shreyag02 293e73e
Merge branch 'main' into fix/docs-props-sync
Shreyag02 010d3c4
fix: [docs] correct the RangePicker onSelect description
Shreyag02 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| import { mdxComponents } from '@/components/mdx'; | ||
| import { type ChangelogRelease, RELEASES_URL } from '@/lib/changelog'; | ||
|
|
||
| const { h2: H2, h3: H3, a: A } = mdxComponents; | ||
|
|
||
| export default function Changelog({ | ||
| releases | ||
| }: { | ||
| releases: ChangelogRelease[] | null; | ||
| }) { | ||
| return ( | ||
| <> | ||
| <H2 id='changelog'>Changelog</H2> | ||
| {releases?.length === 0 && <p>No changes since v1.0.0.</p>} | ||
| {releases?.map(release => ( | ||
| <section key={release.tag ?? 'unreleased'}> | ||
| <H3> | ||
| {release.tag ? ( | ||
| <A href={`${RELEASES_URL}/tag/${release.tag}`}>{release.tag}</A> | ||
| ) : ( | ||
| 'Unreleased' | ||
| )} | ||
| </H3> | ||
| <ul> | ||
| {release.entries.map(entry => ( | ||
| <li key={entry.pr}> | ||
| {entry.type}: {entry.summary} ( | ||
| <A href={`https://github.com/raystack/apsara/pull/${entry.pr}`}> | ||
| #{entry.pr} | ||
| </A> | ||
| ) | ||
| </li> | ||
| ))} | ||
| </ul> | ||
| </section> | ||
| ))} | ||
| <p> | ||
| See <A href={RELEASES_URL}>GitHub Releases</A> for every release. | ||
| </p> | ||
| </> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Fetch the release tags even when
v1.0.0exists.If a checkout has
v1.0.0but lacks newer tags, this condition skips the fetch.readChangelogthen treats commits from those releases as “Unreleased” because it builds ranges from the available tags. Fetch tags before the build, and complete shallow history when necessary, so the published changelog uses the correct release boundaries.🤖 Prompt for AI Agents