Two components of the boundary of \(\text \textbf{I}_3\). (Deux composantes du bord de \(\text \textbf{I}_3\)) Cohomological Hall algebras, semicanonical bases and Donaldson-Thomas invariants for 2-dimensional Calabi-Yau categories (with an appendix by Ben Davison) 