Skip to content

Refactor trainee_tasks: Extract assets, clean code structure, and update layouts#299

Open
Paulopk0 wants to merge 2 commits into
mainfrom
paulo-patch-12
Open

Refactor trainee_tasks: Extract assets, clean code structure, and update layouts#299
Paulopk0 wants to merge 2 commits into
mainfrom
paulo-patch-12

Conversation

@Paulopk0
Copy link
Copy Markdown
Member

Description

Comprehensive refactoring of the trainee_tasks module to improve codebase organization, decouple front-end logic from PHP, optimize third-party library loading, and expand the main table functionality with new data fields.

Changes

  • Asset Optimization: Removed obsolete local library files (jquery.min.js, bootstrap.min.css, etc.) and replaced them with global standardized sources.
  • Separation of Concerns:
    • Extracted table manipulation JavaScript into trainee_tasks.js.
    • Created bootstrap.php to handle shared visual component classes and CSS bootstrapping.
  • New Backend Features:
    • Added trainee_tasks_language_helper.php and introduced dynamic JSON configuration via tasks.programming.languages.json to manage task programming languages.
  • Layout Enhancements:
    • Refactored display layouts in index.php and public.php to include grouped data links, an icon-based languages column, and tracked activity hours (HRS).
    • Migrated layout utilities to trainee_tasks_styles.css.
  • Code Cleanups: Dropped .php extensions from internal navigation links and normalized the local environment loader in conexao.php.

@Paulopk0 Paulopk0 force-pushed the paulo-patch-12 branch 2 times, most recently from 904d110 to cdd6855 Compare May 13, 2026 18:58
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.

1 participant