GithubHelp home page GithubHelp logo

dappforce / polkaverse Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 9.0 37.55 MB

The codebase for PolkaVerse, a reference application built on the Subsocial blockchain. Feel free to use the code in your own Subsocial dapps.

Home Page: https://polkaverse.com

License: GNU General Public License v3.0

JavaScript 0.40% Shell 0.02% TypeScript 61.60% HTML 0.03% Dockerfile 0.11% Sass 2.57% CSS 33.18% SCSS 2.09%
subsocial dapp polkadot kusama dotsama substrate blockchain-explorer social-dapp web3 social-dapps

polkaverse's People

Contributors

dependabot[bot] avatar ical10 avatar mckrava avatar oap75 avatar olehmell avatar samchuk-vlad avatar siman avatar teodorus-nathaniel avatar tusharojha avatar yung-beef avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

polkaverse's Issues

Losing draft posts since it stores multiple draft posts in the same auto-saved value in Local Storage when you draft multiple posts in parallel that may be from different Spaces

Current Behavior:

If you are drafting multiple Posts under the same or different Spaces that you haven't published yet in different browser tabs, they all auto-save to the same value in Local Storage, so if you lose your connection, you'll only be able to recover the draft post that you last modified

Expected Behavior:

It should store each post in Local Storage under a Space + Post key, instead of just storing them all in the same place, so if you'll be able to recover multiple draft Posts each from the same or a different Space

Steps To Reproduce:

Refer to the "How to find out what is auto-saved in Local Storage if you draft two posts in parallel that use a different Space?" section in this post https://polkaverse.com/12864/how-to-avoid-losing-your-draft-posts-on-polka-verse-74158

Environment

Some posts have no content

When scrolling my feed, I see no content on some posts.
Once I click on the post, its content gets loaded.

telegram-cloud-photo-size-2-5316568148763329423-y

Unable to expand the text area in the modal/popup editor window to write Reply Comments or New Posts

๐Ÿ“š Context

What is the problem that you are trying to solve?

When I Reply to a Comment, or click "Write Something..." and start writing a post in the popup window, the maximum height of the textarea is about 6 rows, and whilst I can scroll up and down, it is really frustrating to review my draft comment before I publish it if I can only view about 6 rows of it.

Why is this problem relevant?

It is so frustrating that I have to manually go to browser inspector and edit the HTML to change the resize: none to resize: auto for the class name CommentEditor_DfCommentEditor (for replying to a comment), and for classname editor_FastEditor for writing new posts, so that I can drag to make the comment textarea larger.

โœ”๏ธ Solution

What are the possible solutions?

Change the resize: none to resize: auto for the class name CommentEditor_DfCommentEditor and editor_FastEditor so that users can drag to make the comment textarea larger when replying to posts.
I believe the relevant component is this one for comments https://github.com/dappforce/polkaverse/blob/main/src/components/comments/CommentEditor.tsx#L152, and this one for new posts in the popup window:
https://github.com/dappforce/polkaverse/blob/main/src/components/posts/editor/ModalEditor.tsx#L207
https://github.com/dappforce/polkaverse/blob/main/src/components/posts/editor/index.module.sass#L111

๐Ÿ“ˆ Subtasks

๐ŸŽฏ Definition of Done

  • If there is a solution, what are the final deliverables?

Losing draft posts client-side in browser even though code shows local storage is being used

๐Ÿ“š Context

Problem:

I still keep losing draft posts that I've written but haven't published yet.

Relevance:

It is unbearable, especially when you've spent a considerable amount of time preparing a post, only to have it just disappear.

What are the possible solutions?

Here's my explanation of the issues and proposed solutions https://polkaverse.com/12864/how-to-avoid-losing-your-draft-posts-on-polka-verse-74158

If there is only one draft Post being stored in Local Storage, and the post modal disappears, then show an "Edit" button in the header so they may restore that draft Post and continue editing.

If there are multiple draft Posts from the same or different Spaces then store the values in Local Storage under Space + Post key, and if in one of the browser windows or tabs they lose the popup modal of one of the draft posts, provide a "Restore" drop-down or similar, that allows try restoring any of the draft Posts from Local Storage until they find the one they thought they lost

๐Ÿ“ˆ Subtasks

  • Store draft posts in browser client-side so it works with VPN

๐ŸŽฏ Definition of Done

  • User is able to use a VPN service to protect their privacy even whilst having a poor connection and even if they lose their Websocket connection to the Subsocial node and their draft post disappears, there's an "Edit" or "Restore" button to restore it, rather than just the risk of clicking the wrong thing and finding it gets permanently removed from local storage.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.