Alt text for images in posts
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- accessibility, full-stack
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 6
- Forks
- 6
- Merge medio
- 1 h 59 min
- PR fusionados (30 d)
- 59
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Haseeb-MernStack/commune
-
enhancement good first issue web
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Haseeb-MernStack/commune#141 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Haseeb-MernStack/commune#138 ·
Los mantenedores suelen responder en 1 día
-
api good first issue tests
Dificultad 2/5 Medio día Aptitud para principiantes 72/100
Haseeb-MernStack/commune#132 ·
Los mantenedores suelen responder en 1 día
-
ci good first issue tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Haseeb-MernStack/commune#133 ·
Los mantenedores suelen responder en 1 día
-
accessibility good first issue web
Dificultad 2/5 Medio día Aptitud para principiantes 74/100
Haseeb-MernStack/commune#117 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Haseeb-MernStack/commune
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
cursor/community-plugins#583 ·
Los mantenedores suelen responder en 1 día
-
A model answer with prose after its fenced JSON is rejected as NOT_JSONPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoafk-ok importer size:S
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
enorm-labs/event-junkie#5404 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Wavvon/Wavvon-clients#493 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
answerLoops/answerLoops#679 ·
Los mantenedores suelen responder en 1 día