I am an undergraduate student (in maths) looking for a topic and supervisor for my thesis.
What criteria should I use to judge whether a project/supervisor combination will make for a good thesis and productive experience? Especially in the context of preparing for graduate school. (I thought about asking separate questions for projects and supervisors, but they seem to be so closely linked that it makes more sense to have them together)
Conversely, what are red flags/pitfalls I should look out for and how do I avoid them?