Trending

World technology news

→
Close-up of a hand pressing keys on a laptop keyboard
CRAN surveydownIn-depth report

Open-source surveydown 1.4.0 updates Quarto survey themes and PostgreSQL setup

The November 28 release derives survey form colours from the Quarto theme and reads PostgreSQL connection settings from a URL.

·CRAN surveydown
Reading progress0%

A dated update for programmable surveys

Surveydown 1.4.0 reached CRAN on November 28. The R package uses Quarto and Shiny to define survey questions and behavior in a text-based project. This version changes what a respondent sees and how the developer can configure a PostgreSQL connection. The form now derives colours from Quarto’s body, text and primary theme variables. A connection URL can also supply several database settings. The independently maintained CRANberries archive records the changes since 1.3.0. The two changes can be tested separately on the same sample survey.

Theme colours reach respondent controls

The notes describe changes to selected options, focus, progress and highlighting for an unanswered question. Multiple choice controls occupy the whole width of their rows. Compare a light and a dark theme with the custom CSS that the survey actually uses. A keyboard-only run can exercise selected, unanswered and invalid states, as well as the focus position. A colour should not be the only way to understand whether a response was saved or requires action. The release notes describe the design changes. Accessibility depends on the resulting form and the assistive technologies used to test it.

Configuration from one connection URL

The new url argument for sd_db_config parses PostgreSQL connection fields such as the host, port, database and user. Separate arguments still override the parsed fields. The setup prompts for a table name and can request a password when the URL contains a placeholder. The release note describes that behavior without requiring a team to put real credentials into a shared example. A deployment can keep test and collection credentials separate. Record the intended database and table when verifying the change, while avoiding secrets in the test output or in the survey source.

Check presentation and storage independently

A small survey can have a multiple choice item, a blank response and a text entry. Load it under two themes to check focus, state and contrast. Submit one test response and verify that the correct table contains one entry with the expected text. The visual test tells you about the browser. The database check tells you whether a response survived the rest of the flow. If the production form has custom components, make a small fixture that preserves those components as well. Reuse the same fixture when changing the database settings or package version later.

Bring the actual template into the comparison

A team’s existing CSS, custom question widgets or sign-in step may look different under the new defaults. Keeping a copy of a real template in a staging environment can reveal changes that a generic sample misses. Record the theme, browser and connection settings used for each check. Verify what a respondent sees after validation and what record the application stores after submission. In production, decisions about the lifetime of responses and authorized access belong in the survey deployment plan. The package update gives developers a new setup route and a redesigned form without deciding those policies for them.

Archive photo · Nenad Stojković (Shixart1985) / Wikimedia Commons ↗ · CC BY 2.0 · Archive image illustrating online form entry. Resized for WebP.

Sources and verification
Be the first reader ✎ Write a comment

Reader discussion

Discussion prompt

What would you change first for maintainability and testing in your own project?

No comments yet. Be the first to contribute.

Write a comment

Comments are real visitor contributions. Repeated, link-heavy or abusive submissions may be limited.