#64

Back navigation should hide modal if open

Status: open
retoor retoor ·

Summary

Back navigation should hide modal if open

Steps to Reproduce

Back navigation should hide modal in browser if modal is displayed in browser. Just click an image open and go back on your phone for example, you go to previous page. But it should remain on same page closing the modal. This is for every device, any browser.

Expected Behaviour

Not provided.

Actual Behaviour

Not provided.

Environment

Not provided.


Reported by retoor via DevPlace.

Updates & comments

retoor retoor ·

Fucker, I totally gave environment.

@Lensflare is going back now fixed on your phone with scroll positions? Can be that you haave to flush your cache hard. On the android it's so impossible that I only can test incognito. It's all a lie.


Posted by retoor via DevPlace.

Developer reply from dev typosaurus ·

I am picking this ticket up now.

First I will bring up an isolated workspace with a fresh checkout and investigate whether the ticket matches the current state of the code before planning any change. I will announce every step here before I take it.

Developer reply from dev typosaurus ·

Starting research round 1 of at most 5.

I am now reading the relevant source, tests, and prior work in the live checkout to verify the ticket and gather the context needed for a concrete plan. This can take a while; I will post periodic progress updates until it completes.

Developer reply from dev typosaurus ·

After reviewing the ticket against the current source, each of the four modal components already implements back‑navigation to dismiss the overlay. The reporter’s later comments attribute the behavior to a stale cache rather than a missing feature.

Because the codebase already meets the requirement, the ticket currently appears to be a mismatch.

Could you confirm whether this is still accurate, or should the ticket be closed?

Developer reply from dev typosaurus ·

I am picking this ticket up now.

First I will bring up an isolated workspace with a fresh checkout and investigate whether the ticket matches the current state of the code before planning any change. I will announce every step here before I take it.

Developer reply from dev typosaurus ·

I need input to continue.

What I tried: Retried this step 3 times.
What I found: Each attempt failed for internal reasons unrelated to this ticket. The details are in the operator's logs; this is not a judgment about the ticket.

The system needs operator attention before I can continue. Reply here once things are healthy and I will resume from where I left off.

Developer reply from dev typosaurus ·

I am picking this ticket up now.

First I will bring up an isolated workspace with a fresh checkout and investigate whether the ticket matches the current state of the code before planning any change. I will announce every step here before I take it.

Developer reply from dev typosaurus ·

Starting research round 1 of at most 5.

I am now reading the relevant source, tests, and prior work in the live checkout to verify the ticket and gather the context needed for a concrete plan. This can take a while; I will post periodic progress updates until it completes.

Developer reply from dev typosaurus ·

Investigated the ticket against the current source and tests. The intended mechanism exists but contains three concrete cleanup bugs and zero test coverage, making the reported symptom-back navigation navigating to the previous page instead of closing the modal-reproducible under real mobile conditions.

The core requirement (back navigation should dismiss the modal without leaving the page) is valid and unimplemented correctly, so it is appropriate to proceed with a fix.

Drafting a concrete implementation plan.

Developer reply from dev typosaurus ·

I am drafting the implementation plan now.

The research confirmed the ticket; I am turning the findings into a concrete, verifiable plan.

Developer reply from dev typosaurus ·

Status Update

The implementation plan has been drafted from the investigation findings. The plan addresses the three cleanup defects identified in AppLightbox, AppDialog, and AppContextMenu, with the core fix for the scroll‑locked page after back navigation. Each component’s popstate handler will be updated to properly restore scroll, clear resources, and return focus. Corresponding Playwright e2e tests are specified to cover the back‑navigation scenario for each modal type, along with a definition of done that includes passing existing tests and linter checks.

The plan is now ready for the execution agent to begin implementation.

Developer reply from dev typosaurus ·

The full, verbatim implementation plan is attached: plan-ticket-64.md

Developer reply from dev typosaurus ·

Starting implementation attempt 1 of at most 5.

I am executing the plan inside this ticket's isolated workspace. This can take a while; I will post periodic progress updates until it completes.

Developer reply from dev typosaurus ·

Implementation attempt 1 finished; I am verifying it now.

Running the project's own build, test, and lint commands against the change.

Developer reply from dev typosaurus ·

Attempt 1 did not succeed; both test_command and lint_command checks failed. The change either failed to apply cleanly or did not pass the project's own validation suite.

Based on the recorded failure details and lessons from that attempt, we are proceeding with a second attempt. The new prompt incorporates the learned adjustments to resolve the identified issues.

Developer reply from dev typosaurus ·

Starting implementation attempt 2 of at most 5.

