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

Introduce feature flag for editable actions page #10581

Merged
1 commit merged into from
Jul 8, 2021

Conversation

carlos-zamora
Copy link
Member

@carlos-zamora carlos-zamora commented Jul 7, 2021

Summary of the Pull Request

Adds a feature flag Feature_EditableActionsPage that controls whether the Actions page in the Settings UI is read-only vs editable. The editable version is disabled for Release builds and enabled everywhere else (i.e. Dev, Preview, etc...).

Validated using <stage> AlwaysEnabled and AlwaysDisabled.

References

#6900 - Actions Page Epic

PR Checklist

Closes #10578

@ghost ghost added Area-Settings UI Anything specific to the SUI Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. labels Jul 7, 2021
@carlos-zamora
Copy link
Member Author

This is a draft because I can't actually deploy Windows Terminal for some reason. I'm getting some kind of deployment error. I think the implementation is correct, but alas, this is all unverified.

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

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

Thanks for doing this! Couple notes

  • this should apply to 1.10 as well; we should do the work on main and backport it. Feature flags let us not have one-off changes per branch :)
  • should we actually just resurrect the 1.8 code as a completely separate XAML page and code-behind file for this? It will let us change the 1.9 and 1.10 ones without merge conflicts and without risking breaking the feature by accidentally leaking part of it to stable

src/features.xml Outdated Show resolved Hide resolved
src/cascadia/TerminalSettingsEditor/Actions.h Outdated Show resolved Hide resolved
src/cascadia/TerminalSettingsEditor/Actions.cpp Outdated Show resolved Hide resolved
@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jul 8, 2021
@WSLUser
Copy link
Contributor

WSLUser commented Jul 8, 2021

So does this mean the preview versions also won't have editable actions? It seems the focus is stable not having this option but also mentioned 1.10 as well...I'd prefer the preview still have this feature for testing.

@DHowett
Copy link
Member

DHowett commented Jul 8, 2021

So does this mean the preview versions also won't have editable actions? It seems the focus is stable not having this option but also mentioned 1.10 as well...I'd prefer the preview still have this feature for testing.

Opposite. Preview will have it, stable will not.

@zadjii-msft
Copy link
Member

should we actually just resurrect the 1.8 code as a completely separate XAML page and code-behind file for this? It will let us change the 1.9 and 1.10 ones without merge conflicts and without risking breaking the feature by accidentally leaking part of it to stable

i really like that idea

@carlos-zamora carlos-zamora self-assigned this Jul 8, 2021
@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jul 8, 2021
@carlos-zamora carlos-zamora force-pushed the dev/cazamor/actions-page/disable-edit-mode branch from f6e8b90 to eb9b456 Compare July 8, 2021 18:08
@carlos-zamora carlos-zamora changed the base branch from release-1.9 to main July 8, 2021 18:08
@carlos-zamora carlos-zamora force-pushed the dev/cazamor/actions-page/disable-edit-mode branch from eb9b456 to 1f904c1 Compare July 8, 2021 18:13
@carlos-zamora
Copy link
Member Author

Validated that this works when the feature flag is "on" vs "off" using AlwaysEnabled and AlwaysDisabled in stage. Looks great!

@carlos-zamora carlos-zamora removed their assignment Jul 8, 2021
@carlos-zamora carlos-zamora marked this pull request as ready for review July 8, 2021 18:14
@DHowett

This comment has been minimized.

@DHowett DHowett added the Needs-Second It's a PR that needs another sign-off label Jul 8, 2021
@carlos-zamora carlos-zamora changed the title [1.9] Introduce feature flag for editable actions page Introduce feature flag for editable actions page Jul 8, 2021
@carlos-zamora
Copy link
Member Author

@msftbot merge this in 5 minutes

@ghost ghost added the AutoMerge Marked for automatic merge by the bot when requirements are met label Jul 8, 2021
@ghost
Copy link

ghost commented Jul 8, 2021

Hello @carlos-zamora!

Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:

  • I won't merge this pull request until after the UTC date Thu, 08 Jul 2021 20:55:04 GMT, which is in 5 minutes

If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you".

@ghost ghost merged commit f03cacf into main Jul 8, 2021
@ghost ghost deleted the dev/cazamor/actions-page/disable-edit-mode branch July 8, 2021 20:55
@DHowett DHowett added the zPreview-Service-Queued-1.13 A floating label that tracks the current Preview version for servicing purposes. label Jul 12, 2021
DHowett pushed a commit that referenced this pull request Jul 12, 2021
Adds a feature flag `Feature_EditableActionsPage` that controls whether the Actions page in the Settings UI is read-only vs editable. The editable version is disabled for `Release` builds and enabled everywhere else (i.e. Dev, Preview, etc...).

Validated using `<stage>` `AlwaysEnabled` and `AlwaysDisabled`.

Closes #10578

(cherry picked from commit f03cacf)
@DHowett DHowett removed the zPreview-Service-Queued-1.13 A floating label that tracks the current Preview version for servicing purposes. label Aug 25, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings UI Anything specific to the SUI AutoMerge Marked for automatic merge by the bot when requirements are met Issue-Task It's a feature request, but it doesn't really need a major design. Needs-Second It's a PR that needs another sign-off Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reintroduce read-only actions page and use it in Stable builds (til::feature)
5 participants