bcgov / bcgov/foi-flow

Comments Pane - Moving Unexpectedly when Bulk Selecting

Open
#4,987 0 comments 0 reactions 0 assignees View on GitHub
bug low priority
Dominant language
Python
Stars
8
Forks
2
Avg merge
14h 34m
Merged PRs (30d)
46

Description

**Describe the bug in current situation**
A clear and concise description of what the bug is.

When bulk selecting numerous redactions or annotations in the Comments pane, the Comments pane moves unexpectedly.

When scrolling down the Comments pane and and bulk selecting numerous redactions or annotations, which are not all in sequential order, the Comments pane jumps up after each subsequent selection. This make it difficult to know where the user left off with their bulk selecting.

**Link bug to the User Story**

**Impact of this bug**
Describe the impact, i.e. what the impact is, and number of users impacted.

Low

**Chance of Occurring (high/medium/low/very low)**

Medium

**Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?**

PROD or TEST

**Steps to Reproduce**
Steps to reproduce the behavior:
1. Go to a request in the Redaction App
2. Apply enough redactions that you need to scroll in the Comments pane to view them all (I did 20 as an example).
3. Bulk select several of the redactions, skipping over certain redactions
image.png

4. Scroll down the Comments pane, so some of your previous selections do not appear

![image](https://github.com/bcgov/foi-flow/assets/117312323/67b2e794-0ebe-4e7c-9c43-985a8a084289)

5. Bulk select another redaction, and see error, where Comments pane moves up unexpectedly

**Actual/ observed behaviour/ results**

Comments pane can move erratically when bulk selecting numerous annotations or redactions

**Expected behaviour**
A clear and concise description of what you expected to happen. Use the gherking language.

GIVEN a user is bulk selecting redaction
WHEN they scroll down the Comments pane and bulk select more redactions or annotations
THEN the Comments pane will remain static when applying a new bulk selection
AND will only move when the user scrolls down

**Screenshots/ Visual Reference/ Source**
If applicable, add screenshots to help explain your problem. You an use screengrab.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the Redaction App using a request with enough redactions to require scrolling in the Comments pane. Bulk-select non-sequential redactions, scroll down, and select another item to observe the jump. Done means the Comments pane remains static during new bulk selections and moves only when the user scrolls.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.