ProjectTech4DevAI / ProjectTech4DevAI/kaapi-frontend
Chat: Update primary button style
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1
- Forks
- 0
- Merge medio
- 10 h 40 min
- PR fusionados (30 d)
- 4
Descripción
Is your feature request related to a problem?
The "New chat" button in the Chat page header does not appear as a proper primary action, rendering instead as a faint outline style. This diminishes its visibility and importance as an action.
Describe the solution you'd like
Update the button to use the shared Button component with the primary variant:
- Replace the current
<button>with the<Button>component fromapp/components/ui/Button.tsx - Ensure it is consistent with the rest of the app's UI
Original issue
Problem
The "New chat" button in the Chat page header does not look like a proper primary action — it currently renders as a plain <button> with hand-rolled outline-style classes instead of using the shared Button component.
File: app/(main)/chat/page.tsx (~line 464-470)
<button
type="button"
onClick={handleNewChat}
className="px-3 py-1.5 rounded-full text-xs font-medium border border-border bg-bg-primary text-text-primary hover:bg-neutral-50 transition-colors cursor-pointer"
>
New chat
</button>
This mimics the outline variant of app/components/ui/Button.tsx, making it look faint/secondary.
Expected
Use the shared Button component with the primary (default) variant so "New chat" reads as a proper button, consistent with the rest of the app:
<Button onClick={handleNewChat} size="sm">New chat</Button>
Screenshot (current, faint outline look)
Button top-right blends into the header instead of standing out as a primary action.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
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.
Línea de trabajo
Comienza en app/(main)/chat/page.tsx alrededor de las líneas 464-470 y compara el botón existente con app/components/ui/Button.tsx. Reemplaza el botón implementado manualmente por el Button compartido usando la variante primary y size="sm", conservando handleNewChat. Se considera terminado cuando la acción New chat usa el estilo primary compartido y destaca de forma coherente en el encabezado de la página Chat.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Estado de actividad
- Activo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 90/100