Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

refactor: abstraction for features #558

Open
wants to merge 46 commits into
base: main
Choose a base branch
from

Conversation

yudukikun5120
Copy link
Collaborator

@yudukikun5120 yudukikun5120 commented Dec 17, 2022

This PR enables TSC to detect missing implementation for features and relates to #505 in bringing easiness for listing features.

src/network/storage.ts Outdated Show resolved Hide resolved
src/network/storage.ts Outdated Show resolved Hide resolved
Copy link
Member

@mkobayashime mkobayashime left a comment

Choose a reason for hiding this comment

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

Thanks a lot!
My apologies for the conflict after #505, I'll approve this as soon as it's resolved.

src/options.ts Outdated Show resolved Hide resolved
@yudukikun5120 yudukikun5120 disabled auto-merge January 9, 2023 14:57
@yudukikun5120 yudukikun5120 enabled auto-merge (squash) January 9, 2023 15:13
@yudukikun5120
Copy link
Collaborator Author

@mkobayashime
I regret to say that the commitlint error caused by the commit 67ecf52 can be ignored since the introduction of commitlint follows chronologically the commit.

@mkobayashime
Copy link
Member

@yudukikun5120
I think what commitlint is asking for is not to use uppercased character (T in the TSC in this case) at the beginning of the subject. chore: tsc can detect... will do for instance.


type Feature = (typeof Feature)[number]

const isFeature = (key: string): key is Feature => key in Feature
Copy link
Member

Choose a reason for hiding this comment

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

I'm afraid in operator doesn't work as expected here as documented in MDN. It should be Array.prototype.includes instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for your suggestion, but I'd use the find method instead since I somehow came across the TSC error.

mkobayashime and others added 24 commits January 11, 2023 00:33
according to: selector-class-pattern
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore: issue template for feature proposal

* fix: remove checkboxes

* chore: alternatives are not required
@yudukikun5120 yudukikun5120 force-pushed the refactor/abstract-features branch from 4f23a05 to 111d61f Compare January 10, 2023 15:35
src/optionsPage/app.tsx Outdated Show resolved Hide resolved
src/optionsPage/app.tsx Outdated Show resolved Hide resolved
src/optionsPage/components/Header/index.tsx Outdated Show resolved Hide resolved
src/optionsPage/app.tsx Outdated Show resolved Hide resolved
src/optionsPage/app.tsx Outdated Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Jan 10, 2023

Code Climate has analyzed commit 7f51635 and detected 0 issues on this pull request.

View more on Code Climate.

@yudukikun5120
Copy link
Collaborator Author

@mkobayashime It is too hard to modify the past commit messages. I think we should skip the commitlint errors in this PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants