A couple of days for Gdansk is good. 3 if you really want to see everything. Warsaw is worth a visit during the rest of the time.
Jelitkowo or Brzeźno
Pleasant enough, but essentially rather boring suburbs with beaches.
Gdynia
A nice but industrial town, Sopot too, but not industrial. You can see both in a day.