Skip to content

Conversation

@yuito-it
Copy link

@yuito-it yuito-it commented Nov 19, 2025

What

publicディレクトリ内の全てのディレクトリを再起的に読み込み、記事を管理しやすくした。

How

Why

下記ディスカッションを参照。

Qiita CLIでpublic配下にファイルをいっぱい置いておくのは記事数が多くなってくると少ししんどいものがあるなと...
public配下であれば、その配下のディレクトリも再帰的に読み込んで欲しいなと思いました。
(特にアドカレを毎年完走するとなると、一年で少なくとも25記事以上増えていくわけで、流石に辛いなと)

Originally posted by @yuito-it in increments/qiita-discussions#1031

Refs

@yuito-it yuito-it marked this pull request as ready for review November 19, 2025 06:36
@yuito-it yuito-it requested a review from a team as a code owner November 19, 2025 06:36
@yuito-it yuito-it requested review from Copilot and kimkim0814 and removed request for a team November 19, 2025 06:36
@yuito-it yuito-it changed the title [WIP] publicディレクトリ内でディレクトリ分けができるようにする(ディレクトリを再起的に読み込む) publicディレクトリ内でディレクトリ分けができるようにする(ディレクトリを再起的に読み込む) Nov 19, 2025
Copilot finished reviewing on behalf of yuito-it November 19, 2025 06:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds recursive directory support for the public directory in Qiita CLI, allowing users to organize articles in nested folders for better management. This addresses the pain point of managing large numbers of articles in a flat structure.

Key Changes:

  • Modified file system operations to recursively read directories instead of just the top level
  • Updated the preview UI to display articles in a hierarchical tree structure based on folder organization
  • Fixed React dependency version mismatches in package.json

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
yarn.lock Updated React, React DOM, and related dependencies from 19.1.x to 19.2.x versions with matching scheduler updates
package.json Updated React and @types/react-dom version requirements to ^19.1.13 for consistency
src/server/app.ts Added chokidar watch options to ignore node_modules and .git directories during development
src/server/api/items.ts Added parent property to item responses, calculated from file path segments
src/lib/view-models/items.ts Added parent: string[] field to ItemViewModel type definition
src/lib/file-system-repo.ts Changed parseFilename to preserve directory paths, added recursive readdir option, and filtered out .remote directory
src/client/components/SidebarArticles.tsx Implemented tree-based rendering of articles with nested folder support and visual guide lines for hierarchy

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

yuito-it and others added 4 commits November 19, 2025 16:09
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@acronhub
Copy link
Contributor

@yuito-it
Code owners による自動割り当てのため、一旦レビュアーを解除させていただきます。
改めて適切なタイミングでレビュアーを指定いたしますので、お待ちいただけますと幸いです 🙇

@acronhub acronhub removed the request for review from kimkim0814 November 20, 2025 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants