PHP UX i18n

Streamlining Onboarding UX in Breniapp

User experience is key to successful onboarding. Small tweaks can have a big impact on how new users perceive and interact with an application. Recent work on Breniapp focused precisely on these kinds of improvements.

Focused UX Enhancements

Several adjustments targeted specific pain points in the onboarding flow:

  • Product Images: The system now supports direct file uploads or links for product images, removing the previous reliance on auto-generation. This gives users more control over their visual assets.
  • Logo Upload: Streamlined the logo upload process by removing the "Brenia Generates" option, simplifying the user interface.
  • Secondary Font: Introduced the ability to upload a font image alongside the font selection, enabling more customization.
  • Visual References: Added a "Continue" button to the visual references screen, ensuring a smooth progression even when aesthetics are pre-generated.

Code Refactoring

In addition to the UX changes, some underlying code was refactored for improved maintainability:

<?php

// Before: Potential issue with unset within a list
function removeElementFromArray(array $items, string $elementToRemove): array {
    $newItems = [];
    foreach ($items as $item) {
        if ($item !== $elementToRemove) {
            $newItems[] = $item;
        }
    }
    return $newItems;
}

// After: More robust and readable filtering
function removeElementFromArray(array $items, string $elementToRemove): array {
    return array_filter($items, function ($item) use ($elementToRemove) {
        return $item !== $elementToRemove;
    });
}

?>

This example shows a refactoring of a function that removes an element from an array. The original code used a loop and conditional unset, which could lead to issues. The refactored version uses array_filter for a more concise and reliable solution.

Internationalization

To ensure these improvements benefit all users, a new translation key (upload_font_photo) was added across multiple languages (English, Spanish, French, German).

Key Takeaways

Small, targeted UX enhancements, combined with code refactoring and internationalization, can significantly improve the onboarding experience and overall quality of an application like Breniapp. By focusing on user feedback and code maintainability, the development team ensures a smoother and more enjoyable experience for everyone.

Streamlining Onboarding UX in Breniapp
GERARDO RUIZ

GERARDO RUIZ

Author

Share: