Files
Saxon Fletcher d8fadcc1c8 makes it possible to reset password from connect dialog (#46866)
Makes it possible to reset password from the connect sheet. Once reset
the password is shown temporarily in the connection string for copy. The
copy prompt action does not copy the password.

<img width="1043" height="953" alt="image"
src="https://github.com/user-attachments/assets/fe1a33bb-839f-47e3-b07f-7a5fa1df2b8d"
/>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
  * Session Pooler notice for direct connections on IPv4 networks
* Option to show a temporary database password during direct-connection
setup

* **Improvements**
  * New password reset dialog with strength checks and generation
* Connection-copy behavior now redacts temporary passwords and produces
cleaner copy prompts

* **Tests**
* Added tests covering connection-string password insertion/replacement
and copy-prompt behavior
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-06-12 07:38:18 -06:00

42 lines
1.3 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Card, CardContent } from 'ui'
import {
PageSection,
PageSectionContent,
PageSectionDescription,
PageSectionMeta,
PageSectionSummary,
PageSectionTitle,
} from 'ui-patterns/PageSection'
import { ResetDbPasswordDialog } from './ResetDbPasswordDialog'
const ResetDbPassword = ({ disabled = false }) => {
return (
<PageSection id="database-password">
<PageSectionMeta>
<PageSectionSummary>
<PageSectionTitle>Database password</PageSectionTitle>
<PageSectionDescription>Used for direct Postgres connections</PageSectionDescription>
</PageSectionSummary>
</PageSectionMeta>
<PageSectionContent>
<Card>
<CardContent className="flex flex-row items-center gap-x-2 justify-between">
<div className="space-y-0.5">
<h3 className="text-sm text-foreground">Reset database password</h3>
<p className="text-sm text-foreground-light text-balance">
The database password isn’t viewable after creation. Resetting it will break any
existing connections.
</p>
</div>
<ResetDbPasswordDialog disabled={disabled} />
</CardContent>
</Card>
</PageSectionContent>
</PageSection>
)
}
export default ResetDbPassword