The ConfigurationView component is a React component used to display the generated PostgreSQL configuration results. It provides two viewing modes via tabs:
- postgresql.conf: Displays settings in standard
key = value format, intended for manual addition to the postgresql.conf file followed by a database restart. - ALTER SYSTEM: Displays settings as
ALTER SYSTEM SET key = 'value'; SQL commands, which write settings to the postgresql.auto.conf file.
The component automatically handles syntax highlighting (using ini for config files and sql for ALTER SYSTEM commands) and includes a CopyButton to copy the generated text to the clipboard. It relies on a Redux store for hardware settings, computed configuration values, and UI state (tabs and themes).