excerpt 1
"San Francisco segregated Chinese children in a separate elementary school for decades. The Chinese community successfully resisted an attempt to segregate high school in 1900. In 1929 when the Chinese school was over capacity the school board agreed to admit Chinese children to other public elementary schools. Some other California cities never segregated Chinese students. Segregation was formally banned in 1947 by a court ruling on a case about segregated schools for Mexicans, which had only appeared well into the 20th century. "
excerpt 2
"There never would have been a need for a white-owner diner to put up a sign saying "No Chinks Allowed" because no Chinese person would have even considered going to that diner in the first place. Because that would cause trouble, and if there's one thing that's drilled into our heads, it's to keep them down and avoiding causing "trouble."
As for whether they were grouped with white people or black people, the answer is "neither." They were simply ignored, invisible, practically non-existent.