diff --git a/README.md b/README.md
index 0ca3a05e..5d791fee 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
[![Discord][discord-image]][discord-url]
[![Developed at Klarna][klarna-image]][klarna-url]
-Gram is Klarna's own [threat model][owasp-tm] diagramming tool developed internally by Klarna's Secure Development team. It is a webapp for engineers to collaboratively create threat models for their systems, providing a easy-to-understand way to document a system as a dataflow diagram with threats/controls attached.
+Gram is Klarna's own [threat model][owasp-tm] diagramming tool developed internally by Klarna's Secure Development team. It is a web app for engineers to collaboratively create threat models for their systems, providing a easy-to-understand way to document a system as a dataflow diagram with threats/controls attached.
![Screenshot](screenshot.png)
diff --git a/app/src/App.js b/app/src/App.js
index e96a78ab..5278b543 100644
--- a/app/src/App.js
+++ b/app/src/App.js
@@ -95,8 +95,8 @@ export default function App() {
sx={{
display: "flex",
flexDirection: "column",
- height: "calc(100% - 64px)", // 64px is the height of Navbar
- maxHeight: "calc(100% - 64px)",
+ height: isFramed ? "100%" : "calc(100% - 64px)", // 64px is the height of Navbar
+ maxHeight: isFramed ? "100%" : "calc(100% - 64px)", // 64px is the height of Navbar
width: "100%",
}}
>
diff --git a/app/src/components/admin/AdminPage.css b/app/src/components/admin/AdminPage.css
deleted file mode 100644
index 7d294201..00000000
--- a/app/src/components/admin/AdminPage.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.row {
- display: flex;
- justify-content: space-between;
- gap: 15px;
-}
-
-.column {
- flex: auto;
-}
-
-#intro {
- margin-bottom: 30px;
-}
diff --git a/app/src/components/admin/AdminPage.js b/app/src/components/admin/AdminPage.js
index 9b4eaa7c..194ddc25 100644
--- a/app/src/components/admin/AdminPage.js
+++ b/app/src/components/admin/AdminPage.js
@@ -1,10 +1,18 @@
-import { Button } from "@mui/material";
+import {
+ Button,
+ Typography,
+ ButtonGroup,
+ List,
+ Link,
+ ListItemText,
+ ListItem,
+} from "@mui/material";
import React from "react";
import { useSetRolesMutation } from "../../api/gram/admin";
import { useGetUserQuery } from "../../api/gram/user";
import { useGetTemplatesQuery } from "../../api/gram/model";
-import "./AdminPage.css";
import { CenteredPage } from "../elements/CenteredPage";
+import Grid from "@mui/material/Grid2";
export default function AdminPage() {
const { data: user } = useGetUserQuery();
@@ -14,52 +22,53 @@ export default function AdminPage() {
return (
- This page contains some admin widgets to help with day-to-day operations
- of Gram. By design, these shouldn't be anyhing too sensitive,
- just stuff to help debug / maintain the application.
-
- Useful if you need to debug authz. Use the below form to set your
- new roles. Login again to get back your admin role.
- Models listed as templates.
- Admin{" "}
- {user?.roles.includes("admin")
- ? ""
- : "(You are not admin, some of the functions here won't work)"}
-
+ Change Role
-
- Templates
-
-
- {templates &&
- templates.map((template) => (
-
-
+ {templates?.map((template) => (
+
+
+ Threat models you recently interacted with +
- Threat models you recently interacted with -
-+ Threat models you recently interacted with +
- Threat models you recently interacted with -
-