con2 / con2/kompassi

Profile response detail view shows both version control messages

Open
#710 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29
Forks
33
Avg merge
1d 22h
Merged PRs (30d)
19

Description

When viewing an **old revision** of a response in the profile response detail view, both version control banners render at once: the warning "you are viewing an old version" AND the info "this response has N old versions".

Image

## Root cause

* `ResponseHistoryBanner.tsx` renders the two alerts independently; the info alert is not gated on `!response.supersededBy`.
* Backend: `Response.old_versions` filters on `superseded_by=self.current_version`, and `current_version` returns `self.superseded_by or self` — so an old revision's `old_versions` returns the whole sibling set, including itself.

## Fix

Show the info alert only on the current version (and/or exclude `self` from `old_versions`).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.