Christians and Jewish readers have not treated Genesis 38 as a simple hero tale or a simple scandal. Judah's sentence is in the text: she was more righteous than he, because Shelah was withheld. Her method was a deception that used a sexual encounter. The chapter ends the sexual relationship ("he knew her again no more") and keeps the children. Deuteronomy 25 later regulates the brother-in-law's duty and gives the widow a public appeal, which this chapter does not yet have.
Calling her Canaanite is a common inference from the setting, not a statement of Genesis. Her father's name is never given. The page leaves her people unnamed.