Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas committed Apr 25, 2024
2 parents bcd3932 + 0628564 commit 0711d3d
Show file tree
Hide file tree
Showing 10 changed files with 6,494 additions and 5,108 deletions.
4 changes: 2 additions & 2 deletions .github/actions/pnpm-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ runs:
steps:
- uses: pnpm/action-setup@v2.2.4
with:
version: 8.0.0
version: 9.0.5

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion Contribution.md → CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributions
# Contributing

## Table of content

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
[![GitHub issues by-label](https://img.shields.io/github/issues/equinor/fusion-workspace/bug?label=%F0%9F%90%9B%20bug%20issues&color=red)](https://github.com/equinor/fusion-workspace/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
[![GitHub issues](https://img.shields.io/github/issues/equinor/fusion-workspace)](https://github.com/equinor/fusion-workspace/issues)
[![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/equinor/fusion-workspace)](https://github.com/equinor/fusion-workspace/pulls)
![SCM Compliance](https://scm-compliance-api.radix.equinor.com/repos/equinor/fusion-workspace/badge)
![Known Vulnerabilities](https://snyk.io/test/github/equinor/fusion-workspace/badge.svg)

> Fusion Workspace is a library built with a controller-based structure in mind. Core functionality tab navigation, data handling, and allowing you to register controllers that react around page change / config change and data changes.
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"preinstall": "npx only-allow pnpm",
"first-time-setup": "npm i -g pnpm@8.0.0 turbo && pnpm i",
"first-time-setup": "npm i -g pnpm@9.0.5 turbo && pnpm i",
"build": "turbo run build",
"test": "turbo run test",
"documentation": "pnpx astro dev --root ./documentation",
Expand All @@ -14,7 +14,7 @@
"dev": "turbo run dev --filter ./apps/**"
},
"private": true,
"packageManager": "pnpm@8.0.0",
"packageManager": "pnpm@9.0.5",
"dependencies": {
"tslib": "^2.3.0"
},
Expand All @@ -28,5 +28,8 @@
"turbo": "^1.9.3",
"typescript": "~5.0.2",
"typescript-plugin-styled-components": "^2.0.0"
},
"engines": {
"node": "20"
}
}
2 changes: 1 addition & 1 deletion packages/garden/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-garden",
"version": "7.0.1",
"version": "7.0.2",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const GardenItemContainer = <TData extends Record<PropertyKey, unknown>,

const expand = useExpand();

const isColumnExpanded = !!expand.expandedColumns.find((s) => s === virtualColumn.index);
const isColumnExpanded = expand.expandedColumns.includes(virtualColumn.index);

const {
groupingService: { groupingKeys, timeInterval, dateVariant },
Expand Down
2 changes: 1 addition & 1 deletion packages/power-bi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-powerbi",
"version": "2.0.1",
"version": "2.0.2",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Icon } from '@equinor/eds-core-react';
import { tokens } from '@equinor/eds-tokens';
import { useState, useRef } from 'react';
import { useRef, useState } from 'react';
import styled from 'styled-components';
import { ActiveFilter, PowerBiFilter, PowerBiFilterItem } from '../../types';
import { getFilterHeaderText } from '../../utils/getFilterHeader';
import { FilterController } from '../Filter/Filter';
Expand All @@ -27,6 +28,7 @@ export const PowerBiFilterGroup = ({

return (
<>
{isOpen && <StyledOverlay onClick={() => setIsOpen(false)} />}
<StyledFilterGroupWrapper onClick={() => setIsOpen((s) => !s)} ref={anchorEl}>
<StyledFilterGroupContent>
<div>
Expand Down Expand Up @@ -54,3 +56,13 @@ export const PowerBiFilterGroup = ({
</>
);
};

// Overlay to close the popover when clicking outside it
const StyledOverlay = styled.div`
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999;
`;
2 changes: 1 addition & 1 deletion packages/workspace-fusion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/workspace-fusion",
"version": "8.0.1",
"version": "8.0.3",
"type": "module",
"sideEffects": false,
"license": "MIT",
Expand Down
Loading

0 comments on commit 0711d3d

Please sign in to comment.