jacob-ai-bot / jacob

Just Another Coding Bot
https://jacb.ai
Apache License 2.0
131 stars 20 forks source link

Jira Board Selection on Settings Page Doesn't Update UI Immediately #274

Closed kleneway closed 1 week ago

kleneway commented 2 weeks ago

Description

There is a usability issue on the settings page of our application, specifically in the Jira integration section. When a user selects a Jira board, the user interface does not immediately reflect this change, leading to confusion and a poor user experience.

Current Behavior

  1. User navigates to the settings page.
  2. User locates the Jira integration section.
  3. User selects a Jira board from the available options.
  4. The selection is successfully made on the backend, but the UI does not update to reflect this change.
  5. The page continues to display the same options as before, giving no indication that the selection was successful.
  6. This state persists until the user manually refreshes the entire page.
  7. Only after a page refresh does the UI update to show the dropdown for selecting a specific board.

Expected Behavior

After a user selects a Jira board:

  1. The UI should immediately update to reflect the successful selection.
  2. The dropdown for selecting a specific board should appear without requiring a page refresh.
  3. A visual confirmation (such as a success message or check mark) should indicate that the board has been successfully connected.

Technical Details

The issue likely stems from a lack of state management or proper use of React hooks in the settings page component. The component is not re-rendering or updating its state after the Jira board selection is made.

Possible Solutions

  1. Implement a useEffect hook to trigger a re-render or state update after the board selection API call completes successfully.
  2. Use React Query or a similar state management solution to automatically update the UI when the backend data changes.
  3. Implement a manual refresh function that updates the component's state without requiring a full page reload.

Impact

This issue significantly impacts the user experience of our application:

Additional Information

By addressing this issue, we can greatly improve the usability of our Jira integration feature and enhance overall user satisfaction with the settings page. @jacob-ai-bot --skip-build

jacob-ai-bot[bot] commented 2 weeks ago

JACoB here...

You mentioned me on this issue and I am busy taking a look at it.

I'll continue to comment on this issue with status as I make progress.

jacob-ai-bot[bot] commented 2 weeks ago

Update

I've completed my work on this issue and have created a pull request: JACoB PR for Issue Jira Board Selection on Settings Page Doesn't Update UI Immediately.

Please review my changes there.

jacob-ai-bot[bot] commented 2 weeks ago

Update

I've completed my work on this issue and have updated this pull request: JACoB PR for Issue Jira Board Selection on Settings Page Doesn't Update UI Immediately.

Please review my changes there.