Skip to content

Conversation

@hamza221
Copy link
Contributor

@hamza221 hamza221 commented Jun 25, 2025

Reproduction:

  1. open image editor for image1.png
  2. Edit image
  3. Save Image as image2.png
  4. close editor
  5. image1.png is open in viewer

expected behaviour
image2.png is open in viewer

@hamza221 hamza221 force-pushed the Fix/save-image-editor branch from 216bac4 to 48eb0ae Compare June 25, 2025 14:41
@hamza221 hamza221 marked this pull request as ready for review June 25, 2025 14:41
@hamza221 hamza221 self-assigned this Jun 25, 2025
@hamza221 hamza221 added bug Something isn't working 3. to review Waiting for reviews labels Jun 25, 2025
@hamza221 hamza221 requested a review from skjnldsv June 25, 2025 14:42
@hamza221
Copy link
Contributor Author

/compile

@hamza221 hamza221 force-pushed the Fix/save-image-editor branch from 8646b0d to 5073730 Compare June 30, 2025 15:23
@hamza221 hamza221 requested a review from skjnldsv June 30, 2025 15:23
@hamza221 hamza221 force-pushed the Fix/save-image-editor branch from 5073730 to 72ee207 Compare June 30, 2025 15:24
if (fileId) {
const newParams = window.OCP.Files.Router.params
newParams.fileId = fileId
window.OCP.Files.Router.goToRoute(null, newParams, window.OCP.Files.Router.query)
Copy link
Member

Choose a reason for hiding this comment

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

Does this actually works?
Since it's most likely that the file isn't known to the files app yet, specifying an unknown fileid should warn the current user of a file not found toast

Copy link
Contributor Author

@hamza221 hamza221 Jul 9, 2025

Choose a reason for hiding this comment

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

This is added for history/ potential refresh and consistency.
The file is loaded manually in https://github.com/nextcloud/viewer/pull/2894/files#diff-110c577f5691b638686742afb3bc883a4fe999c8ebbfea070ea80c63955c5fc0R665

Copy link
Member

@skjnldsv skjnldsv left a comment

Choose a reason for hiding this comment

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

One comment, otherwise looks good
Cypress tests would be nice

@hamza221 hamza221 force-pushed the Fix/save-image-editor branch from 7e6a27a to 1a7319b Compare July 9, 2025 13:35
@hamza221

This comment was marked as outdated.

@hamza221 hamza221 force-pushed the Fix/save-image-editor branch from 04d4722 to 69c2a27 Compare July 14, 2025 15:13
@hamza221

This comment was marked as outdated.

@hamza221 hamza221 force-pushed the Fix/save-image-editor branch from b326968 to 1facc5f Compare July 21, 2025 14:40
@hamza221

This comment was marked as outdated.

@hamza221 hamza221 force-pushed the Fix/save-image-editor branch from 0283d07 to 83cac36 Compare July 21, 2025 15:16
@hamza221
Copy link
Contributor Author

/compile

@hamza221 hamza221 enabled auto-merge July 21, 2025 15:18
@hamza221
Copy link
Contributor Author

I'm not sure if the cypress failures are related

@skjnldsv
Copy link
Member

I'm not sure if the cypress failures are related

No, but something is broken and I cannot find where it's coming from

@skjnldsv
Copy link
Member

@hamza221 fix in #2906

…itor

Signed-off-by: Hamza <hamzamahjoubi221@gmail.com>
@hamza221 hamza221 force-pushed the Fix/save-image-editor branch from f23bd81 to aaed256 Compare July 29, 2025 10:39
@hamza221
Copy link
Contributor Author

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@hamza221 hamza221 merged commit e1fcbdf into master Jul 29, 2025
31 checks passed
@hamza221 hamza221 deleted the Fix/save-image-editor branch July 29, 2025 10:48
@hamza221
Copy link
Contributor Author

/backport to stable31 please

@hamza221
Copy link
Contributor Author

/backport to stable30 please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants