-
-
Notifications
You must be signed in to change notification settings - Fork 656
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: feature completed connected to backend #6947
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
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.
✅ Code Health Quality Gates: OK
- Declining Code Health: 1 findings(s) 🚩
@@ -79,16 +80,22 @@ export const StyledLabel = styled('span')(({ theme }) => ({ | |||
const FeatureOverviewMetaData = () => { | |||
const projectId = useRequiredPathParam('projectId'); | |||
const featureId = useRequiredPathParam('featureId'); | |||
const { feature } = useFeature(projectId, featureId); | |||
const { feature, refetchFeature } = useFeature(projectId, featureId); |
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.
❌ Getting worse: Large Method
FeatureOverviewMetaData increases from 120 to 127 lines of code, threshold = 120
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.
We can also add a test for the button click but if we plan to add more steps (completion status selection) I'd defer it
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.
✅ Code Health Quality Gates: OK
- Declining Code Health: 2 findings(s) 🚩
@@ -11,9 +11,19 @@ const twoMinutesAgo = '2024-04-25T08:03:00.000Z'; | |||
const oneHourAgo = '2024-04-25T07:05:00.000Z'; | |||
const twoHoursAgo = '2024-04-25T06:05:00.000Z'; | |||
|
|||
const renderOpenTooltip = (stage: LifecycleStage, onArchive = () => {}) => { | |||
const renderOpenTooltip = ( |
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.
❌ New issue: Code Duplication
The module contains 2 functions with similar structure: 'render live stage','render pre-live stage'
Connects feature complete to backend