I am executing the plan inside this ticket's isolated workspace. This can take a while; I will post periodic progress updates until it completes.

Developer reply from dev typosaurus ·

Progress update: implementation attempt 2 is still running (10 minutes elapsed). I have not stalled; I will report the result here the moment this step completes.

Developer reply from dev typosaurus ·

Progress update: implementation attempt 2 is still running (20 minutes elapsed). I have not stalled; I will report the result here the moment this step completes.

Developer reply from dev typosaurus ·

Implementation attempt 2 finished; I am verifying it now.

Running the project's own build, test, and lint commands against the change.

Developer reply from dev typosaurus ·

Attempt 2 did not succeed; both the test_command and lint_command checks failed. The change either did not apply cleanly or failed to pass the project's own validation suite.

The next attempt will incorporate the recorded failure details and lessons from the previous run, with the goal of achieving a clean pass on both checks.

Developer reply from dev typosaurus ·

Starting implementation attempt 3 of at most 5.

I am executing the plan inside this ticket's isolated workspace. This can take a while; I will post periodic progress updates until it completes.

Developer reply from dev typosaurus ·

Progress update: implementation attempt 3 is still running (10 minutes elapsed). I have not stalled; I will report the result here the moment this step completes.

Developer reply from dev typosaurus ·

Progress update: implementation attempt 3 is still running (20 minutes elapsed). I have not stalled; I will report the result here the moment this step completes.

Developer reply from dev typosaurus ·

Attempt 3 completed with an inconclusive result because the execution agent's output did not contain clear success or failure indicators. The next step is to conduct additional targeted research before running another attempt.

Developer reply from dev typosaurus ·

Starting research round 2 of at most 5.

I am now reading the relevant source, tests, and prior work in the live checkout to verify the ticket and gather the context needed for a concrete plan. This can take a while; I will post periodic progress updates until it completes.

Developer reply from dev typosaurus ·

Investigated the ticket against the current source and tests. The findings confirm that the described feature (back navigation does not hide modals) is absent on master, while a complete implementation exists on the branch under investigation. The ticket is accurate and specific enough to plan merging the fix.

Decision: proceed.

Next step is drafting a concrete implementation plan.

Developer reply from dev typosaurus ·

I am drafting the implementation plan now.

The research confirmed the ticket; I am turning the findings into a concrete, verifiable plan.

Developer reply from dev typosaurus ·

Drafted an implementation plan based on the investigation findings for back navigation dismissing modals. The plan specifies changes to the popstate handlers in AppLightbox, AppDialog, and AppContextMenu, along with corresponding e2e tests and lint fixes.

The plan is now ready for execution. Handing it to the execution agent.

Developer reply from dev typosaurus ·

The full, verbatim implementation plan is attached: plan-ticket-64.md

Developer reply from dev typosaurus ·

Starting implementation attempt 4 of at most 5.

I am executing the plan inside this ticket's isolated workspace. This can take a while; I will post periodic progress updates until it completes.

Developer reply from dev typosaurus ·

Starting implementation attempt 4 of at most 5.

I am executing the plan inside this ticket's isolated workspace. This can take a while; I will post periodic progress updates until it completes.

Developer reply from dev typosaurus ·

Progress update: implementation attempt 4 is still running (10 minutes elapsed). I have not stalled; I will report the result here the moment this step completes.

Developer reply from dev typosaurus ·

Implementation attempt 4 finished; I am verifying it now.

Running the project's own build, test, and lint commands against the change.

Developer reply from dev typosaurus ·

Attempt 4 did not succeed; the test_command checks failed. The change either did not apply cleanly or did not pass the project's own validation.

The next attempt will incorporate the recorded failure details and lessons from this run.

Developer reply from dev typosaurus ·

Starting implementation attempt 5 of at most 5.

I am executing the plan inside this ticket's isolated workspace. This can take a while; I will post periodic progress updates until it completes.

Developer reply from dev typosaurus ·

Progress update: implementation attempt 5 is still running (10 minutes elapsed). I have not stalled; I will report the result here the moment this step completes.

Developer reply from dev typosaurus ·

Implementation attempt 5 finished; I am verifying it now.

Running the project's own build, test, and lint commands against the change.

Developer reply from dev typosaurus ·

Attempted five rounds of implementation, each building on the previous failure, but the test_command check continues to fail. The root cause appears to be a persistent logic gap or scope mismatch that my current approach cannot resolve.

Given this, I need a clearer path forward. Could you provide more specific guidance or propose a narrower scope for this task that would make it feasible?

Log in to comment.