These are chat archives for developit/peach.cool

12th
Jan 2016
Jason Miller
@developit
Jan 12 2016 00:22
Any word on how to upload avatars?
Jackson Palmer
@ummjackson
Jan 12 2016 00:33
oh i need to document that one
wave types are just the wave types in the iOS app
lowercase
Jason Miller
@developit
Jan 12 2016 01:14
i really need to see this app
lol
Jason Miller
@developit
Jan 12 2016 01:28
hmm
can't get connection requests to work
weird.
POST /stream/n/c0e01c2fe52d45a8bcb0f10600715792/connection gives an error
(producthunt's id)
oh nvm, im an idiot. its username.
what do they call the screen/tab/view where you can see waves and stuff
Jackson Palmer
@ummjackson
Jan 12 2016 01:47
activity
so the Change Profile Photo isn't going to be possible
it does a PUT
to https://v1.peachapi.com/stream/avatarSrc
Jason Miller
@developit
Jan 12 2016 01:48
going to deploy this
Jackson Palmer
@ummjackson
Jan 12 2016 01:48
interested to check it out
Jason Miller
@developit
Jan 12 2016 01:48
hmm
how come that makes it impossible?
Jackson Palmer
@ummjackson
Jan 12 2016 01:48
it sends the body of
Jason Miller
@developit
Jan 12 2016 01:48
ah.
Jackson Palmer
@ummjackson
Jan 12 2016 01:48
ha, there is my face
Jason Miller
@developit
Jan 12 2016 01:48
they are uploading to S3 first
Jackson Palmer
@ummjackson
Jan 12 2016 01:49
so the app handles the upload internally
Jason Miller
@developit
Jan 12 2016 01:49
hmm
I wonder if it accepts any url...
;)
Jackson Palmer
@ummjackson
Jan 12 2016 01:49
about to replay it and find out
Jason Miller
@developit
Jan 12 2016 01:49
:D
do you have that simple express proxy handy?
mine is in webpack
Jackson Palmer
@ummjackson
Jan 12 2016 01:50
i replay my API requests via mitmproxy
IT ACCEPTS ANY URL
and you can change the content at the URL too
wow
Jason Miller
@developit
Jan 12 2016 01:52
lol
amazing.
solves that i guess
data URI? :D
Jackson Palmer
@ummjackson
Jan 12 2016 01:53
blob
so it supports gifs
Jason Miller
@developit
Jan 12 2016 01:53
nice
Jackson Palmer
@ummjackson
Jan 12 2016 01:53
they won't render in the official app
but they render in mine :)
Jason Miller
@developit
Jan 12 2016 01:54
:P
Jackson Palmer
@ummjackson
Jan 12 2016 01:54
how much functionality is in your app?
Jason Miller
@developit
Jan 12 2016 02:02
stream, explore, profiles, card types, settings
needs a shitton of work but its sortof functional
Jackson Palmer
@ummjackson
Jan 12 2016 02:18
very nice
Angular on the backend?
looking forward to seeing the code :)
its up
sorry forgot to link
git clone peach-web && cd peach-web
npm install
PORT=9090 npm run dev
Jackson Palmer
@ummjackson
Jan 12 2016 02:22
nice!!!
code is messy honestly
I can't afford to care too much in my spare time haha
Jackson Palmer
@ummjackson
Jan 12 2016 02:23
yeah true
i'm the same...
hard to draw the line with side projects
Jason Miller
@developit
Jan 12 2016 02:28
yeah.
Jackson Palmer
@ummjackson
Jan 12 2016 02:29
haha i've taken that way too far before... these days i just do fun things where i learn something
Jason Miller
@developit
Jan 12 2016 02:29
mhmm
Jackson Palmer
@ummjackson
Jan 12 2016 02:40
I find it hilarious that they don't handle default avatars server-side
like the client has to check if it's null and then rely on the standard
Jason Miller
@developit
Jan 12 2016 02:41
lol yeah
the "api" is kinda just a data dump
Jackson Palmer
@ummjackson
Jan 12 2016 02:52
basically
a dumb api
which is kinda nice actually
did you end up finding all the message types?
Jason Miller
@developit
Jan 12 2016 03:32
I only implemented text for send
i added 5 or 6 types for display
Jackson Palmer
@ummjackson
Jan 12 2016 03:55
blob
Jackson Palmer
@ummjackson
Jan 12 2016 04:11
it works!!
Jackson Palmer
@ummjackson
Jan 12 2016 05:59
so i have a sneaking suspicion
that it deletes history beyond 50 posts
because i'm pulling the ProductHunt stream and it's been capped at an array of 50 items all day
even in the iOS app, the old ones disappear
Jason Miller
@developit
Jan 12 2016 15:03
ditto
I think that's their "paging"
lol
Jackson Palmer
@ummjackson
Jan 12 2016 18:12
yeah i tweeted with dom
when viewing a friend's stream, it's limited to their last 50 posts
when viewing your own stream, it seems there is a hidden "archive" API that isn't yet implemented in iOS
i'll try and find the endpoint tonight
how are you guys handling the scrolling situation? because it's not latest at top
it's latest at bottom and scroll to bottom
then it lazy loads are you scroll back up
Jason Miller
@developit
Jan 12 2016 18:25
weird
that's how it behaves in the app? I hadn't even thought to check if the messages array was reversed
Jackson Palmer
@ummjackson
Jan 12 2016 19:25
yeah
so the last item in the array is the one you scroll focus to
but i can't figure out a good way with JS to replicate this
it's like reverse rendering haha
Jason Miller
@developit
Jan 12 2016 19:27
.parent, .parent > * { transform: scaleY(-1); }
but htats gross
sounds like manually re-implementing scrolling would be the only option
or building a scroll-list kind of thing
position:absolute; within position:absolute;, defaults to bottom:0; and then resize a wrapper element to hijack native scrolling
Jackson Palmer
@ummjackson
Jan 12 2016 19:34
yeah, yikes
currently i go new @ top
Jason Miller
@developit
Jan 12 2016 19:47
that seems reasonable
honestly I don't want to reproduce the iOS UI too much :P
just want the content
Jackson Palmer
@ummjackson
Jan 12 2016 19:55
fair enough
Jackson Palmer
@ummjackson
Jan 12 2016 20:21
hmm i wonder if Ionic has that built in
Jackson Palmer
@ummjackson
Jan 12 2016 20:27
you're using angular, here you go: https://github.com/LightZam/zInfiniteScroll
Jackson Palmer
@ummjackson
Jan 12 2016 20:38
that being said, it does feel like an out of place UI paradigm... hmm
i might stick to top down
Elliott Kember
@elliottkember
Jan 12 2016 21:54
so, fun question
are people using Peach?
Jason Miller
@developit
Jan 12 2016 21:54
I'm.... not sure
I hate angular :P
I'm sticking with top down, just confirmed my streams are just reversed
ionic's scrolling is actually really terrible
thankfully when using it as a pure CSS framework, that junk isn't included :P
Jason Miller
@developit
Jan 12 2016 23:11
any idea how posts with file/pic uploads work?
Jackson Palmer
@ummjackson
Jan 12 2016 23:17
nope, need to further debug that stuff
because obviously the image gets to S3 somehow
image messages work the same as avatarSrc, it just sends a src