Skip to content

Display requests in the Dashboard#2498

Draft
hectorcorrea wants to merge 4 commits intomainfrom
2470-requests-tab
Draft

Display requests in the Dashboard#2498
hectorcorrea wants to merge 4 commits intomainfrom
2470-requests-tab

Conversation

@hectorcorrea
Copy link
Member

Replace the "Requests" button and instead display the requests directly in the Dashboard under a new tab named "Requests"

Closes #2470

// const tab = document.getElementById('tab-nav');
styleTab("#dash-projects", project);
styleTab("#dash-admin", admin);
styleTab("#dash-requests", requests);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the original code into a function styleTab() and call it for each tab.

});
setupTab("#dash-projects", "/dash_project", "project");
setupTab("#dash-admin", "/dash_admin", "admin");
setupTab("#dash-requests", "/dash_requests", "requests");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto, made the original code into a function setupTab() and call it for each tab.

globusAccessPopover.hidePopover();
triggerMailer(projectId);
});
if (switchGlobusPopover !== null) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is technically not part of this GitHub ticket, but added an if statement to prevent this code from executing when the switchGlobusPopover is not on the page that way we don't get an error in JavaScript console every time it executes in pages that don't need it.

@coveralls
Copy link

coveralls commented Mar 19, 2026

Coverage Status

coverage: 90.831% (-0.1%) from 90.956%
when pulling a51c5ac on 2470-requests-tab
into 687af99 on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace "Requests" button with "Requests" tab

2 participants