-
Notifications
You must be signed in to change notification settings - Fork 2
Add new bubble for recalculate #685
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1ce7080
Add new bubble for recalculate
opoliarush 0c1d044
Added new flow for handling evaluation
opoliarush cc08e00
Merge branch 'main' into feature/recalculate-bubble
opoliarush fa9f3ab
Fixed typo
opoliarush f34ccc1
removed comments
opoliarush c806c5e
Update src/components/Insights/common/InsightCard/InsightHeader/style…
kshmidt-digma 4417ac3
Update src/components/Insights/common/InsightCard/index.tsx
kshmidt-digma f8ed20d
Update src/components/Insights/common/InsightCard/index.tsx
kshmidt-digma 5048887
Downgrade version
opoliarush 17407cc
Merge branch 'feature/recalculate-bubble' of https://github.com/digma…
opoliarush File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/components/Insights/common/InsightCard/RecalculateBar/RecalculateBar.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import { Meta, StoryObj } from "@storybook/react"; | ||
| import { RecalculateBar } from "."; | ||
|
|
||
| // More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction | ||
| const meta: Meta<typeof RecalculateBar> = { | ||
| title: "Insights/common/InsightCard/RecalculateBar", | ||
| component: RecalculateBar, | ||
| parameters: { | ||
| // More on how to position stories at: https://storybook.js.org/docs/react/configure/story-layout | ||
| layout: "fullscreen" | ||
| } | ||
| }; | ||
|
|
||
| export default meta; | ||
|
|
||
| type Story = StoryObj<typeof meta>; | ||
|
|
||
| export const Default: Story = { | ||
| args: {} | ||
| }; |
14 changes: 14 additions & 0 deletions
14
src/components/Insights/common/InsightCard/RecalculateBar/index.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| import { RecalculateStartedIcon } from "../../../../common/icons/16px/RecalculateStartedIcon"; | ||
| import * as s from "./styles"; | ||
|
|
||
| export const RecalculateBar = () => { | ||
| return ( | ||
| <s.Container> | ||
| <s.IconContainer> | ||
| <RecalculateStartedIcon size={16} color={"currentColor"} /> | ||
| </s.IconContainer> | ||
| <s.Title>Rechecking insight</s.Title> | ||
| <s.Info>Check here for updates</s.Info> | ||
| </s.Container> | ||
| ); | ||
| }; |
37 changes: 37 additions & 0 deletions
37
src/components/Insights/common/InsightCard/RecalculateBar/styles.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| import styled from "styled-components"; | ||
| import { | ||
| caption1RegularTypography, | ||
| footnoteBoldTypography | ||
| } from "../../../../common/App/typographies"; | ||
|
|
||
| export const Container = styled.div` | ||
| ${footnoteBoldTypography} | ||
|
|
||
| border-radius: 4px; | ||
| border: 1px solid ${({ theme }) => theme.colors.v3.status.low}; | ||
| background: ${({ theme }) => theme.colors.v3.status.backgroundLow}; | ||
| display: flex; | ||
| align-items: center; | ||
| padding: 6px 8px; | ||
| gap: 4px; | ||
| `; | ||
|
|
||
| export const IconContainer = styled.div` | ||
| color: ${({ theme }) => theme.colors.v3.status.low}; | ||
| display: flex; | ||
| `; | ||
|
|
||
| export const Title = styled.span` | ||
| color: ${({ theme }) => theme.colors.v3.text.primary}; | ||
| text-overflow: ellipsis; | ||
| white-space: nowrap; | ||
| overflow: hidden; | ||
| `; | ||
|
|
||
| export const TicketStatus = styled.div` | ||
| color: ${({ theme }) => theme.colors.v3.text.secondary}; | ||
| `; | ||
|
|
||
| export const Info = styled.span` | ||
| ${caption1RegularTypography} | ||
| `; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.