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

[Rich text editor] Add code block, quote and list indentation actions #8045

Merged
merged 4 commits into from
Feb 8, 2023

Conversation

jonnyandrew
Copy link
Contributor

@jonnyandrew jonnyandrew commented Jan 31, 2023

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Add code block, quote and list indentation actions to the rich text editor.

Motivation and context

PSU-1099

Screenshots / GIFs

demo.webm

Tests

  • Enable the rich text editor in Labs
  • Type a message
  • Format using code block, quote and list indentation

Tested devices

  • Physical
  • Emulator
  • OS version(s): Android 13

Checklist

@jonnyandrew jonnyandrew force-pushed the feat/PSU-1099-rich-text-actions branch from 6eca590 to eb8b378 Compare February 7, 2023 15:59
@jonnyandrew jonnyandrew requested review from a team and yostyle and removed request for a team February 7, 2023 16:14
@jonnyandrew jonnyandrew marked this pull request as ready for review February 7, 2023 16:14
@jonnyandrew jonnyandrew changed the title [Rich text editor] Add code block, quote and indentation actions [Rich text editor] Add code block, quote and list indentation actions Feb 7, 2023
@jonnyandrew jonnyandrew force-pushed the feat/PSU-1099-rich-text-actions branch from eb8b378 to 83110b8 Compare February 7, 2023 17:12
android:viewportHeight="44">
<path
android:pathData="m18,22c0.7,-0.72 1.4,-1.4 2.1,-2.1 0.68,-0.98 -0.93,-1.9 -1.5,-0.96 -0.87,0.88 -1.8,1.7 -2.6,2.6 -0.45,0.67 0.27,1.2 0.7,1.6 0.75,0.74 1.5,1.5 2.2,2.2 0.98,0.68 1.9,-0.93 0.96,-1.5l-1.9,-1.9zM26.6,22c-0.71,0.72 -1.5,1.4 -2.1,2.2 -0.68,0.98 0.93,1.9 1.5,0.96 0.88,-0.89 1.8,-1.8 2.6,-2.7 0.45,-0.67 -0.27,-1.2 -0.7,-1.6 -0.75,-0.74 -1.5,-1.5 -2.2,-2.2 -0.99,-0.66 -2,0.94 -0.96,1.5l1.9,1.9zM13.6,32c-1.1,0.021 -1.9,-1 -1.7,-2.1 0.005,-5.7 -0.011,-11 0.008,-17 0.088,-1 1.1,-1.7 2.1,-1.5 5.6,0.005 11,-0.011 17,0.008 1,0.088 1.7,1.1 1.5,2.1 -0.005,5.6 0.011,11 -0.008,17 -0.088,1 -1.1,1.7 -2.1,1.5h-17zM13.6,30.3h17v-17h-17v17z"
android:fillColor="#8d97a5"/>
Copy link
Contributor

@yostyle yostyle Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The color value is hardcoded.
Did you check the icons rendering when you change the app theme ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I've fixed this in 566d6e9

Dark Light
image image

@eNkKVS4HxHc9jaq
Copy link

Just noticed this issue based on my experience with the editor. Please put it out of beta with the addition of this.

android:fillColor="#8D97A5"
android:fillType="evenOdd"/>
<path
android:fillColor="?vctr_content_tertiary"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Resource references will not work correctly in images generated for this vector icon for API < 24; check generated icon to make sure it looks acceptable
  • ⚠️ Resource references will not work correctly in images generated for this vector icon for API < 24; check generated icon to make sure it looks acceptable

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked the icons on API 21 and they are displaying OK

Copy link
Contributor

@yostyle yostyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@sonarcloud
Copy link

sonarcloud bot commented Feb 8, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

23.4% 23.4% Coverage
0.0% 0.0% Duplication

@jonnyandrew jonnyandrew merged commit d922126 into develop Feb 8, 2023
@jonnyandrew jonnyandrew deleted the feat/PSU-1099-rich-text-actions branch February 8, 2023 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants