Closed kbecciv closed 1 year ago
Triggered auto assignment to @johncschuster (AutoAssignerTriage
), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Triggered auto assignment to @justicea83 (Engineering
), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
This can be external
Triggered auto assignment to @kevinksullivan (External
), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External
)
Triggered auto assignment to @marcaaron (External
), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
PROPOSAL
if (html !== text) {
const editedTag = props.fragment.isEdited ? '<edited></edited>' : '';
const htmlContent = html + editedTag;
return (
<RenderHTML
html={props.source === 'email'
? `<email-comment>${htmlContent}</email-comment>`
: `<comment>${htmlContent}</comment>`}
/>
);
}
The issue is with the HTML being rendered. If we set the border-color to white in the HTML it will be fixed. Check the image below:
@kbecciv
@ajaynagwani777
I think we still need that grey outline, but with the correct border-radius.
Setting border-color
to white seems more like a workaround
, since we're just disabling the outline essentially
@eVoloshchak
I gave the solution because the gray outline is not visible apart from the incorrect border. Still if we need the border to be there we can set the border-radius
to 15px
, rn it is 8px
in HTML.
I gave the solution because the gray outline is not visible apart from the incorrect border.
For me it's visible
Still if we need the border to be there we can set the border-radius to 15px , rn it is 8px in HTML.
Yeah, that would be perfect! Could you please include a code snipped with this change?
@eVoloshchak
In styles.js -> tagStyles -> img
Existing object:
img: {
borderColor: themeColors.border,
borderRadius: variables.componentBorderRadiusNormal, // 8
borderWidth: 1,
}
Updated object:
img: {
borderColor: themeColors.border,
borderRadius: 15,
borderWidth: 1,
}
That's what it looks like for me with borderRadius: 10
.
We need to figure out why it's inconsistent, so in case we change the border radius of this card (or blue border around it), this issue doens't appear once again. They should have the same variable with border radius
That's what it looks like for me with
borderRadius: 10
. We need to figure out why it's inconsistent, so in case we change the border radius of this card (or blue border around it), this issue doens't appear once again. They should have the same variable with border radius
Sorry, it was 15. I mentioned 10 by mistake. Also, we will keep the border variable. I have mentioned the value here just for reference.
We need to figure out why it's inconsistent, so in case we change the border radius of this card (or blue border around it), this issue doens't appear once again. They should have the same variable with border radius
The blue border is of the image. By doing the borderRadius: 15
, we can resolve the issue.
I think the image that is being used should be fixed so that it fits correctly but if we want a front end solution I propose changing the border radius but only for the pdf
we can check if it's a pdf by Str.isPDF(source)
and if it's true we will use borderRadius 15 ( we will add it in the styles.js) https://github.com/Expensify/App/blob/93587b19296f6c07567b5576418725ae213321ed/src/components/HTMLEngineProvider/HTMLRenderers/ImageRenderer.js#L73
style={[styles.webViewStyles.tagStyles.img, Str.isPDF(source) && styles.bR15]}
I think the image that is being used should be fixed so that it fits correctly
Agree, I also think this is the best solution. It would make it consistent with all of the other images
but if we want a front-end solution I propose changing the border-radius but only for the pdf, we can check if it's a pdf by Str.isPDF(source)
Awesome, that's what was missing from the previous proposal. I think it should be 14 instead of 15, but it's kinda hard to tell
To summarize, we have 2 ways to fix this issue
@marcaaron, could you please take a look at this, what do you think?
I think the image that is being used should be fixed so that it fits correctly
Agree with this approach as well, but I would maybe modify it so that the image can have any custom border set in the front end so that we do not need to cut a new image each time someone changes the border.
So basically something like:
Where does this image come from? I'm not really sure tbh. Maybe @Expensify/design knows.
Ah yeah, we should just use a version that has no rounded borders, I agree.
Hmm I'm not sure where it's hosted, but I remember @michelle-thompson working on it not that long ago? Maybe she can dig up the GH for it?
I found the graphic but have to remove the border first - @shawnborton do you think we should make any updates to font/branding while we're at it?
Since the illustration will change and thus will stick out quite a bit, let's keep it the same for now. File without border can be found here: https://www.dropbox.com/s/19vxy82ho1wltzn/EXP_password-protected.png?dl=0
That makes sense to me. Do you have the old GH handy from where you first did this update? I'm trying to figure out where this is hosted - it might be something that we need to update internally on the Expensify end in the Web repo.
@eVoloshchak, @marcaaron Huh... This is 4 days overdue. Who can take care of this?
I wasn't able to find it in my issues, but I think I worked with @thienlnam on this before so he might know!
Yes, agree on all the sentiments here that we should be updating the image asset instead of making a front-end solution.
Here's that old issue for adding this - https://github.com/Expensify/Expensify/issues/136829
@thienlnam do you know if the image is in the Web repo somewhere?
It's in the Web-PDFs repo var/pdfs.expensify.com/assets/encrypted-file-thumbnail.jpg
Going OOO for a week so unassigning, but looks like this is going to be internal before it's external - so I think we should consider just making it internal.
Agree, I think we need to assign internally to an engineer to update the file in the location Jack posted above.
@michelle-thompson Whoops! This issue is 2 days overdue. Let's get this updated quick!
I can take this one now. I think this actually needs to be assigned to an internal engineer though, so let me try to do that, unless you can quickly tackle this one @thienlnam?
I'm heading OOO after today as well, though if it's just to update the file locations you should have write access to make a PR in that location (maybe?). But I'll just pullerbear another engineer to help ya out with this
Alright, nevermind auto-assigner hates me - actually IIRC when engineers add the engineering label it doesn't assign anyone so you might have to do it @shawnborton
Triggered auto assignment to @sophiepintoraetz (External
), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (External
)
Triggered auto assignment to @sketchydroide (External
), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Oh goodness sorry for the pings, I accidentally pressed the external label but it assigned an engineer so problem failed successfully
the new file is a png and the old one a jpg, is this a problem, should they both be the same formart? I'm not sure we use the formart when when ussing assets. @shawnborton
Here is an updated version: password-protected-thumbnail.jpg.zip
All good, thanks for the update!
Just noticed that no BZ is assigned to this issue so assigning myself per our new process.
BZ?
Check this @sketchydroide -> https://docs.google.com/document/d/1JVk4S8r_ets5lwM6KdpggQHG7li_H3VSE8qETYbe6gI/edit
ahh Bug Zero of course
Huh, I'm not certain what's going on in this issue. The linked PR is merged, but is Web-PDFs still not deployable?
last time I checked it was because we couldn't deploy Web-PDFs yet due to the PHP 8 thing, I'll check if this has changed in the last week
Cleared up in Slack. Wed-PDFs is indeed waiting on the PHP 8.1 upgrade. Let's keep it a weekly for now. This should resolve itself by next week.
@iwiznia any update on the PHP upgrade and deploying this? 🙇🏼 Sorry to bring you in, but it's just easier to track that way
Yes, I am working on it. I am close to finishing the PRs and will try to put them in staging tomorrow hopefully.
Oh right, I have been meaning to bug Ionatan on this one. 😄
Looks like this issue is just waiting on a production deploy to close.
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result: Blue border radius of protected pdf should match with parent component
Actual Result:
Blue border radius of protected pdf does not match with parent component (leaves white spaces in corner)
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.11.1
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): any
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @dhairyasenjaliya
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1664363401205419
View all open jobs on GitHub