 <center>_1Ramp is available on [Web](https://alpha.1ramp.io) and [Android](https://bit.ly/1ramp-android)_</center> #### Repository | App | Repo | |------|------| | Web | https://github.com/hapramp/alpha-web | | Android | https://github.com/hapramp/1Rramp-Android | ---- ## 1. The Rating Display Modal in Web App The 1Ramp Android app displays the ratings on a post by clicking on the rating display section on a post. This feature is now also available for the web app. <center></center> ### 1.2. Preparations In order to get started with adding the display modal, I had to make a few changes/additions to the existing project - #### 1.2.1. Allowing `UserAvatar` component without a link The [`UserAvatar`](https://github.com/hapramp/alpha-web/blob/develop/src/components/UserAvatar/index.js) component makes it really easy to add a user's avatar given their username. This component is also rendered in the rating section of a post. In order to make the click consistent throughout the rating section, it was required to be able to remove the link from the `UserAvatar` component. So I introduced a new `prop` to it called `noLink` -  The links can now be safely turned off before adding the `onClick` handle to the rating section. #### 1.2.2. Adding dependencies [`react-custom-scrollbars`](https://github.com/malte-wessel/react-custom-scrollbars) and [`react-modal`](https://github.com/reactjs/react-modal) are the two dependencies which were added to display a decent looking scroll bar and the modal respectively.  ### 1.3. Implementation Details Every post [`ActionBar`](https://github.com/hapramp/alpha-web/blob/develop/src/post/ActionBar/index.js) now has `showPostRatings` in `state` to keep track of whether the overlap is open. The state variable gets set to `true` when a user clicks on the rating and the modal gets displayed. #### 1.3.1. Handling document scroll issue When the ratings in display modal are exhausted, the document below starts scrolling when the user scrolls. To prevent this, `Modal`'s props are used to enable/disable scroll -  #### 1.3.2. Lazy loading ratings for faster rendering Rendering all the votes for posts with a large number of votes makes the app very laggy. To prevent this, `react-infinite-scroller` is used and only the votes in view are rendered -  #### 1.3.3. More Optimizations - Even when the modal is not active, the components inside it are rendered. So I adjusted the code to display no ratings in the beginning. - When watching a list of posts with many votes associated, it becomes ineffective to calculate total `rshares` for each of the posts. So in this case, total `rshares` are calculated only when the modal is displayed -  - Vote values are calculated only when a rating card is rendered. This prevents the overhead of calculating all the vote values at once. ### 1.4. Pull requests - [#139: Add rating display modal](https://github.com/hapramp/alpha-web/pull/139) - [#142: Add comments explaining rating modal behaviour](https://github.com/hapramp/alpha-web/pull/142) ----- ## 2. Image upload in the markdown editor Recently we gave the markdown editor support in the web-app. Now you can upload images using the editor too. <center></center> ### 2.1. Implementation Details The image uploader reuses the `uploadImage` method and `<MediaSelector />` component from the project. Once the media is selected, it inserts the required markdown at the given position in the editor -  ### 2.2. Pull Request - [#141: Add feature to upload image in markdown editor](https://github.com/hapramp/alpha-web/pull/141) ----- ## 3. Land to the last page after logging in Earlier in the web app, users used to land on the home page after logging in. While the expectation should be to land on the page where they started the login process. This has been fixed now, ensuring a better browsing experience in the app. ### 3.1. Implementation Details Using the state argument for SteemConnect's login URL builder, we can specify the redirect page after the authentication is successful. This state is then used in the OAuth callback method to set the route accordingly.  ### 3.2. Pull request - [#140: Use state from steemconnect callback to set route after login](https://github.com/hapramp/alpha-web/pull/140) ----- ## 4. Fix "New on 1Ramp" section in Android The Android app earlier used condenser API to fetch the latest posts by a given tag. The latest changes in the Steem APII rendered it non-functional. To fix this, database API was used instead -  ________________ ## 5. What's next? ### 5.1. Participate in the ongoing contests on 1Ramp  Check out more contests and winners from the previous contests here -- https://alpha.1ramp.io/competitions ### 5.2. We need your feedback What features would you like to use on Steem? What do you think is missing from the 1Ramp platform? Give us your feedback on the [web](https://alpha.1ramp.io) and [Android](https://bit.ly/1ramp-android) applications. We'd love to work on them and build a better platform for creative communities on Steem. ____________ <center></center> ###### [1Ramp](https://1ramp.io) is a Social Media platform for creators (powered by Steem blockchain). On 1Ramp, you can join communities of your interest: Art, Dance, Design, Fashion, Film, Literature, Photography, and Travel and earn rewards for sharing your work. We are on a mission to give all creative communities one stage where you can compete, collaborate, and make good art. ###### 1Ramp is Available on [Google Play](https://play.google.com/store/apps/details?id=com.hapramp~) and [Web](https://alpha.1ramp.io). _____________ <center> ###### Join the conversation on [our Discord](https://discord.gg/c6N9kVM) or write us at [hi@1ramp.io](mailto:hi@1ramp.io)  [Twitter](https://twitter.com/the1ramp) | [Medium](https://medium.com/1ramp) | [Instagram](https://instagram.com/the1ramp) | [Facebook](https://facebook.com/the1ramp)</center>
author | singhpratyush |
---|---|
permlink | 1ramp-updates-see-ratings-markdown-image-upload-and-more |
category | utopian-io |
json_metadata | {"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["utopian-io","development","hapramp","the1ramp","steem"],"users":["48px.png","1ramp.io"],"links":["https://alpha.1ramp.io","https://bit.ly/1ramp-android","https://github.com/hapramp/alpha-web","https://github.com/hapramp/1Rramp-Android","https://github.com/hapramp/alpha-web/blob/develop/src/components/UserAvatar/index.js","https://github.com/malte-wessel/react-custom-scrollbars","https://github.com/reactjs/react-modal","https://github.com/hapramp/alpha-web/blob/develop/src/post/ActionBar/index.js","https://github.com/hapramp/alpha-web/pull/139","https://github.com/hapramp/alpha-web/pull/142"],"image":["https://ipfs.busy.org/ipfs/QmaREWvH5eMq66QZ5m9V9c4vJZtK1pRsRt9aQb47VkXRs1","https://ipfs.busy.org/ipfs/QmPzDQ4KVGcRYqgfUaRrTZfntbfqmh6G7ZhJAM3sKAhedZ","https://ipfs.busy.org/ipfs/QmZWJzD9Kg6odnH5rCWhr6fBG6qG25n66A5PPWioCXMY8M","https://ipfs.busy.org/ipfs/QmZx7HmzPgUTne18q3djYmxwt8QViXNPY5dXHe8M1rzUmZ","https://ipfs.busy.org/ipfs/QmPzhS5f4ziy5vA2EgHqmD9BuoVnv5Zq8FXNryuhsJASMS","https://ipfs.busy.org/ipfs/QmQbqsCJKVKQU1Fn5iBKjLpns381AgXziHwcXfQe2Ny2wG","https://ipfs.busy.org/ipfs/QmdDep8j2ghHpVXnP1Wo48rMwoWZk3vKaCHBRpeoBJioF5","https://ipfs.busy.org/ipfs/QmXtkvP79rYMwRnPhnut9NfqsCmY83AragNZ4FHUHBadBk","https://ipfs.busy.org/ipfs/QmfJLfLcEHMGHhaF81NVYhnJMPbMXvWAYJDxS6EoGugHdM","https://ipfs.busy.org/ipfs/QmTSc8ACEFGbvRj31aNi3iSJgW2p2QsguUJZghgiGioJoi","https://ipfs.busy.org/ipfs/QmaumcQwV69qBk4ZQ6RYHd2fQANNPEsuU6aFVU6jN59SXw","https://ipfs.busy.org/ipfs/QmQNNYsz4a19f8pnsQNiAfe4X27yd4w1w6qjcdau2zPQfk","https://ipfs.busy.org/ipfs/QmVsvgkVmbc8tzrNR7LvyAAaWyCw8KpUCTK9uHkQ8bVSXw","https://ipfs.busy.org/ipfs/QmNTCSNLxiuexTZ5Ry21jXWk9cayMBEp5yaikTb2RXJA9g"]} |
created | 2019-01-23 18:22:18 |
last_update | 2019-01-23 18:22:18 |
depth | 0 |
children | 6 |
last_payout | 2019-01-30 18:22:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 29.185 HBD |
curator_payout_value | 9.308 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 7,323 |
author_reputation | 7,035,648,262,478 |
root_title | "1Ramp Updates -- See ratings, markdown image upload and more" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,827,034 |
net_rshares | 78,663,386,875,473 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
tombstone | 0 | 4,889,433,057,505 | 21.32% | ||
eforucom | 0 | 30,741,855,127 | 1.5% | ||
miniature-tiger | 0 | 133,333,292,266 | 50% | ||
jga | 0 | 3,248,374,304 | 26.65% | ||
codingdefined | 0 | 23,307,598,066 | 20% | ||
espoem | 0 | 91,731,607,989 | 48.16% | ||
mcfarhat | 0 | 38,078,237,366 | 24.08% | ||
myjourney | 0 | 8,757,102,752 | 100% | ||
utopian-io | 0 | 71,274,810,977,208 | 53.31% | ||
red-rose | 0 | 384,263,320 | 100% | ||
jaff8 | 0 | 109,536,119,683 | 60.2% | ||
newsrx | 0 | 172,265,627 | 11.3% | ||
shreya26 | 0 | 450,025,465 | 100% | ||
singhpratyush | 0 | 1,897,136,004 | 100% | ||
amosbastian | 0 | 160,136,597,882 | 60.2% | ||
tdre | 0 | 80,176,818,444 | 100% | ||
deltorofrancisco | 0 | 3,402,848,956 | 11% | ||
jjay | 0 | 501,385,614 | 100% | ||
tobias-g | 0 | 108,262,137,883 | 45% | ||
sttest2 | 0 | 74,371,266 | 100% | ||
simplymike | 0 | 68,914,065,211 | 30% | ||
adamada | 0 | 16,256,733,071 | 50% | ||
we-are | 0 | 53,776,080,097 | 10.94% | ||
unittestaccount | 0 | 554,517,436 | 100% | ||
ryuna.siege | 0 | 208,756,780 | 100% | ||
bawativi | 0 | 242,835,610 | 50% | ||
mightypanda | 0 | 55,945,158,948 | 30% | ||
ulockblock | 0 | 40,718,539,467 | 15.29% | ||
mops2e | 0 | 567,608,387 | 38.52% | ||
swapsteem | 0 | 4,776,986,362 | 100% | ||
bullinachinashop | 0 | 3,846,596,877 | 100% | ||
cutnadhifa | 0 | 0 | 100% | ||
steem-ua | 0 | 1,287,712,843,788 | 11.3% | ||
kaczynski | 0 | 194,192,256 | 100% | ||
oneramp.curate | 0 | 71,515,993 | 100% | ||
samsemilia7 | 0 | 3,273,287,673 | 100% | ||
bluesniper | 0 | 122,030,080,083 | 9.63% | ||
primeradue | 0 | 11,012,889,507 | 15% | ||
we-are-steemians | 0 | 20,269,451,868 | 5.17% | ||
supu | 0 | 12,426,573,131 | 2.5% | ||
svijay1692 | 0 | 2,152,090,201 | 100% | ||
n1vas | 0 | 0 | 100% |
Thanks for the contribution, @singhpratyush! As I mentioned on your previous contribution, it's always very impressive to me how you (and the rest of 1Ramp) consistently submit high quality contributions! As for the code, there isn't really anything to say. It's very high quality as always. I see you also took @helo's feedback into account and started adding more comments, which is great to see as well. Since you asked me if I had used the web app on your previous post (which I hadn't), I decided to try it out for a while. It's really amazing what you guys have made! The UI is very clean, and all the additional features such as the competitions are very cool. One thing I noticed (on your post) is that Markdown tables don't really seem to work properly though: <center>  </center> I'm a creature of habit and still use Steemit.com, but I must say I am quite tempted to switch to 1Ramp! Great work once again, I'm already really looking forward to future updates! --- Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category. To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/3/1-2-2-1-2-1-2-). ---- Need help? Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
author | amosbastian |
---|---|
permlink | re-singhpratyush-1ramp-updates-see-ratings-markdown-image-upload-and-more-20190123t210350853z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"users":["singhpratyush","helo"],"image":["https://cdn.steemitimages.com/DQmZRbPyE1dc3QNwqN2reYekTMUv1447penVUfDniqsbmGC/image.png"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/3/1-2-2-1-2-1-2-","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"} |
created | 2019-01-23 21:03:51 |
last_update | 2019-01-23 21:08:24 |
depth | 1 |
children | 2 |
last_payout | 2019-01-30 21:03:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 7.677 HBD |
curator_payout_value | 2.492 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,523 |
author_reputation | 174,473,586,900,705 |
root_title | "1Ramp Updates -- See ratings, markdown image upload and more" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,834,177 |
net_rshares | 20,735,204,766,478 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
espoem | 0 | 26,566,771,192 | 15% | ||
utopian-io | 0 | 20,500,500,426,390 | 14.44% | ||
shammi | 0 | 365,745,887 | 7% | ||
steemtaker | 0 | 5,947,290,030 | 6% | ||
singhpratyush | 0 | 1,807,286,949 | 100% | ||
organicgardener | 0 | 7,404,398,447 | 25% | ||
reazuliqbal | 0 | 13,251,453,612 | 10% | ||
mightypanda | 0 | 120,701,568,912 | 65% | ||
ulockblock | 0 | 11,594,053,106 | 4.28% | ||
fastandcurious | 0 | 2,660,347,957 | 60% | ||
the1ramp | 0 | 37,369,898,132 | 100% | ||
linknotfound | 0 | 1,616,086,444 | 100% | ||
ascorphat | 0 | 1,033,474,977 | 2.5% | ||
monster-inc | 0 | 4,385,964,443 | 100% |
Hi @amosbastian! Thanks for the quick review :) Glad that you tried out the app found it interesting. We have quite a few features planned in the upcoming days and you'll surely come to know about them with our utopian updates. --- For the table rendering, I see that the table is rendered properly but there are a few more styling improvements required to make it look better.  But I must say that the app is still far from rendering posts perfectly (as compared to Busy or Steemit). I have tried making some improvements but it is taking more efforts than I had expected.
author | singhpratyush |
---|---|
permlink | re-amosbastian-re-singhpratyush-1ramp-updates-see-ratings-markdown-image-upload-and-more-20190123t214258822z |
category | utopian-io |
json_metadata | {"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["utopian-io"],"users":["amosbastian"],"links":["/@amosbastian"],"image":["https://ipfs.busy.org/ipfs/QmRKQHq1Hh5pLua6fcgSQBzbinDVskRH3AMu34AoCsj3FW"]} |
created | 2019-01-23 21:43:00 |
last_update | 2019-01-23 21:43:00 |
depth | 2 |
children | 0 |
last_payout | 2019-01-30 21:43:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 696 |
author_reputation | 7,035,648,262,478 |
root_title | "1Ramp Updates -- See ratings, markdown image upload and more" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,835,868 |
net_rshares | 0 |
Thank you for your review, @amosbastian! Keep up the good work!
author | utopian-io |
---|---|
permlink | re-re-singhpratyush-1ramp-updates-see-ratings-markdown-image-upload-and-more-20190123t210350853z-20190126t133120z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.17"}" |
created | 2019-01-26 13:31:21 |
last_update | 2019-01-26 13:31:21 |
depth | 2 |
children | 0 |
last_payout | 2019-02-02 13:31:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 63 |
author_reputation | 152,955,367,999,756 |
root_title | "1Ramp Updates -- See ratings, markdown image upload and more" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,963,970 |
net_rshares | 0 |
#### Hi @singhpratyush! Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation! Your post is eligible for our upvote, thanks to our collaboration with @utopian-io! **Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
author | steem-ua |
---|---|
permlink | re-1ramp-updates-see-ratings-markdown-image-upload-and-more-20190123t212904z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.14"}" |
created | 2019-01-23 21:29:06 |
last_update | 2019-01-23 21:29:06 |
depth | 1 |
children | 0 |
last_payout | 2019-01-30 21:29:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 292 |
author_reputation | 23,214,230,978,060 |
root_title | "1Ramp Updates -- See ratings, markdown image upload and more" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,835,277 |
net_rshares | 0 |
Congratulations @singhpratyush! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@singhpratyush/payout.png?201901310440</td><td>You received more than 500 as payout for your posts. Your next target is to reach a total payout of 1000</td></tr> </table> <sub>_[Click here to view your Board](https://steemitboard.com/@singhpratyush)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> > Support [SteemitBoard's project](https://steemit.com/@steemitboard)! **[Vote for its witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1)** and **get one more award**!
author | steemitboard |
---|---|
permlink | steemitboard-notify-singhpratyush-20190131t052008000z |
category | utopian-io |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-01-31 05:20:06 |
last_update | 2019-01-31 05:20:06 |
depth | 1 |
children | 0 |
last_payout | 2019-02-07 05:20:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 792 |
author_reputation | 38,975,615,169,260 |
root_title | "1Ramp Updates -- See ratings, markdown image upload and more" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 79,195,424 |
net_rshares | 0 |
Hey, @singhpratyush! **Thanks for contributing on Utopian**. Weβre already looking forward to your next contribution! **Get higher incentives and support Utopian.io!** Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via [SteemPlus](https://chrome.google.com/webstore/detail/steemplus/mjbkjgcplmaneajhcbegoffkedeankaj?hl=en) or [Steeditor](https://steeditor.app)). **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
author | utopian-io |
---|---|
permlink | re-1ramp-updates-see-ratings-markdown-image-upload-and-more-20190124t135935z |
category | utopian-io |
json_metadata | "{"app": "beem/0.20.17"}" |
created | 2019-01-24 13:59:36 |
last_update | 2019-01-24 13:59:36 |
depth | 1 |
children | 0 |
last_payout | 2019-01-31 13:59:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 595 |
author_reputation | 152,955,367,999,756 |
root_title | "1Ramp Updates -- See ratings, markdown image upload and more" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 78,871,343 |
net_rshares | 1,878,506,099 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
singhpratyush | 0 | 1,878,506,099 | 100% |