Alt text for images in posts
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
調査の方向性
Start with createPostSchema in packages/shared/src/index.ts, then the Post model in apps/api/src/models/Post.ts, and the image in apps/web/src/components/PostCard.tsx near line 135 where the img alt is set. Add the optional trimmed imageAlt field to the schema and model, return it from the API, and add it to the composer in Composer.tsx. Done when schema tests cover too-long and empty input, the API response includes the field, and the card falls back to the current alt text when it is missing.
索引モデルが issue の本文から書いたものです。
説明
Difficulty: Intermediate · Estimated size: 1 day
Context
Post images get a generic alt text (Image posted by @name), so people who use screen readers cannot tell what the picture shows.
Problem or goal
Let authors describe their image when they post it.
Suggested approach
- Shared: add an optional
imageAlt(max 300 characters) to the create-post schema andPostDTO. - API: store it on
Postand return it. It is not editable if the image is not editable. - Web: an "Add description" field under the image preview in the composer, with a counter. Use it as the
alttext inPostCardand fall back to the current text.
Where to look
apps/web/src/components/Composer.tsxapps/web/src/components/PostCard.tsx(the<img alt>near line 135)packages/shared/src/index.ts(createPostSchema)apps/api/src/models/Post.ts
Acceptance criteria
- A description is optional and trimmed.
- The alt text is escaped by React like any other text.
- Existing posts keep working.
- Tests cover the schema (too long, empty) and the API response.
How to work on it
- Comment here to claim it, so two people do not do the same work.
- Fork the repo and branch from
main(feat/short-nameorfix/short-name). Setup steps are in docs/DEVELOPMENT.md. - Keep the change focused and add tests for backend logic.
- Run
npm run typecheck,npm testandnpm run lintandnpm run formatbefore opening the pull request. - Use a Conventional Commits title (for example
feat(web): add bookmarks). More in CONTRIBUTING.md.
Stuck? Ask in this issue. Questions are welcome.
Generated by Claude Code
- 主要言語
- TypeScript
- スター
- 6
- フォーク
- 6
- 平均マージ
- 1時間 59分
- マージ済み PR(30日)
- 59
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Haseeb-MernStack/commune のほかの issue
-
enhancement good first issue web
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Haseeb-MernStack/commune#141 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Haseeb-MernStack/commune#138 ·
メンテナーはふだん 1 日以内に返信
-
api good first issue tests
難易度 2/5 半日 初心者へのやさしさ 72/100
Haseeb-MernStack/commune#132 ·
メンテナーはふだん 1 日以内に返信
-
ci good first issue tests
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Haseeb-MernStack/commune#133 ·
メンテナーはふだん 1 日以内に返信
-
accessibility good first issue web
難易度 2/5 半日 初心者へのやさしさ 74/100
Haseeb-MernStack/commune#117 ·
メンテナーはふだん 1 日以内に返信
Haseeb-MernStack/commune の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
cursor/community-plugins#583 ·
メンテナーはふだん 1 日以内に返信
-
A model answer with prose after its fenced JSON is rejected as NOT_JSON対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンafk-ok importer size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
enorm-labs/event-junkie#5404 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Wavvon/Wavvon-clients#493 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
answerLoops/answerLoops#679 ·
メンテナーはふだん 1 日以内に返信