-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat(chrome-ext): support states #1787
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit d046131. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
774047e
to
afd4fd2
Compare
@Component({ | ||
selector: 'o3r-state-panel', | ||
templateUrl: './state-panel.template.html', | ||
styles: ` |
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.
should the styles be in an scss file?
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.
Both solutions are okay
apps/chrome-devtools/src/app-devtools/state-panel/state-panel.component.ts
Outdated
Show resolved
Hide resolved
apps/chrome-devtools/src/app-devtools/state-panel/state-panel.template.html
Outdated
Show resolved
Hide resolved
add the state feature to the Edit; covered in #1962 |
d9cfc16
to
6bdd008
Compare
@@ -7,6 +7,7 @@ | |||
"permissions": [ | |||
"activeTab", | |||
"scripting", | |||
"storage", |
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.
Do not forget to add a justification to this permission to the Chrome Developer Portal when publishing this new version (Otherwise the publication maybe rejected)
apps/chrome-devtools/src/app-devtools/state-panel/state-panel.component.ts
Show resolved
Hide resolved
apps/chrome-devtools/src/app-devtools/state-panel/state-panel.component.ts
Outdated
Show resolved
Hide resolved
We need to provide a documentation to help a user with this feature.
Edit: new Issue create to cover this #1962 |
82622e0
to
e5e4243
Compare
apps/chrome-devtools/src/app-devtools/localization-panel/localization-panel-pres.component.ts
Outdated
Show resolved
Hide resolved
412f1c0
to
f37bb63
Compare
f37bb63
to
3b2f6df
Compare
f5de28b
to
99e6521
Compare
public stateCompareWithFn(state: State, selectedStateName: string) { | ||
return state.name === selectedStateName; | ||
} |
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.
public stateCompareWithFn(state: State, selectedStateName: string) { | |
return state.name === selectedStateName; | |
} | |
public stateCompareWithFn = (state: State, selectedStateName: string) => state.name === selectedStateName; |
there is no problem here but if we were to use this
, it could lead to some issues as this method is passed as input in the template and lose the component context (I assume)
ce42773
to
b6c3c37
Compare
b6c3c37
to
53d84b6
Compare
const extensionMessage = toSignal(this.connectionService.message$.pipe(filter(isRuleEngineEventsMessage))); | ||
effect(() => { | ||
const message = extensionMessage(); | ||
if (message) { |
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.
not blocking: not needed to check the 'undefined' case as it is handled in the filter callback
Limit the number of key translation displayed and only create inputs for displayed items Encourage the user to use the search bar to find their translation
Fix issue on localization not available when currentLanguage or lang list is not set Add tsdoc and json schema description Handle the app connection state with signals Add new option.html in nx input/output to avoid future cache issue
53d84b6
to
d046131
Compare
Proposed change
Related issues