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

fix(sentry): SKFP-1379 fix graph JS errors #564

Merged
merged 3 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/ui/Release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 10.15.2 2025-01-02
- fix: SKFP-1379 fis JS errors in graph

### 10.15.1 2024-12-18
- fix: FLUI-145 change color between active and hover for venn chart

Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ferlab/ui",
"version": "10.15.1",
"version": "10.15.2",
"description": "Core components for scientific research data portals",
"publishConfig": {
"access": "public"
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/src/components/Charts/patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ export const defs = [
background: 'inherit',
color: 'rgba(255,255,255,0.15)',
id: 'line-left',
lineWidth: 2,
rotation: -45,
size: 4,
spacing: 5,
stagger: true,
type: 'patternLines',
},
Expand All @@ -30,8 +32,10 @@ export const defs = [
background: 'inherit',
color: 'rgba(255,255,255,0.15)',
id: 'line-right',
lineWidth: 2,
rotation: 45,
size: 4,
spacing: 5,
stagger: true,
type: 'patternLines',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const FieldQueryPill = ({
wrapper={(children) => (
<Dropdown
getPopupContainer={(trigger) => trigger.parentElement!}
onVisibleChange={(visible) => {
onOpenChange={(visible) => {
if (visible) {
setDropdownContent(undefined);
}
Expand Down
13 changes: 7 additions & 6 deletions packages/ui/src/utils/dateUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ describe('Relative date', () => {
yesterday.setDate(today.getDate() - 1);
expect(getRelativeDate(yesterday, format)).toEqual('yesteday');
});
test('should return this years date', () => {
const today = new Date();
const pastDate = new Date(today);
pastDate.setDate(today.getDate() - 7);
expect(getRelativeDate(pastDate, format)).toEqual('This Years');
});
// FLUI-146 failed the seven first days of a year
// test('should return this years date', () => {
// const today = new Date();
// const pastDate = new Date(today);
// pastDate.setDate(today.getDate() - 7);
// expect(getRelativeDate(pastDate, format)).toEqual('This Years');
// });
test('should return past years date', () => {
const today = new Date();
const pastDate = new Date(today);
Expand Down
Loading