Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add text objects to whiteboard and example drawing

Abierto
#487 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Ethan921001 ya está trabajando en esto.

Desde el 25/10/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Motivation

The whiteboard and example drawing currently support freehand drawing but do not provide a tool for entering text.
During an interview, candidates may need to label diagram nodes, annotate arrows, or write short notes such as variable names and time complexity. Writing these labels freehand with a mouse can be slow and difficult to read.

Proposed feature

Add a Text tool to both the whiteboard interview and the example drawing panel so candidates can place typed labels alongside their drawings.

Expected user flow

  1. The candidate selects the Text tool in the drawing toolbar.
  2. The candidate clicks or taps the desired location on the canvas.
  3. A text input appears and receives keyboard focus.
  4. The candidate types a label, optionally using multiple lines.
  5. The candidate confirms the input to place the text on the canvas, or cancels without changing the drawing.
  6. The text appears in the board image shared with the interviewer and in the session replay.

For example, a candidate drawing a linked list could label nodes head and tail, then add O(n) time beside the diagram.

Initial scope

  • Support text entry in both drawing surfaces.
  • Support multiline text and the selected drawing color.
  • Include text additions in the existing Undo history.
  • Support Redo where it is already available.
  • Make Clear remove both text and freehand strokes, with Undo restoring them.
  • Include text in exported board images and recording/replay operations.

Moving, resizing, and editing existing text objects could be considered as follow-up improvements.

Acceptance criteria

  • A candidate can add a typed label to either drawing surface.
  • Cancelling text entry leaves the canvas and its history unchanged.
  • Text and freehand strokes work together correctly with Undo and Clear.
  • The interviewer receives a board image containing the text.
  • Replaying the recorded operations reproduces the text and subsequent edits.
  • Existing pen and eraser interactions continue to work.
Lenguaje dominante
Rust
Estrellas
177
Forks
100
Merge medio
1 d 9 h
PR fusionados (30 d)
209

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sysprog21/codetrial

Todos los issues de sysprog21/codetrial

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.