Repository navigation
feat(feed): advertise company and category RSS feeds for autodiscovery - #75
Merged
Merged
Conversation
The feed page only declared the tag feed as an alternate. Filtering by a single company or a category now also advertises /companies/<slug>/feed.xml or /feed.xml?category=, so RSS readers pick up the feed of the list being viewed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DwThJmLcy2KKjqvHXUX53z
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
iakito-dev
enabled auto-merge (squash)
November 13, 2026 23:40
This branch was successfully deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🏭 ソフトウェアファクトリーによる自動 PR
企業やカテゴリで絞り込んだフィードを開いたとき、その一覧に対応する公開 RSS を
<link rel="alternate">で宣言し、RSS リーダーの自動検出で見つかるようにします。選んだ理由: サンドボックスで公開フィード(
/feed.xml・企業別・タグ別・カテゴリ別)と sitemap がすべて正しい XML を返すことを確かめた後、各一覧の<head>を見比べました。/?tag=LLMではタグ別フィードが宣言されるのに、/?company=mercariと/?category=aiでは全体フィードしか出ていませんでした。企業別フィード(/companies/<slug>/feed.xml)は購読者がいるため残してあり(ADR-0048)、カテゴリ別フィード(/feed.xml?category=)も実装済みなのに、フィード画面からは見つけられない状態でした。「この会社のブログだけ RSS リーダーで追いたい」読者が、絞り込んだ画面の URL をそのまま RSS リーダーに貼れば購読できるようになります。変更内容
app/_feed/feed-alternates.ts(新規・純関数): 絞り込みから自動検出用の RSS 一覧を作る/feed.xml?category=&tag=(併用時は 1 本にまとめる。不正なカテゴリキーは無視)/companies/<slug>/feed.xml(企業フィードはタグ・カテゴリで絞れないので別の行)/feed.xmlを最後に置くapp/(app)/page.tsxのgenerateMetadataで使う。企業名は見出し・タブタイトル用に既に引いているsingleCompanyの結果を流用するので、DB アクセスは増えないdocs/features/feed.mdを更新確認結果(サンドボックスの HTML の
<head>):/?company=mercari/companies/mercari/feed.xml(mercari の新着)+/feed.xml/?category=ai&tag=LLM/feed.xml?category=ai&tag=LLM(AI・機械学習 #LLM の新着)+/feed.xml/?tag=LLM/feed.xml?tag=LLM(#LLM の新着)+/feed.xml(従来どおり)//feed.xmlのみ(従来どおり)宣言先のフィードがそれぞれ記事を返すことも確認した(
?category=ai&tag=LLM19 件、/companies/mercari/feed.xml6 件)。影響範囲
/の<head>のみ(見た目の変化なし。そのためスクリーンショットは無し)確認したこと
bun run check(lint / depcruise / typecheck / test 550 件)とbun run buildが通るdocs/features/feed.mdを更新したapp/_feed→shared/categoriesのみ)bun run scripts/factory-guard.ts --local✓(4 ファイル)AI assist 利用状況
関連 Issue / Discussion
なし
Generated by Claude Code