-
Notifications
You must be signed in to change notification settings - Fork 88
feat(ids): serialize help-center articles as article_ #533
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
Merged
mortondev
merged 16 commits into
fix/widget-new-post-open
from
feat/article-typeid-prefix
Sep 10, 2026
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7012aa6
feat(ids): serialize help-center articles as article_
mortondev 66b8ce2
merge fix/widget-new-post-open into feat/article-typeid-prefix
mortondev b1a091d
fix(ids): match legacy kb_article_ text in citations and redirects
mortondev 159bba7
fix(ids): fold kb_article_ citations before the top-cited limit
mortondev 3bcf174
Merge remote-tracking branch 'origin/fix/widget-new-post-open' into f…
mortondev 0dd1386
fix(ids): canonicalize article TypeIDs and batch redirect-rule labels
mortondev 60ccffa
fix(ids): keep isTypeId exact so alias narrowing stays sound
mortondev 3da8e1d
Merge remote-tracking branch 'origin/fix/widget-new-post-open' into f…
mortondev 5c5eff3
refactor(ids): reuse core TypeID helpers in schema and isTypeId
mortondev f3e755a
merge(widget): bring article TypeID prefix onto latest open() identit…
mortondev ac6c5e9
merge(widget): bring article TypeID prefix onto latest open() review …
mortondev 546f9da
merge(widget): bring article TypeID prefix onto latest open() abort/r…
mortondev 2edf4ca
merge(widget): bring article TypeID prefix onto latest Ask AI review …
mortondev ea909e9
merge(widget): bring article TypeID prefix onto Ask AI typecheck fix
mortondev b39fdbb
fix(help-center): canonicalize legacy admin article route IDs
mortondev 8df31fd
merge(widget): bring article TypeID prefix onto latest identity revie…
mortondev 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
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
17 changes: 17 additions & 0 deletions
17
apps/web/src/lib/client/queries/__tests__/help-center-keys.test.ts
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,17 @@ | ||
| import { describe, expect, it } from 'vitest' | ||
| import { generateId } from '@quackback/ids' | ||
| import { helpCenterKeys } from '../help-center' | ||
|
|
||
| describe('helpCenterKeys.articleDetail', () => { | ||
| it('uses the same cache key for article_ and retired kb_article_ ids', () => { | ||
| const canonical = generateId('article') | ||
| const legacy = `kb_article_${canonical.slice('article_'.length)}` as typeof canonical | ||
| expect(helpCenterKeys.articleDetail(legacy)).toEqual(helpCenterKeys.articleDetail(canonical)) | ||
| expect(helpCenterKeys.articleDetail(canonical)).toEqual([ | ||
| 'help-center', | ||
| 'articles', | ||
| 'detail', | ||
| canonical, | ||
| ]) | ||
| }) | ||
| }) |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.