Skip to content

Wrap discover guide preference "pinned" field inside a proto message#52017

Merged
kimlisa merged 1 commit intomasterfrom
lisa/update-proto-message
Feb 12, 2025
Merged

Wrap discover guide preference "pinned" field inside a proto message#52017
kimlisa merged 1 commit intomasterfrom
lisa/update-proto-message

Conversation

@kimlisa
Copy link
Copy Markdown
Contributor

@kimlisa kimlisa commented Feb 10, 2025

Per review, we want the ability for user to clear away pins if they choose to. This PR allows us to use the "nil" value for a guide preference, to mean no discover guide preferences set (which is used to set default values in the web UI).

The original commit was unintended on my part. I didn't realize omitempty applied to both an explicit empty array and an undefined array in the backend

This allows us to use "nil" value to mean no discover
guide preferences set (which is used to set default
values in the web UI).
@kimlisa kimlisa added the no-changelog Indicates that a PR does not require a changelog entry label Feb 11, 2025
@kimlisa kimlisa added this pull request to the merge queue Feb 11, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 11, 2025
@kimlisa kimlisa added this pull request to the merge queue Feb 12, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 12, 2025
@kimlisa kimlisa added this pull request to the merge queue Feb 12, 2025
Merged via the queue into master with commit a2688cf Feb 12, 2025
@kimlisa kimlisa deleted the lisa/update-proto-message branch February 12, 2025 09:03
kimlisa added a commit that referenced this pull request Feb 14, 2025
…52017)

This allows us to use "nil" value to mean no discover
guide preferences set (which is used to set default
values in the web UI).
carloscastrojumo pushed a commit to carloscastrojumo/teleport that referenced this pull request Feb 19, 2025
…ravitational#52017)

This allows us to use "nil" value to mean no discover
guide preferences set (which is used to set default
values in the web UI).
github-merge-queue Bot pushed a commit that referenced this pull request Feb 20, 2025
…52176)

* Web: make SelectResource.tsx component leaner (#51698)

* Web: Move resource specs into resource directory

* Web: move code out into separate files

* Web: define discover resource guide ids and add discover user preference field (#51672)

* Add discover resource preferences to user preferences

* Define hard coded guide id consts

* Set guide ids for resources

* Add test

* Address CRs

* Define a new type just for SelectResource.tsx which requires id field

* Wrap discover guide preference "pinned" field inside a proto message (#52017)

This allows us to use "nil" value to mean no discover
guide preferences set (which is used to set default
values in the web UI).

* Web: Add filters and pinning support for Enroll Resources page (#51893)

* Minor changes

- Stop propagation and default behavior when clicking on pin button
- Add small or large icon option for discover icons

* Add pinning guide support

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

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants