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

Enhance modal form redirects #194

Merged
merged 5 commits into from
Sep 12, 2023
Merged

Enhance modal form redirects #194

merged 5 commits into from
Sep 12, 2023

Conversation

yhabteab
Copy link
Member

No description provided.

@cla-bot cla-bot bot added the cla/signed label Jul 27, 2023
@yhabteab yhabteab added the enhancement New feature or request label Jul 27, 2023
@yhabteab yhabteab added this to the 1.0.0 milestone Jul 27, 2023
@yhabteab yhabteab self-assigned this Jul 27, 2023
@yhabteab yhabteab force-pushed the modal-enhancements branch 4 times, most recently from e8642bf to 8f2f415 Compare July 27, 2023 15:40
@lippserd
Copy link
Member

lippserd commented Aug 9, 2023

@yhabteab This is not ready, right?

@yhabteab
Copy link
Member Author

yhabteab commented Aug 9, 2023

@yhabteab This is not ready, right?

It's ready, but its kind of waiting for Icinga/icingaweb2#5068 to be merged.

@yhabteab yhabteab force-pushed the modal-enhancements branch 2 times, most recently from 445b5f8 to dbc7520 Compare August 11, 2023 09:40
@yhabteab yhabteab requested a review from nilmerg August 11, 2023 09:40
Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

Sidenote:

the tabs should use data-base-target=_main. Otherwise the detail keeps open while switching.

application/controllers/ReportController.php Outdated Show resolved Hide resolved
application/controllers/ReportController.php Outdated Show resolved Hide resolved
application/controllers/ReportsController.php Outdated Show resolved Hide resolved
@yhabteab yhabteab force-pushed the modal-enhancements branch from dbc7520 to 96e8b18 Compare August 11, 2023 13:21
@yhabteab yhabteab requested a review from nilmerg August 11, 2023 13:21
@yhabteab yhabteab force-pushed the modal-enhancements branch from 96e8b18 to 5a08682 Compare August 11, 2023 14:02
nilmerg
nilmerg previously approved these changes Aug 11, 2023
Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

LGTM! The referenced Web PR is merged (kind of)

@lippserd
Copy link
Member

I don't know if it's related to the framework or the changes here, but as soon as I remove a report, the report list is refreshed twice. The clone action also triggers a refresh, which is not required.

@yhabteab
Copy link
Member Author

I don't know if it's related to the framework or the changes here, but as soon as I remove a report, the report list is refreshed twice.

It's a framework bug.

The clone action also triggers a refresh, which is not required.

By "triggers a refresh" do you mean that the col2 container is updated after the redirection or that the col1 container is refreshed as well?

@yhabteab yhabteab force-pushed the modal-enhancements branch 2 times, most recently from fb60421 to e7e0850 Compare September 6, 2023 11:05
@yhabteab yhabteab force-pushed the modal-enhancements branch 3 times, most recently from bef008a to a225589 Compare September 6, 2023 14:37
@yhabteab yhabteab requested a review from nilmerg September 6, 2023 14:38
phpstan-baseline.neon Outdated Show resolved Hide resolved
@nilmerg
Copy link
Member

nilmerg commented Sep 8, 2023

Shouldn't the cloned report be visible in the detail, instead of the source report?

@yhabteab
Copy link
Member Author

yhabteab commented Sep 8, 2023

Shouldn't the cloned report be visible in the detail, instead of the source report?

No clue 🤷!

@nilmerg
Copy link
Member

nilmerg commented Sep 8, 2023

I'd say so. At least does the refresh of col2 make no sense currently, as nothing changed. And if I clone a report and want to schedule/send it afterwards, I don't have to search for it in the list.

Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

Please fix the conflictPlease rebase

application/controllers/ReportController.php Outdated Show resolved Hide resolved
Copy link
Member

@nilmerg nilmerg left a comment

Choose a reason for hiding this comment

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

Oh no, wait. The time frame items still open a modal.

@nilmerg
Copy link
Member

nilmerg commented Sep 12, 2023

Never mind. But please use openInModal where applicable. (As you noted by yourself)

@yhabteab yhabteab requested a review from nilmerg September 12, 2023 10:05
@nilmerg nilmerg merged commit f9faac1 into master Sep 12, 2023
6 checks passed
@nilmerg nilmerg deleted the modal-enhancements branch September 12, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants