Refactor forms across multiple pages for improved user experience and consistency
Refactor code structure for improved readability and maintainability
Refactor profile and authentication pages for improved localization and user experience
- Updated profile pages (collabProfil.php, orgProfil.php) to use localized strings for headings and labels.
- Enhanced modification forms (modifClient.php, modifProfil.php) to utilize localization for success messages and field labels.
- Improved password reset and email verification processes (passOubli.php, passReset.php, verifMail.php) with localized error and success messages.
- Refactored signup and signin pages (signup.php, signin.php) to incorporate localization for user prompts and error messages.
- Removed deprecated database connection file and streamlined database connection logic in db.php.
- Updated email templates (mailChange.php, mailCollab.php, mailPass.php, mailSub.php) to use localized messages for email content.
- Enhanced JavaScript pagination logic to dynamically set rows per page based on user input.
- Added logging for email actions to track sent emails for debugging purposes.
Refactor language handling and improve user feedback
- Replaced hardcoded email verification messages with dynamic translations using the `langs` function across multiple files including modifFacture.php, ajoutMarche.php, and others.
- Implemented a session-based language management system in db.php, allowing users to switch languages dynamically.
- Added AJAX functionality for language switching in ajax_langs.php, enabling seamless updates without page reloads.
- Updated the head.php file to reflect the current language in the HTML tag and navigation elements.
- Enhanced CSS and JavaScript to support the new language toggle feature in the header.
- Improved the inputText function in partsAsFuncs.php to check user permissions before fetching data for datalists.
Refactor and enhance various pages for improved functionality and maintainability
- Updated index.php in FACTURES to streamline input handling and improve user experience with new input functions.
- Modified index.php in MARCHES to enhance search functionality and improve code readability.
- Refactored modifMarche.php to standardize delete and restore actions with consistent naming conventions.
- Improved index.php in PRODUITS for better search handling and user permissions.
- Updated modifProduit.php to align with new delete and restore action naming conventions.
- Added partsAsFuncs.php to centralize common input and sorting functions for better code reuse.
- Updated database connection file to include new partsAsFuncs.php.
- Enhanced functions.php to include a section for parts as functions.
- Upgraded Plotly library version in head.php for better charting capabilities.
- Created indexcopy.php in ACHATS for handling product purchases with improved filtering and display logic.
Refactor tables and pagination for improved layout and usability
- Updated table structures in form_Facture.php, index.php (FACTURES), index.php (MARCHES), index.php (PRODUITS) to include overflow styling for better responsiveness.
- Enhanced pagination functionality in JavaScript to dynamically create page buttons and improve navigation.
- Adjusted CSS styles for tables, pagination, and main content area to enhance visual consistency and responsiveness.
- Removed unnecessary commented code and improved overall code readability.
feat: Update table styling and add search fields for invoices, enhancing usability and layout
feat: Refactor database query handling and improve search functionality in products and markets
feat: Implement pagination for product and invoice listings and enhance CSS for pagination styling
fix: Correct date format in index.php and reorder function inclusion in db.php
Fix various PHP errors and warnings in email handling and signup processes
- Resolved fatal error due to missing PHPMailer class in mail.php.
- Addressed multiple warnings related to missing files (apm.js) in footer.php.
- Handled undefined array keys in signup.php and signout.php.
- Fixed issues with undefined variables in email verification scripts.
- Corrected SMTP errors related to recipient address rejection.
- Ensured proper inclusion of required files in autoload.php.
feat: Remove unnecessary function includes across multiple files
feat: Implement input sanitization and HTML escaping across various modules
feat: Enhance user and organization management features
- Added admin account display in users.php with details.
- Updated facture.php for trashed invoice checks and permissions.
- Streamlined index.php sorting links and removed unnecessary parameters.
- Improved modifFacture.php for better invoice restoration logic.
- Introduced recent updates display in main index.php.
- Enhanced orgadmin functionalities for restore permissions.
- Updated collabProfil.php to show additional organization details.
- Refactored userfetching.php for correct organization detail fetching and new organization insertion.
- Improved form styling in apm.css for better presentation.
- Added JavaScript for optimizing user roles based on categories.
- Created adminProfil.php for admin-specific profile management.
- Implemented modifOrg.php for organization profile updates.
feat: Enhance user management and admin functionalities
- Added a new section in the users.php file to display admin accounts with details such as username, email, and rank.
- Updated facture.php to include checks for trashed invoices and permissions for viewing and restoring invoices.
- Modified index.php to remove unnecessary trashed parameter and streamline sorting links.
- Improved modifFacture.php by removing redundant queries related to trashed products and enhancing invoice restoration logic.
- Introduced new features in the main index.php to display recent updates and changes in the application.
- Updated orgadmin functionalities to include restore permissions for organization roles.
- Enhanced collabProfil.php to display additional organization details for collaborators.
- Refactored userfetching.php to ensure organization details are fetched correctly and added logic to insert new organizations if not found.
- Improved styling in apm.css for better form presentation.
- Added JavaScript functionality for optimizing user roles based on selected categories.
- Created new adminProfil.php for admin-specific profile management.
- Implemented modifOrg.php for organization profile updates.
Implement soft delete and restore functionality for invoices, markets, and products
- Updated invoice handling to allow soft deletion and restoration of invoices, including associated products.
- Modified market management to support soft deletion and restoration, ensuring related invoices are also affected.
- Enhanced product management with soft delete and restore capabilities, adjusting invoice totals accordingly.
- Added UI elements for restoring and permanently deleting items across invoices, markets, and products.
- Improved database queries to accommodate trashed states for better data management.
Implement soft delete functionality across various modules by adding 'trashed' flag checks in SQL queries and updating delete operations to set 'trashed' instead of actual deletion.
This includes modifications in the MARCHES, ORGADMIN, PRODUITS, and SIGN modules, as well as adjustments in email handling and user fetching functions.
Additionally, remove unused email invitation scripts and update email logging mechanisms.
Refactor user privilege handling across modules;
update permission checks for Factures and Rangs;
enhance user interface for organizations and collaborators;
improve email invitation logic; streamline user fetching logic;
add new profile modification page for organizations;
optimize CSS for better responsiveness; log email invitations;
adjust user session management for better access control.
Refactor permission checks in facture modification and deletion;
enhance user privilege handling across modules;
remove unused AJAX functionality;
update organization roles management;
improve user interface for organization collaborators;
streamline CSS media queries for better responsiveness;
fix email invitation logic for collaborators;
optimize user fetching logic and access control functions.
Refactor user management system; enhance privilege handling, implement organization roles, and streamline user category changes
Refactor user privilege handling; implement organization roles and enhance access control across various modules
Refactor user privilege handling; update database schema and enhance AJAX interactions for organization roles
Refactor user session handling and permissions
- Updated session checks from 'user' to 'userId' for consistency across signup and organization signup pages.
- Changed database table references from 'users' to 'user' in signup processes.
- Removed obsolete USERS index and user detail pages, consolidating user management under ADMIN.
- Added new functionalities for currency management, including addition, modification, and deletion of currencies.
- Implemented user fetching logic to streamline user data retrieval and permission checks.
- Enhanced error handling and success messaging throughout the application.
- Updated head and footer includes to reflect new session variables and messages.
Refactor user management and collaboration features
- Removed obsolete orgRangs.php file and related logic.
- Updated passOubli.php and passReset.php to use the new user table structure.
- Simplified signin.php and removed signinOrg.php as part of the user management overhaul.
- Enhanced signup.php to include category selection for users (client, collaborator, organization).
- Implemented logic for changing user categories in form_profil.php and logic_profil.php.
- Added new collabProfil.php for displaying collaborator profiles.
- Introduced email invitation functionality for collaboration in invitCollab.php.
- Updated email templates for verification and password reset to include token validation.
- Improved CSS for better visibility of table headers.
- Added JavaScript to dynamically show/hide organization ID input based on user category selection.
- Cleaned up email logging functionality in mail.php.
Refactor user privilege checks and improve access control
- Simplified privilege checks in various files by using a new structure for user scopes.
- Updated access control logic in index.php files to utilize the new scope system.
- Added return links to various forms for better navigation.
- Removed redundant privilege fetching logic from client profile.
- Consolidated user and organization privilege handling in signin and signup processes.
- Removed the org.php file as it was deemed unnecessary after restructuring.
- Improved error messages for better user experience during sign-in and sign-up.