Alt text for images in posts
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
- Ambito
- accessibility, full-stack
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 6
- Fork
- 6
- Merge medio
- 1h 59m
- PR unite (30g)
- 59
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Haseeb-MernStack/commune
-
enhancement good first issue web
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Haseeb-MernStack/commune#141 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Haseeb-MernStack/commune#138 ·
I maintainer di solito rispondono entro 1 giorno
-
api good first issue tests
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
Haseeb-MernStack/commune#132 ·
I maintainer di solito rispondono entro 1 giorno
-
ci good first issue tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Haseeb-MernStack/commune#133 ·
I maintainer di solito rispondono entro 1 giorno
-
accessibility good first issue web
Difficoltà 2/5 Mezza giornata Idoneità per principianti 74/100
Haseeb-MernStack/commune#117 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Haseeb-MernStack/commune
Issue simili
-
[UI] Guard webApis against undefined window in SSR environmentsForse già presa @madhavzanwar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
headroomlabs-ai/headroom#4992 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
paperclipai/paperclip#22575 ·
I maintainer di solito rispondono entro 1 giorno
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
lingdojo/kana-dojo#34502 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
nikhilb2/simple_invoicing#935 ·