-
Notifications
You must be signed in to change notification settings - Fork 24
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
(PC-32770) fix(highlightLinks): fix links highlighting #7152
base: master
Are you sure you want to change the base?
Conversation
Performance Comparison ReportSignificant Changes To Render DurationThere are no entries Meaningless Changes To Render DurationShow entries
Show details
Changes To Render CountThere are no entries Added ScenariosThere are no entries Removed ScenariosThere are no entries |
589efbf
to
a4312e1
Compare
The purpose is to exclude cases where a dot is not followed by a space like 'final word.Then'. We'll continue to make the mistake on inclusive writing for now, like 'revigorant.e'.
a4312e1
to
aaa6721
Compare
Quality Gate passedIssues Measures |
Quality Gate failedFailed conditions |
@@ -11,6 +11,10 @@ const description1WithoutUrl = `PRESSE / ILS EN PARLENT ! | |||
« Hilarant » Vanity Fair | |||
Voir plus de critiques en suivant le lien suivant :` | |||
|
|||
const descriptionWithoutSpaceAfterDot = `Lorem ipsum dolor sit amet consectetur adipiscing elit.Sed non risus.` | |||
|
|||
const descriptionWitUppercaseLink = `Lorem ipsum dolor sit amet consectetur adipiscing Elit.sed non risus.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
descriptionWithUppercaseLink ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Un lien qui commence par une majuscule ... Tu aurais nommé ça comment ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah oui mon comm est pas claire , je voulais dire qu'il manquait le 'H' de 'with' :)
@@ -11,6 +11,10 @@ const description1WithoutUrl = `PRESSE / ILS EN PARLENT ! | |||
« Hilarant » Vanity Fair | |||
Voir plus de critiques en suivant le lien suivant :` | |||
|
|||
const descriptionWithoutSpaceAfterDot = `Lorem ipsum dolor sit amet consectetur adipiscing elit.Sed non risus.` | |||
|
|||
const descriptionWitUppercaseLink = `Lorem ipsum dolor sit amet consectetur adipiscing Elit.sed non risus.` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je comprend pas où est le lien, peut être qu'un veritable exemple plutôt dque du Lorem ipsum serait plus parlant ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elit.sed
est considéré comme un lien
@@ -177,7 +174,7 @@ describe('highlightLinks', () => { | |||
) | |||
|
|||
expect(parsedDescription).toEqual([ | |||
<ExternalLink key="external-link-0" url="http://www.penofchaos.com/warham/donjon.htm" />, | |||
<ExternalLink key="external-link-0" url="www.penofchaos.com/warham/donjon.htm" />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ce type de lien fonctionne ? (web, iOS, Android)
@@ -7,20 +7,18 @@ type ParsedDescription = Array<string | React.ReactNode> | |||
|
|||
const externalNavRegex = new RegExp( | |||
/((^|\s)|https?:\/\/)[a-z]([-a-z0-9:%._+~#=]*[a-z0-9])?\.[a-z0-9]{1,6}([/?#]\S*)?(\s|$)/, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
il me semble que coté pro, iels ont changés la façon de gérer les liens dans les descriptions
est-on encore aligné ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi est-ce qu'on doit être alignés entre leur façon de récupérer/afficher une URL et la nôtre ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
si je suis un pro, que je prends le temps d'écrire une description qui est super bien, d'ajouter des liens où il faut et que :
- coté jeunes, des liens s'affichent à des endroits qui n'y étaient pas coté pro
- coté jeunes, des liens ne s'affichent pas à des endroits qui y étaient coté pro
je serais mécontent, et je dirais que c'est buggué
Link to JIRA ticket: https://passculture.atlassian.net/browse/PC-32770
Flakiness
If I had to re-run tests in the CI due to flakiness, I add the incident on Notion
Checklist
I have:
Screenshots
delete if no UI change