Skip to content

Add description to the Config tab - #1472

Open
jaykim1213 wants to merge 1 commit into
devfrom
jay/configTabDescription
Open

jaykim1213 wants to merge 1 commit into
devfrom
jay/configTabDescription

Conversation

@jaykim1213

Copy link
Copy Markdown
Contributor

Why

The Config tab does not explain its purpose, and “No data available” does not distinguish missing saved configs from a loading failure.

Addresses #1251.

Architecture

This is a local UI change in ConfigView. A short description appears above the loading, table, and empty states. Config loading now tracks errors separately from successful empty results and clears the error after a successful fetch.

Config retrieval, current-config visibility, and view/download/compare actions retain their existing behavior.

User-facing impact

  • Description: “View, download, and compare saved Study Config versions.”
  • Empty state: “No Study Configs have been saved yet.”
  • Load failure: “Unable to load saved Study Config versions. Please try again.”

Validation

  • yarn unittest run src/analysis/individualStudy/config/tests/ConfigView.spec.tsx — 27 tests passed after the final copy changes.
  • ConfigView and config utility suites — 37 tests passed before the final copy changes.
  • yarn typecheck — passed before the final copy changes.
  • yarn lint — no errors; two existing warnings before the final copy changes.
  • Coverage includes guidance with and without configs, error recovery, current-config visibility after filtering, and view/download with zero participants.
  • Browser layout and remote CI were not verified.

Risk and rollout

No special rollout or storage migration is needed. The change affects Config tab messaging and loading-state presentation; browser layout remains unverified.

@github-actions

github-actions Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

A preview of is uploaded and can be seen here:

https://revisit.dev/study/PR1472

Changes may take a few minutes to propagate.

@jaykim1213 jaykim1213 linked an issue Sep 15, 2026 that may be closed by this pull request
@jaykim1213
jaykim1213 marked this pull request as ready for review September 15, 2026 21:00
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-15T21:03:53.276151Z df74e8a Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: df74e8ad13

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<Text>
{hasError
? 'Unable to load saved Study Config versions. Please try again.'
: 'No Study Configs have been saved yet.'}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Defer empty state until the current-hash lookup completes

When analysis opens with zero visible participants, StudyAnalysisTabs passes undefined while its independent current-config-hash lookup is pending or after it fails; ConfigView then successfully fetches an empty hash list, clears hasError, and displays this message even though a current saved config may exist or its lookup failed. Preserve the lookup status/error in the prop contract so the view remains loading or reports failure before concluding that no configs are saved.

AGENTS.md reference: AGENTS.md:L41-L42

Useful? React with 👍 / 👎.

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.

Improve config tab in the analysis platform

1 participant