Boil the potatoes for 10-15 mins until tender. Add the broccoli for the last 2 mins of cooking. Drain and thickly slice the potatoes.
Meanwhile, put the green beans and mixed beans in a pan and cover with water. Bring to a simmer and cook for 3-4 mins, or until the green beans are tender. Drain and leave to steam-dry in the pan.
Heat the grill to high. Heat 2 tsp of the oil in a medium non-stick frying pan and fry the garlic for 1 min, then add the chilli flakes or cumin or fennel seeds and cook for 1 min more. Add the potatoes, broccoli and seasoning, and toss to coat in the flavoured oil.
Beat the eggs in a jug, season and pour over the potato mix. Cook over a medium heat for 2 mins, or until the base is set. Dollop teaspoons of the ricotta on top, then grill for 4-5 mins until cooked through.
Meanwhile, drizzle another 1 tsp oil over the bean mixture with the vinegar. Stir in the basil, if using, and season. Slice the frittata into four wedges, and serve two with half the bean salad on the side. Chill the remaining wedges and bean salad to use in the lunchboxes below.