Skip to content

Conversation

@lerouxb
Copy link
Contributor

@lerouxb lerouxb commented Nov 18, 2024

No description provided.

@lerouxb lerouxb added the wip label Nov 18, 2024

export default function WelcomeTab() {
const { createNewConnection } = useConnections();
const { createNewConnection } = useConnectionActions();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one was a drive-by. I don't think there's any reason to use the deprecated useConnections() here.

@lerouxb lerouxb changed the title WIP: Move connection modal UI chore(compass-connections): Move connection modal UI from compass-sidebar to compass-connections COMPASS-8471 Nov 19, 2024
@lerouxb lerouxb added no release notes Fix or feature not for release notes and removed wip labels Nov 19, 2024
@lerouxb lerouxb marked this pull request as ready for review November 19, 2024 13:34
tab?: string
): ConnectionsThunkAction<void> => {
return (_dispatch, _getState, { globalAppRegistry }) => {
globalAppRegistry.emit('open-compass-settings', tab);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To spare you the trouble: This is used by (probably among others) the text under the Use Application-Level Proxy Settings field in OIDC here:

Screenshot 2024-11-19 at 13 36 19

duplicateConnection,
saveEditedConnection,
toggleConnectionFavoritedStatus,
toggleFavoritedConnectionStatus,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

was toggleConnectionFavoritedStatus in useConnections

data-theme={darkMode ? 'Dark' : 'Light'}
>
<Home {...props}></Home>
<HomeWithConnections {...props}></HomeWithConnections>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hierarchy is now ThemedHome -> HomeWithConnections -> Home whereas it was HomeWithConnections -> ThemedHome -> Home.

This allows CompassConnections to be inside all the visual stuff but still wrap the rest of home and therefore the useSingleConnectionModeConnectionInfoStatus() hook still works for now.

@lerouxb lerouxb merged commit d1a53af into main Nov 20, 2024
14 of 15 checks passed
@lerouxb lerouxb deleted the move-connection-modal-ui branch November 20, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no release notes Fix or feature not for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants