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

Added support to edit saved settings from the details view #3498

Merged
merged 3 commits into from
Apr 23, 2024

Conversation

abujeda
Copy link
Contributor

@abujeda abujeda commented Apr 8, 2024

Added support to edit the saved settings from the saved settings details page.
As well, added a save and close feature to allow the user to save the saved settings from the BatchConnect context page without having to launch an application.

Other improvements:

  • Updated saved settings action buttons to be consistent with the Interactive Session cards.
  • Minor improvements to the saved settings fields in the BatchConnect context view.
  • Added more integration tests.

@abujeda
Copy link
Contributor Author

abujeda commented Apr 8, 2024

Some screenshots:
Screenshot 2024-04-08 at 11 17 38

Screenshot 2024-04-08 at 11 18 09 Screenshot 2024-04-08 at 11 19 14

@abujeda abujeda force-pushed the saved_settings_management_edit branch 2 times, most recently from 2241a07 to 40255a6 Compare April 8, 2024 11:07
@johrstrom
Copy link
Contributor

I'm a bit busy this week - I may not get to this so quickly.

@abujeda abujeda force-pushed the saved_settings_management_edit branch from 40255a6 to 903032d Compare April 22, 2024 13:58
@abujeda
Copy link
Contributor Author

abujeda commented Apr 22, 2024

rebasing to resolve conflicts

@@ -261,6 +262,9 @@ en:
missing_settings: "Selected saved settings not found."
launch_label: "Launch"
launch_title: "Launch %{app_title} with %{settings_name} parameters"
edit_label: "Edit"
Copy link
Contributor

Choose a reason for hiding this comment

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

This is duplicate of just edit later in this file. I know this is in the batch_connect portion, but I'd like to reuse those common simple words if we can.

redirect_to batch_connect_setting_path(token: @app.token, id: template_name),
notice: t('dashboard.bc_saved_settings.saved_message', settings_name: template_name)
end
format.json { head :no_content }
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the javascript use this json API? I don't see it if so. If nobody actually uses it, I'd rather just remove it entirely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, the javascript does not use this API. I added the JSON response because the create method had one.

I have removed.

@johrstrom johrstrom self-requested a review April 23, 2024 19:38
Copy link
Contributor

@johrstrom johrstrom left a comment

Choose a reason for hiding this comment

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

LGTM

@johrstrom johrstrom merged commit 1a35d7e into OSC:master Apr 23, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants