I'm assuming the district attorney charged you with a felony also known as a "petty (theft) with a prior." But because you're charged with a felony now, that doesn't mean you can't get the charge reduced to a misdemeanor. The offense is called a "wobbler" which means the crime can be charged as a felony or misdemeanor. Since you have no prior records I don't think you'll be charged with a felony or do any jail time, especially since you have demonstrated responsibility and are truly repentant.
Meanwhile, don't discuss this case with anybody except an attorney.