Skip to content

Conversation

michelroegl-brunner
Copy link
Member

Description

This PR adds a prominent completion message for LXC creation scripts to make it more obvious when the LXC creation process has finished successfully.

Changes

  • Enhanced Terminal component to detect LXC creation scripts
  • Display prominent block message when LXC creation finishes successfully
  • Detection based on script path (ct/), container ID, and script name patterns
  • Maintains backward compatibility for non-LXC scripts
  • Shows 'LXC CREATION FINISHED' block instead of standard completion message

Testing

  • LXC creation scripts now display a prominent completion block
  • Non-LXC scripts continue to show the standard completion message
  • Detection works for various LXC script patterns

Screenshot

When an LXC creation script finishes successfully, users will now see:

#########################################
########## LXC CREATION FINISHED ########
#########################################

Instead of the standard 'SSH script execution finished with code: 0' message.

- Enhanced Terminal component to detect LXC creation scripts
- Display prominent block message when LXC creation finishes successfully
- Detection based on script path (ct/), container ID, and script name patterns
- Maintains backward compatibility for non-LXC scripts
- Shows 'LXC CREATION FINISHED' block instead of standard completion message
@michelroegl-brunner michelroegl-brunner requested a review from a team as a code owner October 8, 2025 08:50
- Add handleMessage to useEffect dependency array
- Move handleMessage function before useEffect and wrap with useCallback
- Replace logical OR with proper null check for containerId
- Fix React hooks exhaustive-deps warning
- Fix TypeScript prefer-nullish-coalescing error
- Clean up merge conflict resolution that left duplicate function
- Keep only the properly memoized useCallback version
- Fix code duplication issue
@michelroegl-brunner michelroegl-brunner merged commit 81fbd44 into main Oct 8, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant