As you tell it, the detention after the ticket was not legal. But that hinges on your conclusion that the officer had “no probable cause.” If you are right about that, then the detention violated your rights. However, the cop may have noticed something you weren’t aware of that would have been sufficient probable cause to detain you long enough to bring out the dog, and once the dog hit that may have been sufficient for a further search. In short, the details of what information the cop had matter, and chances are the cop did not discuss all that with you. If your rights were violated you could sue but in a claim under federal law you’d only win nominal damages of $1 unless you can prove you suffered actual damages from it. Texas law likely also only compensates you for actual harm suffered by any illegal detention. You said there was minor damage to the interior of the car. You may be able to sue to recover that if you wish.

