Dash #57 Display DT Home Screen Apps#59
Merged
corsacca merged 5 commits intoJan 13, 2026
Merged
Conversation
kodinkat
commented
Dec 18, 2025
Contributor
- fixes: D.T homescreen apps #57
- see: Support Dash #57 Display DT Home Screen Apps disciple-tools-theme#2817
- Introduced a new Home Screen Apps tile in the dashboard, allowing users to view their apps in a horizontally scrolling carousel. - Registered the new tile in `disciple-tools-dashboard.php` with a priority for display. - Added JavaScript functionality in `scripts.js` to handle app rendering and user interactions. - Created accompanying CSS styles in `style.css` for the tile layout and responsiveness. - Developed a template file `template.php` to structure the tile's HTML output.
- Removed unnecessary whitespace in the `register_tiles` method of `disciple-tools-dashboard.php`. - Ensured consistent formatting for better code clarity.
- Implemented a debounce function for handling window resize events to improve performance. - Added dynamic limiting for visible app cards based on the carousel's width. - Introduced a "Show More" card that links to additional apps, with conditional rendering based on user activation. - Updated CSS styles for improved layout, including hidden app cards for scrolling and responsive adjustments. - Modified template to include the "Show More" URL for better user navigation.
Contributor
Author
- Changed the method of retrieving apps from a filter hook to a direct method call using `DT_Home_Apps::instance()->get_apps_for_frontend( 'app' )`. - Updated comments to reflect the new approach for clarity.
corsacca
reviewed
Jan 9, 2026
| const appHost = appUrlObj.hostname; | ||
| const isCrossDomain = appHost !== currentHost && appHost !== window.location.hostname; | ||
|
|
||
| //if (isCrossDomain) { |
Member
There was a problem hiding this comment.
I didn't quite follow some of the logic. It looks like sometimes we're opening apps and new tabs and sometimes not?
On my instance, they all opened in new tabs.
Member
|
Concerns:
|
Member
|
@kodinkat |
Contributor
For these js issues, it might be worth looking at the code updates I made to the home screen scripts that were just merged into develop today. I think the same script file might be able to be included on the dashboard in order to share code. |
- Added functions to validate URLs and escape them for safe use in HTML onclick attributes, preventing XSS attacks. - Updated app card click handling to ensure only validated URLs are used, enhancing security. - Improved CSS specificity for icon styles and adjusted spinner display properties. - Refactored template to handle early returns for missing class definitions, preventing potential errors.
Contributor
Author
Member
|
Thanks @kodinkat! |
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.




