Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UI] Allow for markdown or plain text input in large text field #405

Open
bitbeckers opened this issue Feb 6, 2025 · 1 comment · Fixed by #427, #425 or #422
Open

[UI] Allow for markdown or plain text input in large text field #405

bitbeckers opened this issue Feb 6, 2025 · 1 comment · Fixed by #427, #425 or #422
Labels
enhancement New feature or request

Comments

@bitbeckers
Copy link
Contributor

bitbeckers commented Feb 6, 2025

Describe the feature you'd like to request

  • As an user, I want to have means of formatting my text, so that I can clearly structure the information in the metadata
  • As an user, I want to have means of formatting my text, so that I can add images and other content if relevant in the description fields
  • As an user, I expect formatted text to be respected when rendering metadata, so that I can clearly read the submitted text

Describe the solution you'd like

We should support plain text formatting (bold, cursive, headers) and markdown both in long text input and rendering. Additionally, when a user adds images the should be rendered with appropriate dimensions.

We probably want a long-text input component that we can use in the create forms for hypercerts, collections, blueprints, etc.

For input, I imagine a solution similar to the GitHub write-preview fields:

Image

For rendering make sure that:

  • to long text is truncated with a 'read more' component. Could be a popover or expanding the field?
  • keep rendered headings, etc, reasonable. I.e. a # Heading should not be larger than the hypercert name on the view page.

Example of a long description: https://testnet.hypercerts.org/hypercerts/11155111-0xa16DFb32Eb140a6f3F2AC68f41dAd8c7e83C4941-258274316492992293768701327040712072495104

Describe alternatives you've considered

Just render whatever the user inputs, which is weird

@bitbeckers
Copy link
Contributor Author

To do:

  • make the editor and preview two components
  • Apply components to collection description field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Ready
1 participant