User Profile
By default, the user profile in Jigx includes various menu options, such as Personal Information, Notifications, Settings, and more. Certain user information and UI elements can be customized to fit specific needs.

Default profile setup
Personal information
Includes the logged-in user's name, email, avatar, and the option to delete the user account.
Notifications
Displays all notifications sent to the user, with options to mark all as read and filter by All, Read, or Unread.
Secondary identities
Refers to additional authentication methods required beyond primary login credentials, such as OAuth. Users can connect, refresh, or remove an identity.
Settings
Includes app settings such as color theme (light/dark mode), language selection, and region changes, if applicable.
Troubleshooting
Provides logging settings to help debug and troubleshoot app issues.
Support
Allows users to ask support a question. This setting can be hidden via a flag in the build configuration.
Logout
Allows the currently logged-in user to log out of the app.
Allowing users to update their profile
You can allow users to update specific information in their profile using the action.update-profile. This action can be configured within a jig in various ways, such as: An action button A header action link or icon In an event, e.g., onPress
The following information can be updated when using the action:
firstNamelastNamedisplayNameavatarUrl
Customize or extend the Profile screen
The Profile screen can be extended by adding Components that allow additional user information to be displayed. This can be achieved through the following steps:
Define a jig containing the components you want to display on the Profile screen.
Set the
jigIdin theprofileproperty within the index.jigx file.
This is especially useful in scenarios where devices are shared among multiple employees, such as contractors or engineers.
Profile
Adding the property with it's values to the index.jigx file will insert the referenced jigs into the header section of the Profile screen.
isPersonalInfoMenuItemVisible
Determine whether the Personal Information menu should be hidden (false) or visible (true). The default setting is true. This menu opens a screen displaying the user's name, email, and avatar, and provides an option to delete the account. Customizing the Profile screen allows this information to be integrated directly, eliminating the need for a menu option.
jigId
Provide the jigId for the jigs that will be displayed in the Profile screen.
Considerations
No additional padding is added to the jigs, which may affect the screen's UI. You can use properties such as
backgroundorpaddingto ensure proper content alignment. This issue is particularly noticeable when usinglist-itemsversus custom components or other components.When combining or using custom components, it is recommended to manually add
paddingandmarginsfor consistent spacing and layout.
Examples and code snippets
Extended Profile screen with hidden personal information menu

In this example, the Profile screen is extended to display the user's avatar along with their details in an expander component. Additionally, the personal information menu option is hidden from the list.
Extended Profile screen with list
This example demonstrates how to add a list of emergency contacts to a jig, which is referenced in the index.jigx file to extend the Profile screen.

Extended Profile screen using custom components (alpha)

In this example, the Profile screen has been extended to display the user's avatar, name, and email address using a custom component to create the required UI layout. This custom component is placed within a card in the user-profile jig. A standard list component is configured to display the region and department.
The list component allows users to update their department and region by configuring a rightElement with an onPress event.
Last updated
Was this helpful?