These are chat archives for developit/peach.cool

11th
Jan 2016
Jason Miller
@developit
Jan 11 2016 02:31
'lo
Elliott Kember
@elliottkember
Jan 11 2016 02:32
hey man
Jason Miller
@developit
Jan 11 2016 03:13
about to publish this api client
I probably went with the wrong network library, it's not universal
Elliott Kember
@elliottkember
Jan 11 2016 03:25
nice!
I'm putting my electron app together
Jackson Palmer
@ummjackson
Jan 11 2016 03:27
howdy
i'm using electron menu-bar
Elliott Kember
@elliottkember
Jan 11 2016 03:27
@ummjackson hi! saw your app
Jackson Palmer
@ummjackson
Jan 11 2016 03:27
the code is a mess haha :)
what are you using for the web view inside Electron?
Elliott Kember
@elliottkember
Jan 11 2016 03:28
react / redux
Jackson Palmer
@ummjackson
Jan 11 2016 03:28
nice, i would have gone that route but i'm still not well versed enough in React
got any code up yet?
Jason Miller
@developit
Jan 11 2016 03:29
comin
Jackson Palmer
@ummjackson
Jan 11 2016 03:30
@developit - how many endpoints do you have implemented?
Elliott Kember
@elliottkember
Jan 11 2016 03:30
it's on the way
Jason Miller
@developit
Jan 11 2016 03:30
mainly the ones in your doc
Elliott Kember
@elliottkember
Jan 11 2016 03:30
I need more peach friends
Jason Miller
@developit
Jan 11 2016 03:30
plus I have it swapping the Authorization header out
lol I have 0
username is @developit
Elliott Kember
@elliottkember
Jan 11 2016 03:30
added
Jackson Palmer
@ummjackson
Jan 11 2016 03:30
so i've been just proxying the entire API through
Jason Miller
@developit
Jan 11 2016 03:31
ditto
Elliott Kember
@elliottkember
Jan 11 2016 03:31
same
Jason Miller
@developit
Jan 11 2016 03:31
i have it set up so when they add CORS I can swap
Elliott Kember
@elliottkember
Jan 11 2016 03:31
copied your approach with http-proxy
Jackson Palmer
@ummjackson
Jan 11 2016 03:31
yep, that's the plan
i'm interested in if they'll actually enable CORS though, will see
Elliott Kember
@elliottkember
Jan 11 2016 03:31
no wait, scrap that I just used http
yeah hope so
Jackson Palmer
@ummjackson
Jan 11 2016 03:32
it's a pretty basic API underneath it all, the magic actually happens at the client level with the magic words
which seems to be baked in and not server API as such
for instance, the gif magic word directly fires requests to giphy.com rather than to the peach API
@elliottkember - if you're building this thing properly in React I might repurpose mine to a simple activity feed / notifier and then contribute to yours if you open source it
in the meantime i'm going to document some more endpoints... @developit - any parts of the app in particular you're interested in
Elliott Kember
@elliottkember
Jan 11 2016 03:35
Screen Shot 2016-01-10 at 7.34.48 PM.png
Jackson Palmer
@ummjackson
Jan 11 2016 03:35
nice! so one thing that i've realized is that i don't think there is any pagination support
i need to try and figure that one out with someone with a huge feed
Elliott Kember
@elliottkember
Jan 11 2016 03:37
haha
now I just gotta figure out a cool desktop UI for this baby
I <3 redux
Jackson Palmer
@ummjackson
Jan 11 2016 03:38
Redux seems p. cool
i'd recommend Semantic UI for the CSS framework, it has a lot of the UI concepts built in and will save time
then we can theme it Peach style
you get the whole Card concept out of the box
Jason Miller
@developit
Jan 11 2016 03:42
I wonder if the giphy stuff is client-side
alright it's officially released
Jackson Palmer
@ummjackson
Jan 11 2016 03:42
giphy is entirely client side
Jason Miller
@developit
Jan 11 2016 03:42
nice.
I'll be out for a bit
Jackson Palmer
@ummjackson
Jan 11 2016 03:45
those idea things with the light bulb are also client side
HOLY CRAP THERE IS NO PAGINATION
Elliott Kember
@elliottkember
Jan 11 2016 03:53
@developit added you
haha what
how do they paginate then
Jackson Palmer
@ummjackson
Jan 11 2016 03:53
they do not paginate
if you have 50, 100, 150 posts it doesn't matter
they spit back your entire history in JSON
including any post comments
wow they off load so much to the client, it's kinda crazy
at first i was wondering whether it was a hybrid app using a web view, but it most definitely is not...
Elliott Kember
@elliottkember
Jan 11 2016 04:02
iOS is good at loading JSON no?
but yeah, that's silly
v1.1 incoming!
I figure they just did as little as they had to for launch ;)
I'll look into Semantic UI. I've never used a CSS framework. I'll probably just do an outline for how I want the UI to work and get someone to style it.
kinda want to do a new UI for it. like http://carouselle.surge.sh was for instagram
hah, I must've deleted one of my instagrams
Jackson Palmer
@ummjackson
Jan 11 2016 04:05
interesting...
yeah they prototyped the thing on Parse
and then migrated to a nginx / Node stack to avoid the cost of launching something on Parse
Elliott Kember
@elliottkember
Jan 11 2016 04:10
well there you go
Jackson Palmer
@ummjackson
Jan 11 2016 04:11
hehe there is no way they're going to release a web version (or Android version) in the short term
it'd require a lot of work to make the real magic happen
like another 5+ endpoints
Jason Miller
@developit
Jan 11 2016 13:05
yay
@ummjackson any chance you discovered the endpoint for accepting friend requests?
eyo, you did
huzzah.
Jason Miller
@developit
Jan 11 2016 14:17
@ummjackson I might want to co-opt your lovely markdown overview for this readme :P
Jackson Palmer
@ummjackson
Jan 11 2016 17:30
Go for it :smile:
Jason Miller
@developit
Jan 11 2016 18:15
hmm.
/stream/activity is a 404 for me
ah - it's actually /activity
Jason Miller
@developit
Jan 11 2016 18:58
Screen Shot 2016-01-11 at 1.56.07 PM.png
woot.
Jackson Palmer
@ummjackson
Jan 11 2016 19:22
Very cool
@developit - if my documentation needs updating just submit a revision on the Gist
Jason Miller
@developit
Jan 11 2016 19:24
will do
looking at /post now
Jackson Palmer
@ummjackson
Jan 11 2016 20:41
if you are looking for the /post message types
Jason Miller
@developit
Jan 11 2016 20:41
indeed
lol
Jackson Palmer
@ummjackson
Jan 11 2016 20:41
post a bunch of different types to your own stream
then load your own stream via the API
Jason Miller
@developit
Jan 11 2016 20:42
yeah i was going to do that haha
Jackson Palmer
@ummjackson
Jan 11 2016 20:42
and look at the message arrays
:)
Jason Miller
@developit
Jan 11 2016 20:42
they ditch invalid ones
ive been able to post text so far
have activity stream
profile
etc
looking pretty good!
only pain so far has been material-design-lite :/
Jackson Palmer
@ummjackson
Jan 11 2016 20:42
yeah
i'm writing the CSS from scratch because frameworks get annoying
Jason Miller
@developit
Jan 11 2016 20:43
I should have just stuck with ionic.
I know this sounds weird, but for being an angular framework, their raw CSS is actually pretty usable
mdl is just... annoying. BEM is annoying.
Jackson Palmer
@ummjackson
Jan 11 2016 20:45
yeah Ionic ain't bad
how frequently are you polling the API?
Jason Miller
@developit
Jan 11 2016 20:46
30s
Jackson Palmer
@ummjackson
Jan 11 2016 20:46
no WS unfortunately
Jason Miller
@developit
Jan 11 2016 20:46
I'll be polling /activity/isUnread
its a boolean indicating if there is new stuff
seems reasonable
the whole push-peek thing
Jackson Palmer
@ummjackson
Jan 11 2016 20:47
that's only unread activity right
Jason Miller
@developit
Jan 11 2016 20:47
or in this case slow-poll-peak
Jackson Palmer
@ummjackson
Jan 11 2016 20:47
not unread posts on someone's stream
Jason Miller
@developit
Jan 11 2016 20:47
it doesnt even return a stream
it should be unreads in /activity
which is anyone you follow
(right?)
Jackson Palmer
@ummjackson
Jan 11 2016 20:48
nope, /activity doesn't include people you follow posting stuff
it's only direct interactions
Jason Miller
@developit
Jan 11 2016 20:48
oh
:(
having never even seen peach.cool on iOS - do they show an overall "everything" stream??
(is that /connections/explore?)
Jackson Palmer
@ummjackson
Jan 11 2016 21:06
yep that's /explore
Jason Miller
@developit
Jan 11 2016 21:06
ah ok
Jackson Palmer
@ummjackson
Jan 11 2016 21:06
basically a list of your contacts
and then if they have an unreadCount
Jason Miller
@developit
Jan 11 2016 21:06
and thus their streams
Jackson Palmer
@ummjackson
Jan 11 2016 21:06
yep
then you click into their streams
Jason Miller
@developit
Jan 11 2016 21:06
man this API is open ended :P
Jackson Palmer
@ummjackson
Jan 11 2016 21:06
one by one
Jason Miller
@developit
Jan 11 2016 21:06
jeez
in the app its like that?
Jackson Palmer
@ummjackson
Jan 11 2016 21:06
yep
Jason Miller
@developit
Jan 11 2016 21:06
wow
Jackson Palmer
@ummjackson
Jan 11 2016 21:07
you get the bottom of a person's stream and it says "up next: name"
if there is anybody left you haven't seen updates from
Jason Miller
@developit
Jan 11 2016 21:07
what a weird phenomenon
Jackson Palmer
@ummjackson
Jan 11 2016 21:07
otherwise it'll say "all caught up"
it's a strange UX pattern but makes it feel more personable
i like it
Jason Miller
@developit
Jan 11 2016 21:07
i guess i should probably use it to see
lol
Jackson Palmer
@ummjackson
Jan 11 2016 21:08
haha perhaps
you're not bought into the iDevice ecosystem?
Jason Miller
@developit
Jan 11 2016 21:09
i have most devices
switched to android last year (from blackberry...)
Jackson Palmer
@ummjackson
Jan 11 2016 21:11
i used to be an Android fan boy for many years
but love my iPhone 6, it's just simple and works
Elliott Kember
@elliottkember
Jan 11 2016 22:40
:wave:
Jason Miller
@developit
Jan 11 2016 22:46
i need to do the whole explore thing
is that what you see when you first sign in?
curious about wave types