Repository navigation
feat: enable dynamic sidebar tabs customization - #3533
Merged
Merged
Conversation
aglinxinyuan
requested changes
Jul 8, 2025
aglinxinyuan
requested changes
Jul 8, 2025
aglinxinyuan
left a comment
Contributor
There was a problem hiding this comment.
We had another offline discussion, and we will not store metadata of tabs on the backend. We will only store the enabled value.
aglinxinyuan
requested changes
Jul 14, 2025
aglinxinyuan
approved these changes
Jul 15, 2025
aglinxinyuan
left a comment
Contributor
There was a problem hiding this comment.
Looks good! Please remove the leftover variables related to the old hubEnabled, forumEnabled, and projectEnabled settings from both the frontend and backend. This may include files like core/gui/src/app/common/type/gui-config.ts, core/config/src/main/resources/gui.conf, and potentially other locations.
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
### **Purpose** This PR extends the new [configuration-CRUD framework](apache#3528) to sidebar navigation. Admins can now toggle entire groups or individual menu items from Admin → General Settings → Sidebar Tabs based on values retrieved from the database; no service restarts required. ### **Changes** - gui/../admin/settings/admin-setting.component.ts/html/scss: Added the "Sidebar Tabs" card for tabs enable/disable/reset - gui/..component/dashboard.component.ts/html: Integrated sidebar tab rendering based on values pulled from the database. - gui/src/app/hub/component/hub.component.ts/html: Applied new sidebar tab variable sourced from the database. - config/../resource/default.conf: Added individual default tab keys and moved Admin out as a top-level group - GuiConfig.scala/ConfigResoource.scala/gui.conf/gui-config.service.mock.ts/gui-config.ts: Removed sidebar tab config entries: hubEnabled, projectEnabled, forumEnabled - **Message Display** - Tabs Toggle - Success: "{Tab Name} tab saved successfully." (e.g., "Hub tab saved successfully.") - Error: "Failed to save {Tab Name} tab." - Reset Tabs - Shows "Resetting tabs..." immediately after clicking the reset button. - Shows error for each failed tab: "Failed to reset {Tab Name}." - Page reloads after 0.5 second ### **Demonstration** Setting Page: <img width="1440" height="905" alt="setting-page" src="https://github.com/user-attachments/assets/c0b954f3-97e3-46c5-9a42-9e3e97dabccf" /> Before customization: <img width="300" height="484" alt="tabs" src="https://github.com/user-attachments/assets/bae215cf-3473-45fa-8485-053b9dbad21d" /> After customization (Hub disabled and hidden) <img width="1438" height="912" alt="no-hub" src="https://github.com/user-attachments/assets/fd2bcab8-d9bc-4e0a-a750-2fdb3c53558d" /> --------- Co-authored-by: Xinyuan Lin <[email protected]>
1 of 6 tasks
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
### **Purpose** This PR extends the new [configuration-CRUD framework](apache#3528) to sidebar navigation. Admins can now toggle entire groups or individual menu items from Admin → General Settings → Sidebar Tabs based on values retrieved from the database; no service restarts required. ### **Changes** - gui/../admin/settings/admin-setting.component.ts/html/scss: Added the "Sidebar Tabs" card for tabs enable/disable/reset - gui/..component/dashboard.component.ts/html: Integrated sidebar tab rendering based on values pulled from the database. - gui/src/app/hub/component/hub.component.ts/html: Applied new sidebar tab variable sourced from the database. - config/../resource/default.conf: Added individual default tab keys and moved Admin out as a top-level group - GuiConfig.scala/ConfigResoource.scala/gui.conf/gui-config.service.mock.ts/gui-config.ts: Removed sidebar tab config entries: hubEnabled, projectEnabled, forumEnabled - **Message Display** - Tabs Toggle - Success: "{Tab Name} tab saved successfully." (e.g., "Hub tab saved successfully.") - Error: "Failed to save {Tab Name} tab." - Reset Tabs - Shows "Resetting tabs..." immediately after clicking the reset button. - Shows error for each failed tab: "Failed to reset {Tab Name}." - Page reloads after 0.5 second ### **Demonstration** Setting Page: <img width="1440" height="905" alt="setting-page" src="https://github.com/user-attachments/assets/c0b954f3-97e3-46c5-9a42-9e3e97dabccf" /> Before customization: <img width="300" height="484" alt="tabs" src="https://github.com/user-attachments/assets/bae215cf-3473-45fa-8485-053b9dbad21d" /> After customization (Hub disabled and hidden) <img width="1438" height="912" alt="no-hub" src="https://github.com/user-attachments/assets/fd2bcab8-d9bc-4e0a-a750-2fdb3c53558d" /> --------- Co-authored-by: Xinyuan Lin <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This PR extends the new configuration-CRUD framework to sidebar navigation. Admins can now toggle entire groups or individual menu items from Admin → General Settings → Sidebar Tabs based on values retrieved from the database; no service restarts required.
Changes
Demonstration
Setting Page:

Before customization:

After customization (Hub disabled and hidden)
