-
Notifications
You must be signed in to change notification settings - Fork 21
0028 - Adopt @ngrx/signals for Component State Stores #632
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
base: main
Are you sure you want to change the base?
0028 - Adopt @ngrx/signals for Component State Stores #632
Conversation
…signals for component state stores
Great job! No new security vulnerabilities introduced in this pull request |
custom-words.txt
Outdated
# Forbidden words | ||
!auto-fill | ||
!auto-filled | ||
Rickabaugh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Did lint need this? Your only usage is in a link which wasn't checked I thought.
We keep this alphabetically sorted by the way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did, it's specifically the cspell check that causes the failure. Thanks for catching that it wasn't sorted!
@@ -0,0 +1,10 @@ | |||
--- | |||
adr: "0027" | |||
status: "Draft" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
status: "Draft" | |
status: "Proposed" |
# 0026 - Adopt Angular Signals for Component State | ||
|
||
Placeholder for documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ What's happening with this whole file? Not understanding. You can have one proposed ADR as 27 most likely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a placeholder for the 0027 - Angular signals ADR. Now that there is an active pull request, #638, I can remove the file
tags: [client] | ||
--- | ||
|
||
# 0028 - Adopt `@ngrx/signals` for Component State Stores |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎨 Can your code reference be simplified somehow? Maybe just say "Angular Signals"? A lot of title usages can't render the preformatted text, but you can use the code in paragraphs.
|
||
## Prior Reading | ||
|
||
- [ADR Draft - Adopt Angular Signals for Component State](https://bitwarden.atlassian.net/wiki/spaces/EN/pages/1538326529) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ This document should be retired in favor of the ADR, and therefore won't be linkable.
## Context and Problem Statement | ||
|
||
Building on | ||
[ADR Draft - Adopt Angular Signals for Component State](https://bitwarden.atlassian.net/wiki/spaces/EN/pages/1538326529) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ These are also not available to the community, so content should all be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've updated the links now that the Draft ADR references is in a pull request.
|
||
## Decision Outcome | ||
|
||
**Adopt @ngrx/signals for state management on the component level** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Adopt @ngrx/signals for state management on the component level** | |
Chosen option: **Adopt @ngrx/signals for state management on the component level.** |
**Security considerations:** Do not store decrypted sensitive data in signal stores; use for UI | ||
state, metadata, and non-sensitive application data only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're not storing decrypted data. What would we be using it for? Purely concerns like "is drawer open"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question! We should still store the encrypted data in the stores. There are a few methods we can use to expose the decrypted data while it's in flight. When we start the migrations, we should and plan to explore the different methods to determine which best suites our security policies. This statement is to cover the overall idea that encrypted data is encrypted at rest. The main two methods to explore are using signal store computed signals, could be considered in flight but these are still exposed from the store, or expose a feature to signal stores that provides the functions to encrypt and decrypt within the component itself. The main difference is where we want the responsibility of encrypting and decrypting to lie architecturally.
Claude finished @Banrion's task —— View job PR Review: ADR 0028 - Adopt @ngrx/signals for Component State StoresI've completed my review of this ADR documentation. Here are my findings and recommendations: Overall AssessmentThis is a well-structured ADR that follows the established repository patterns and provides clear technical reasoning for adopting @ngrx/signals. The document effectively builds upon ADR 0027 and presents a compelling case for standardized component state management. Detailed Review Feedback✅ Strengths
|
📔 Objective
This pull request adds ADR 0028 - Adopt @ngrx/signals for Component State Stores to expose the ADR to a greater audience and receive feedback.
Note: This pull request also adds a placeholder file for the 0027 ADR to Adopt Angular Signals for component state that this ADR builds upon.
⏰ Reminders before review
team
🦮 Reviewer guidelines
:+1:
) or similar for great changes:memo:
) or ℹ️ (:information_source:
) for notes or general info:question:
) for questions:thinking:
) or 💭 (:thought_balloon:
) for more open inquiry that's not quite a confirmedissue and could potentially benefit from discussion
:art:
) for suggestions / improvements:x:
) or:warning:
) for more significant problems or concerns needing attention:seedling:
) or ♻️ (:recycle:
) for future improvements or indications of technical debt:pick:
) for minor or nitpick changes