Skip to content

Conversation

atyrode
Copy link
Contributor

@atyrode atyrode commented Apr 28, 2025

This refactor the existing Terminal feature into its own component and exposes it as a module on pad.ws as !terminal:

Screenshot 2025-04-28 at 06 03 15

This also makes them persistent.

atyrode added 6 commits April 28, 2025 03:30
- Introduced a new Terminal component for embedding a terminal interface within the application.
- Added corresponding styles in Terminal.scss to ensure proper layout and appearance.
- Updated index.ts to export the Terminal component for accessibility within the module.
- Updated renderCustomEmbeddable function to include support for the new Terminal component.
- Added case handling for 'terminal' to render the Terminal interface when the corresponding link is detected.
- Enhanced user experience by providing additional embedding options within the application.
- Integrated a new Terminal item in the Main Menu for user access.
- Implemented handleTerminalClick function to create and place a terminal element in the canvas.
- Enhanced user experience by providing direct access to terminal functionality within the application.
- Added state management for terminal ID and connection info within the Terminal component.
- Implemented UUID generation for unique terminal identification.
- Updated customData handling to store and retrieve terminal connection information.
- Improved terminal URL generation logic to include reconnect parameters based on terminal ID.
- Enhanced initialization logic to ensure proper setup of terminal connection data.
- Renamed getUrl to getCodeUrl for clarity.
- Simplified URL generation logic for terminal and code targets.
- Consolidated embedding logic by directly using ExcalidrawElementFactory for creating embeddable elements.
- Improved error handling for URL determination in both embedding and opening actions.
- Enhanced debug logging for better traceability of actions.
@atyrode atyrode merged commit ce3c3b8 into main Apr 28, 2025
1 check passed
@atyrode atyrode deleted the terminal-module branch April 28, 2025 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant