From f09b02d48349439b5faaa60f62538938df197089 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 11:47:27 +0000 Subject: [PATCH 01/12] Initial plan From 281b7a83e16ee898821d8c7a7535a633422a121c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 11:52:05 +0000 Subject: [PATCH 02/12] Add hideFromWorkspace configuration option Co-authored-by: JDB321Sailor <212125521+JDB321Sailor@users.noreply.github.com> --- src/components/Workspace/SideBar.vue | 7 +++- src/utils/ConfigSchema.json | 6 ++++ user-data/conf.yml | 2 ++ user-data/conf.yml.backup | 49 ++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 user-data/conf.yml.backup diff --git a/src/components/Workspace/SideBar.vue b/src/components/Workspace/SideBar.vue index 2c85a167..f4fa261e 100644 --- a/src/components/Workspace/SideBar.vue +++ b/src/components/Workspace/SideBar.vue @@ -83,7 +83,12 @@ export default { if (!allTiles) { return []; } - return allTiles.filter((tile) => checkItemVisibility(tile)); + return allTiles.filter((tile) => { + // Check user visibility and also check if item should be hidden from workspace + const isVisible = checkItemVisibility(tile); + const hideFromWorkspace = tile.displayData?.hideFromWorkspace || false; + return isVisible && !hideFromWorkspace; + }); }, }, mounted() { diff --git a/src/utils/ConfigSchema.json b/src/utils/ConfigSchema.json index 92039798..7e28b505 100644 --- a/src/utils/ConfigSchema.json +++ b/src/utils/ConfigSchema.json @@ -1041,6 +1041,12 @@ } } } + }, + "hideFromWorkspace": { + "title": "Hide from Workspace", + "type": "boolean", + "default": false, + "description": "If set to true, item will be visible in the default view but not in the Workspace view sidebar" } } }, diff --git a/user-data/conf.yml b/user-data/conf.yml index 5f0b012a..0c5512cc 100644 --- a/user-data/conf.yml +++ b/user-data/conf.yml @@ -36,6 +36,8 @@ sections: description: See how others are using Dashy url: https://github.com/Lissy93/dashy/blob/master/docs/showcase.md icon: far fa-grin-hearts + displayData: + hideFromWorkspace: true - title: Config Guide description: See full list of configuration options url: https://github.com/Lissy93/dashy/blob/master/docs/configuring.md diff --git a/user-data/conf.yml.backup b/user-data/conf.yml.backup new file mode 100644 index 00000000..0c5512cc --- /dev/null +++ b/user-data/conf.yml.backup @@ -0,0 +1,49 @@ +--- +# Page meta info, like heading, footer text and nav links +pageInfo: + title: Dashy + description: Welcome to your new dashboard! + navLinks: + - title: GitHub + path: https://github.com/Lissy93/dashy + - title: Documentation + path: https://dashy.to/docs + +# Optional app settings and configuration +appConfig: + theme: colorful + +# Main content - An array of sections, each containing an array of items +sections: +- name: Getting Started + icon: fas fa-rocket + items: + - title: Dashy Live + description: Development a project management links for Dashy + icon: https://i.ibb.co/qWWpD0v/astro-dab-128.png + url: https://live.dashy.to/ + target: newtab + - title: GitHub + description: Source Code, Issues and Pull Requests + url: https://github.com/lissy93/dashy + icon: favicon + - title: Docs + description: Configuring & Usage Documentation + provider: Dashy.to + icon: far fa-book + url: https://dashy.to/docs + - title: Showcase + description: See how others are using Dashy + url: https://github.com/Lissy93/dashy/blob/master/docs/showcase.md + icon: far fa-grin-hearts + displayData: + hideFromWorkspace: true + - title: Config Guide + description: See full list of configuration options + url: https://github.com/Lissy93/dashy/blob/master/docs/configuring.md + icon: fas fa-wrench + - title: Support + description: Get help with Dashy, raise a bug, or get in contact + url: https://github.com/Lissy93/dashy/blob/master/.github/SUPPORT.md + icon: far fa-hands-helping + \ No newline at end of file From 182101cfddd0bdb59b1abf5cbc8f964cbe2f6cc4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 11:54:47 +0000 Subject: [PATCH 03/12] Add documentation for hideFromWorkspace option Co-authored-by: JDB321Sailor <212125521+JDB321Sailor@users.noreply.github.com> --- docs/configuring.md | 1 + user-data/conf.yml.backup | 49 --------------------------------------- 2 files changed, 1 insertion(+), 49 deletions(-) delete mode 100644 user-data/conf.yml.backup diff --git a/docs/configuring.md b/docs/configuring.md index 62b876f7..b15fbd1f 100644 --- a/docs/configuring.md +++ b/docs/configuring.md @@ -280,6 +280,7 @@ For more info, see the **[Authentication Docs](/docs/authentication.md)** **`hideForGuests`** | `boolean` | _Optional_ | Current item will be visible for logged in users, but not for guests (see `appConfig.enableGuestAccess`). Defaults to `false` **`hideForKeycloakUsers`** | `object` | _Optional_ | Current item will be visible to all keycloak users, except for those configured via these groups and roles. See `hideForKeycloakUsers` **`showForKeycloakUsers`** | `object` | _Optional_ | Current item will be hidden from all keycloak users, except for those configured via these groups and roles. See `showForKeycloakUsers` +**`hideFromWorkspace`** | `boolean` | _Optional_ | Current item will be visible in the default view but not in the Workspace view sidebar. Defaults to `false` **[⬆️ Back to Top](#configuring)** diff --git a/user-data/conf.yml.backup b/user-data/conf.yml.backup deleted file mode 100644 index 0c5512cc..00000000 --- a/user-data/conf.yml.backup +++ /dev/null @@ -1,49 +0,0 @@ ---- -# Page meta info, like heading, footer text and nav links -pageInfo: - title: Dashy - description: Welcome to your new dashboard! - navLinks: - - title: GitHub - path: https://github.com/Lissy93/dashy - - title: Documentation - path: https://dashy.to/docs - -# Optional app settings and configuration -appConfig: - theme: colorful - -# Main content - An array of sections, each containing an array of items -sections: -- name: Getting Started - icon: fas fa-rocket - items: - - title: Dashy Live - description: Development a project management links for Dashy - icon: https://i.ibb.co/qWWpD0v/astro-dab-128.png - url: https://live.dashy.to/ - target: newtab - - title: GitHub - description: Source Code, Issues and Pull Requests - url: https://github.com/lissy93/dashy - icon: favicon - - title: Docs - description: Configuring & Usage Documentation - provider: Dashy.to - icon: far fa-book - url: https://dashy.to/docs - - title: Showcase - description: See how others are using Dashy - url: https://github.com/Lissy93/dashy/blob/master/docs/showcase.md - icon: far fa-grin-hearts - displayData: - hideFromWorkspace: true - - title: Config Guide - description: See full list of configuration options - url: https://github.com/Lissy93/dashy/blob/master/docs/configuring.md - icon: fas fa-wrench - - title: Support - description: Get help with Dashy, raise a bug, or get in contact - url: https://github.com/Lissy93/dashy/blob/master/.github/SUPPORT.md - icon: far fa-hands-helping - \ No newline at end of file From 3e30ea04f9e7a90d834124acc449d0eb86d359ab Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 11:55:53 +0000 Subject: [PATCH 04/12] Remove test changes from conf.yml Co-authored-by: JDB321Sailor <212125521+JDB321Sailor@users.noreply.github.com> --- user-data/conf.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/user-data/conf.yml b/user-data/conf.yml index 0c5512cc..5f0b012a 100644 --- a/user-data/conf.yml +++ b/user-data/conf.yml @@ -36,8 +36,6 @@ sections: description: See how others are using Dashy url: https://github.com/Lissy93/dashy/blob/master/docs/showcase.md icon: far fa-grin-hearts - displayData: - hideFromWorkspace: true - title: Config Guide description: See full list of configuration options url: https://github.com/Lissy93/dashy/blob/master/docs/configuring.md From e072a2fffc5158d893be2ad9d33af51d61e00c02 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 12:54:30 +0000 Subject: [PATCH 05/12] Initial plan From 4bde34c3b125bdfe2861ecab2375ffd8317c1245 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 13:02:12 +0000 Subject: [PATCH 06/12] Add hideFromWorkspace support at section level in ConfigSchema and SideBar component Co-authored-by: JDB321Sailor <212125521+JDB321Sailor@users.noreply.github.com> --- docs/configuring.md | 1 + src/components/Workspace/SideBar.vue | 22 +++++++++++++++++----- src/utils/ConfigSchema.json | 6 ++++++ 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/docs/configuring.md b/docs/configuring.md index b15fbd1f..6ab3c91f 100644 --- a/docs/configuring.md +++ b/docs/configuring.md @@ -318,6 +318,7 @@ For more info, see the **[Authentication Docs](/docs/authentication.md)** **`hideForGuests`** | `boolean` | _Optional_ | Current section will be visible for logged in users, but not for guests (see `appConfig.enableGuestAccess`). Defaults to `false` **`hideForKeycloakUsers`** | `object` | _Optional_ | Current section will be visible to all keycloak users, except for those configured via these groups and roles. See `hideForKeycloakUsers` **`showForKeycloakUsers`** | `object` | _Optional_ | Current section will be hidden from all keycloak users, except for those configured via these groups and roles. See `showForKeycloakUsers` +**`hideFromWorkspace`** | `boolean` | _Optional_ | Current section will be visible in the default view but not in the Workspace view sidebar. Defaults to `false` **[⬆️ Back to Top](#configuring)** diff --git a/src/components/Workspace/SideBar.vue b/src/components/Workspace/SideBar.vue index f4fa261e..213c447c 100644 --- a/src/components/Workspace/SideBar.vue +++ b/src/components/Workspace/SideBar.vue @@ -1,6 +1,6 @@