Skip to content

Conversation

saumeya
Copy link
Contributor

@saumeya saumeya commented Sep 15, 2021

Signed-off-by: saumeya saumeyakatyal@gmail.com

closes #7158
Screenshot from 2021-09-24 13-04-09

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).

@codecov
Copy link

codecov bot commented Sep 15, 2021

Codecov Report

Merging #7218 (4f69807) into master (ebd87b7) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7218   +/-   ##
=======================================
  Coverage   41.17%   41.17%           
=======================================
  Files         161      161           
  Lines       21612    21612           
=======================================
  Hits         8899     8899           
  Misses      11446    11446           
  Partials     1267     1267           
Impacted Files Coverage Δ
util/settings/settings.go 46.70% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebd87b7...4f69807. Read the comment docs.

Copy link
Collaborator

@alexmt alexmt left a comment

Choose a reason for hiding this comment

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

Thank you @saumeya ! Added one small comment, can you please take a look?

@@ -146,6 +146,18 @@ export class ApplicationDetails extends React.Component<RouteComponentProps<{nam
return this.filterTreeNode(resNode, treeFilter);
});

const URL_REGEX = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nitpick: We already have URL regex defined in application-summary.tsx:

https://github.com/argoproj/argo-cd/blob/master/ui/src/app/applications/components/application-summary/application-summary.tsx#L19

Can you please move it to https://github.com/argoproj/argo-cd/blob/master/ui/src/app/applications/components/utils.tsx and re-use in both application-summary.tsx and application-details.tsx

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

Signed-off-by: saumeya <saumeyakatyal@gmail.com>
@saumeya saumeya force-pushed the url-wrapping-in-commit-field branch from 6fa9fa5 to f1a381d Compare October 1, 2021 05:42
@saumeya saumeya requested a review from alexmt October 1, 2021 05:49
lint check

Signed-off-by: saumeya <saumeyakatyal@gmail.com>
@saumeya saumeya force-pushed the url-wrapping-in-commit-field branch from f1a381d to 4f69807 Compare October 1, 2021 05:50
Copy link
Collaborator

@alexmt alexmt left a comment

Choose a reason for hiding this comment

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

LGTM!

@alexmt alexmt merged commit a6039e1 into argoproj:master Oct 1, 2021
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.

Message on Synced -> More field popping out
2 participants