Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emge/menu and settings #303

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Emge/menu and settings #303

wants to merge 4 commits into from

Conversation

emgerold
Copy link
Contributor

  • new layout for menu page
  • new layout for subpages of menu (my account, settings,...)

This is a first-impression branch!

If you like the style I think we have to discuss a few general interactions on the site to provide a standardised interface. I am happy to discuss it :-)

Copy link

reviewpad bot commented Nov 23, 2023

AI-Generated Summary: This pull request introduces substantial updates in the application concerning typography, link styling, translations, user interface, and Firebase authentication functionality:

  1. Fonts.css has been updated with new classes and global properties, and enhanced styling directives for links and typography.

  2. A new TypeScript declaration file global.d.ts was created to augment the Window interface with an optional recaptchaWidgetId property.

  3. Language translation JSON files for German, French, and English were updated with new key-value pairs and other modifications imrpoving login features and adding new translation strings.

  4. User profile interface, menu, back arrow component, settings, my account, contact support, and several page layouts (Driver/RouteSummary.tsx, Profile/Settings.tsx, Sender/RequestSummary.tsx, MyAccount.tsx, ContactSupport.tsx, ProfilePagesLayout.tsx) have been refactored or updated. These changes include new states,handlers, UI enhancements, form field layout changes, style class changes, functionality updates, and more to improve user experience and code readability.

  5. FirebaseAuth component and FirebaseAuth.tsx file received significant updates. New states, useEffect hooks, and multiple function handlers for managing user sign in, Recaptcha verification, and transitions between different user journey stages were added.

  6. CSS rules and styling were extended in Core.css, Forms.css, and Icons.css. New style rules were added for back-link class, modals, form elements, and icon styling.

  7. The .gitignore file was updated with a new rule to ignore 'portatoapp.code-workspace' files, preventing them from being tracked by Git.

These critical updates require comprehensive testing for the authentication functionality, updated interface, and compatibility of the CSS changes with existing design aspects. Also, the introduced translation strings should be validated for accuracy and appropriateness.

Copy link

github-actions bot commented Nov 23, 2023

Visit the preview URL for this PR (updated for commit c3ab914):

https://portatodev--pr303-emge-menu-and-settin-r9b1lc44.web.app

(expires Sat, 16 Dec 2023 11:58:37 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 1ad69377d0acebce2cf10d7d9603fe0f03acd164

…u-and-settings

# Conflicts:
#	src/CSS/Fonts.css
#	src/CSS/Icons.css
#	src/Components/FirebaseAuth.tsx
#	src/Translation/English/translation.json
#	src/Translation/French/translation.json
#	src/Translation/German/translation.json
Copy link

reviewpad bot commented Dec 9, 2023

AI-Generated Summary: This pull request covers a wide range of modifications across several files focused on UX, UI, and localization. Key changes include the following:

  1. .gitignore file was updated to avoid accidental commits of personal 'VS Code' workspace settings.

  2. The BackArrow component was refactored for enhanced customization and localization. Localization support is introduced via the React-i18next's useTranslation hook.

  3. Significant changes were made to the UI components, such as ContactSupport.tsx, Settings.tsx and Menu.tsx among others. These changes enhanced the layout, styling, and user experience. Notably, new components were imported and existing ones replaced or rearranged for improved layouts.

  4. Several CSS files namely Fonts.css, Core.css, and Forms.css were updated with added css classes, style modifications and style additions. This has resulted in more consistent appearance and enhanced visual design along with improved handling of various UI elements.

  5. Translation files were updated across French, German and English versions for enhanced localization. These updates accommodate new items and changes in existing translations.

  6. Modifications in the ProfilePagesLayout.tsx and MyAccount.tsx files reflect revamping of profiles page layout and restructuring of form layout respectively.

Overall, these changes bring about a more versatile UI, improved UX design, enhanced localization and better management of developer environments. The pull request is extensive, impacting several components, styles, and translations. Care must be taken to thoroughly validate these changes across different environments.

Copy link

reviewpad bot commented Dec 9, 2023

AI-Generated Summary: This pull request introduces various changes across multiple files, mainly focusing on frontend enhancements and multilingual support:

  1. Addition of new key-value pairs in the English, German, and French translation files. These additions support new terms, mainly the "Back" button, in these languages.

  2. Major UI layout and appearance overhaul in files such as Profile.css, MyAccount.tsx, Forms.css, ContactSupport.tsx, Settings.tsx, Core.css, ProfilePagesLayout.tsx and Fonts.css. This includes updates to existing CSS rules, introduction of new ones, deletion of some elements, addition of new components, migration from inline styles to CSS classes, and changes to the structure of the components. Several files also indicate the addition of a BackButton component, enhancing UI navigation.

  3. Updates to the .gitignore file to exclude the portatoapp.code-workspace file from version control.

  4. Refactoring of the BackArrow component to switch from a hardcoded button to a more flexible, i18n-supported component using class-based styling.

  5. Changes to the Menu.tsx, including a revamp of the visual presentation while keeping the functionality largely unchanged.

  6. Updates in Icons.css including addition of two new CSS selectors.

Considering the overall changes made in all files, this pull request appears to be focused on improving user interface and experience, enhancing multilingual support, and implementing better coding practices and cleaner codebase. These changes might bring significant differences in the visual appeal of the website/application, while also enhancing navigational efficiency. It is recommended to validate these changes on various screen sizes and configurations to ensure as-expected display and functionality.

@mischakolbe
Copy link
Contributor

Minor thing:
The language selection defaults to no selection and allows deselecting all buttons. This should probably be radio-buttons, where exactly one button is active at any time.
image

@mischakolbe
Copy link
Contributor

When I'm in the "My Account" or "Settings" page, I can't click the "Menu" button in the bottom toolbar anymore, to get back to the profile page. I think that button should bring the user to the Profile overview, no matter which sub-menu they're in.

Copy link
Contributor

@mischakolbe mischakolbe left a comment

Choose a reason for hiding this comment

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

Mostly just minor things, but setting to "Request changes" because of the removal of the admin window and such.

onClick={handleAdminClick}
className="settings-list-item"
>
{t('navigationMenu.adminWindow')}
Copy link
Contributor

Choose a reason for hiding this comment

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

With this change we'd lose the adminWindow. That would be good to keep.


.settings-card {
background-color: var(--color-green-lighter);
/*background-color: var(--color-green-lighter);*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Feel free to remove these settings entirely. I'd rather re-write a few lines than accruing zombie code over time.

<Form className="portato-form">
<div className="input-wrapper">
<label>{t('settings.languageLabel')}</label>
<Selector
Copy link
Contributor

Choose a reason for hiding this comment

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

This selector should default to the currently selected language and always have 1 of the options active. Deselecting all buttons should be impossible.

@@ -38,6 +38,7 @@
"yes": "Ja",
"no": "Nein",
"edit": "edit",
Copy link
Contributor

Choose a reason for hiding this comment

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

If you have time; "edit" should be "Editieren" in German.

onChange={onEmailChange}
value={email || ''}
className="form-input"
placeholder={t('accountPage.name') || 'Your name'}
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be:
placeholder={t('accountPage.emailAddress') || 'Your email address'}

{imageUrl ? (
<img src={imageUrl} alt="avatar" style={{ width: '100%' }} />
<img src={imageUrl} alt="avatar" className="profile-image" />
Copy link
Contributor

Choose a reason for hiding this comment

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

For some reason I can upload a profile picture, but it doesn't remain. And it didn't use the profile picture that I was using before. Maybe just an issue of this test-deployment, but haven't noticed that in the past.

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

Successfully merging this pull request may close these issues.

3 participants