Romilda Vane is a Gryffindor student at Hogwarts, one year above Ginny Weasley and in Harry Potter's year. She's known for:
Harry rejects her advances. She's last seen crying in the girls' bathroom after Harry saves Ginny from the diary (a timeline compression in the question—the diary is Chamber of Secrets; the bathroom scene is likely post-battle in Half-Blood Prince).
She doesn't appear in Deathly Hallows but is mentioned as a Dumbledore's Army member. Actress Anna Shaffer portrays her in the films.