Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UISAUTCOMP-135: useAutoOpenDetailView - block auto-open on mount if record id exists in URL. #178

Merged
merged 4 commits into from
Dec 20, 2024

Conversation

Dmytro-Melnyshyn
Copy link
Contributor

@Dmytro-Melnyshyn Dmytro-Melnyshyn commented Dec 13, 2024

Purpose

If there is an open record and the next search returns a single record, it is automatically opened in the third pane.

Approach

Currently: Block auto-opening of record if id is present in URL.
After this PR is merged: Block auto-opening of record if id is present in URL only on mount.

TODOS and Open Questions

Learning

Screenshots

2024-12-13_18h51_33.mp4

This comment has been minimized.

Copy link

Jest Unit Test Statistics

181 tests  +2   181 ✔️ +2   2m 10s ⏱️ +3s
  33 suites ±0       0 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit 7a24b8b. ± Comparison against base commit f3e78d6.

@Dmytro-Melnyshyn Dmytro-Melnyshyn requested review from BogdanDenis and a team December 13, 2024 17:26
@@ -49,6 +49,66 @@ describe('useAutoOpenDetailView hook', () => {
});

describe('when there is a record ID in URL', () => {
describe('and it is mount (page reload or redirection from quick marc)', () => {
it('should not open record`s detail view', async () => {

Choose a reason for hiding this comment

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

does this function require asynchronous operations?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like no, I'll remove it

Copy link

github-actions bot commented Dec 18, 2024

Jest Unit Test Results

181 tests  +2   181 ✅ +2   2m 3s ⏱️ -1s
 33 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit eda8e15. ± Comparison against base commit 91dc2d4.

♻️ This comment has been updated with latest results.

@BogdanDenis BogdanDenis merged commit e349523 into master Dec 20, 2024
16 checks passed
@BogdanDenis BogdanDenis deleted the UISAUTCOMP-135 branch December 20, 2024 12:48
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.

3 participants