Skip to content

Commit

Permalink
Update tekled radar
Browse files Browse the repository at this point in the history
  • Loading branch information
Amalie Henni authored and Amalie Henni committed Dec 18, 2024
1 parent 54bd476 commit d842473
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 35 deletions.
10 changes: 0 additions & 10 deletions capra-fagradar/src/tech-leader-radar/Prosess/prince2.mdx

This file was deleted.

42 changes: 21 additions & 21 deletions capra-fagradar/src/tech-leader-radar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createElement } from 'react';
import { type Blip, Radar, type Quadrant } from '../radar';
import type { ModuleNamespace } from 'vite/types/hot.js';
import { createElement } from "react";
import { type Blip, Radar, type Quadrant } from "../radar";
import type { ModuleNamespace } from "vite/types/hot.js";

// Dynamically import all mdx files in current dir
const modules = import.meta.glob('./**/*.mdx', {
const modules = import.meta.glob("./**/*.mdx", {
eager: true,
}) as ModuleNamespace;
const unsortedBlips: Blip[] = [];
Expand All @@ -23,7 +23,7 @@ for (const modulePath in modules) {
});
}

const quadrants = ['Organisasjon', 'Prosess', 'Folk', 'Teknologi'];
const quadrants = ["Organisasjon", "Prosess", "Folk", "Teknologi"];

const blips = unsortedBlips
.sort((a, b) => (a.depth || 0) - (b.depth || 0))
Expand All @@ -36,28 +36,28 @@ const blips = unsortedBlips
export const TechLeaderRadar = () => {
const quadrants = [
{
name: 'Organisasjon',
orientation: 'top-left',
blipColor: '#47A1AD',
blips: [...blips.filter((item) => item.quadrant === 'Organisasjon')],
name: "Organisasjon",
orientation: "top-left",
blipColor: "#47A1AD",
blips: [...blips.filter((item) => item.quadrant === "Organisasjon")],
},
{
name: 'Teknologi',
orientation: 'top-right',
blipColor: '#6B9E78',
blips: [...blips.filter((item) => item.quadrant === 'Teknologi')],
name: "Teknologi",
orientation: "top-right",
blipColor: "#6B9E78",
blips: [...blips.filter((item) => item.quadrant === "Teknologi")],
},
{
name: 'Folk',
orientation: 'bottom-left',
blipColor: '#CC8508',
blips: [...blips.filter((item) => item.quadrant === 'Folk')],
name: "Folk",
orientation: "bottom-left",
blipColor: "#CC8508",
blips: [...blips.filter((item) => item.quadrant === "Folk")],
},
{
name: 'Prosess eller arbeid?',
orientation: 'bottom-right',
blipColor: '#E16A7B',
blips: [...blips.filter((item) => item.quadrant === 'Prosess')],
name: "Prosess",
orientation: "bottom-right",
blipColor: "#E16A7B",
blips: [...blips.filter((item) => item.quadrant === "Prosess")],
},
] satisfies [Quadrant, Quadrant, Quadrant, Quadrant];

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id:
name: Conways lov (Er denne fjerna?)
name: Conways lov
depth: 1
quadrant: Organisasjon
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id:
name: Flight Levels (Er denne fjerna?)
name: Flight Levels
depth: 3
quadrant: Organisasjon
is_new: true
Expand Down
2 changes: 1 addition & 1 deletion capra-fagradar/src/tech-leader-radar/organisasjon/less.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id:
name: LeSS (fjernes?)
name: LeSS
depth: 4
quadrant: Organisasjon
is_new: true
Expand Down
2 changes: 1 addition & 1 deletion capra-fagradar/src/tech-leader-radar/organisasjon/safe.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id:
name: SAFe (fjernes?)
name: SAFe
depth: 4
quadrant: Organisasjon
---
Expand Down

0 comments on commit d842473

Please sign in to comment.