-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
72 additions
and
60 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -71,6 +71,5 @@ module.exports = { | |
}, | ||
], | ||
"react/jsx-props-no-spreading": "off", | ||
"react-hooks/exhaustive-deps": "warn", | ||
}, | ||
}; |
This file contains 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 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
2 changes: 1 addition & 1 deletion
2
services/backend-api/client/src/features/feedConnections/components/FiltersForm/index.tsx
This file contains 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 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
8 changes: 4 additions & 4 deletions
8
...nt/src/features/feedConnections/components/FiltersForm/utils/getAriaLableForExpression.ts
This file contains 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { RelationalExpressionOperator, RelationalFilterExpression } from "../../../types"; | ||
import { RelationalFilterExpression } from "../../../types"; | ||
import { getReadableLabelForRelationalOp } from "./getReadableLabelForRelationalOp"; | ||
|
||
export const getAriaLabelForExpression = ({ left, op, right, not }: RelationalFilterExpression) => { | ||
const isIncomplete = !left.value || !right.value || !op; | ||
|
||
if (isIncomplete) { | ||
return "Condition expression with incomplete form fields"; | ||
return "Condition expression with incomplete form fields. Press tab to edit condition fields."; | ||
} | ||
|
||
let opLabel = getReadableLabelForRelationalOp(op); | ||
const opLabel = getReadableLabelForRelationalOp(op); | ||
|
||
return `Condition expression where ${left.value} ${not ? "does not" : "does"} ${opLabel} ${ | ||
right.value | ||
}`; | ||
}. Press tab to edit condition fields.`; | ||
}; |
This file contains 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 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