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

feat(ui): TE-2363 allow user to opt in to be notified for historical anomalies when creating a subscription #1476

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nalin-patidar
Copy link

@nalin-patidar nalin-patidar commented Jul 5, 2024

…cription

Issue(s)

https://startree.atlassian.net/browse/TE-2363

Description

Added the ability for a user to subscribe to notification for historical anomalies.

Screenshots

https://github.com/startreedata/thirdeye/assets/174305
Screenshot 2024-07-05 at 7 59 35 PM
624/132a709a-b67b-4577-bdbf-6929598dfda0

@nalin-patidar nalin-patidar self-assigned this Jul 5, 2024
@nalin-patidar nalin-patidar requested a review from a team as a code owner July 5, 2024 08:33
@github-actions github-actions bot added the thirdeye-ui Updates to thirdeye-ui project label Jul 5, 2024
@nalin-patidar nalin-patidar changed the title added ability to enable notification for historical anomalies in subs… feat(ui): TE-2363 Allow user to opt in to be notified for historical anomalies when creating a subscription Jul 5, 2024
@alcatraz627
Copy link
Collaborator

@nalin-patidar PR looks good, but the title check is failing. The capital "A" in the title needs to be changed to lowercase + since only one commit in this PR, will need to git commit --amend and git push -f to change the same in the commit message as well.

Read about it at https://github.com/startreedata/thirdeye/blob/master/thirdeye-ui/CONTRIBUTING.md

@cyrilou242
Copy link
Collaborator

cyrilou242 commented Jul 5, 2024

@alcatraz627

PR looks good, but the title check is failing. The capital "A" in the title needs to be changed to lowercase +

could we remove such constraint? I don't see the value in lower/upper case checks

EDIT: seems it can be done here:

subjectPattern: ^(([A-Z]+\-[0-9]+( {1}))+|\[auto\] )(?![A-Z, ]).+[^.…]$

@cyrilou242 cyrilou242 self-requested a review July 5, 2024 09:59
Copy link
Collaborator

@cyrilou242 cyrilou242 left a comment

Choose a reason for hiding this comment

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

let's add a tooltip that explaines the feature.
I provided the tooltip message in the ticket.

You should be able to find some tooltip code in the codebase, we use some in other places

Screenshot 2024-07-05 at 12 00 38

@alcatraz627
Copy link
Collaborator

alcatraz627 commented Jul 5, 2024

could we remove such constraint? I don't see the value in lower/upper case checks

@cyrilou242 the thirdeye-ui conventions are based on whatever was set up for startree-ui. Though we are trying to maintain consistency for all UI projects, we should be able to get rid of such minor details like capitalization.

Comment on lines 26 to 27
notifyHistoricalAnomalies:
!!subscriptionGroup.notifyHistoricalAnomalies,

Choose a reason for hiding this comment

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

nit: for better readability

Suggested change
notifyHistoricalAnomalies:
!!subscriptionGroup.notifyHistoricalAnomalies,
notifyHistoricalAnomalies:
Boolean(subscriptionGroup.notifyHistoricalAnomalies),

Copy link
Author

Choose a reason for hiding this comment

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

Done

@nalin-patidar nalin-patidar changed the title feat(ui): TE-2363 Allow user to opt in to be notified for historical anomalies when creating a subscription feat(ui): TE-2363 allow user to opt in to be notified for historical anomalies when creating a subscription Jul 5, 2024
Comment on lines +27 to +30
export const InfoLabel: FunctionComponent<InfoLabelProps> = ({
label,
tooltipText = "",
}) => {

Choose a reason for hiding this comment

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

we should have similar component already?
how are we showing tooltips now?

Copy link
Author

Choose a reason for hiding this comment

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

I have commented about this in top of this file

@jayeshchoudhary
Copy link

jayeshchoudhary commented Jul 5, 2024

I also see the label and info icon are not centred vertically
is the pr screenshot updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
thirdeye-ui Updates to thirdeye-ui project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants