-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
WIP: Feature: Add setting to ignore components #136
Open
KevinBatdorf
wants to merge
16
commits into
master
Choose a base branch
from
feature/add-setting-to-ignore-components
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7eb709f
wip
KevinBatdorf b74bf5f
wip
KevinBatdorf db3f994
wip
KevinBatdorf 4f4fb22
fix spelling error
KevinBatdorf 53c4975
add input
KevinBatdorf 3b776fc
add body id
KevinBatdorf 450ce70
update
KevinBatdorf 0703ea6
merge master
KevinBatdorf 953bf07
wip
KevinBatdorf b86cfde
close panel by default
KevinBatdorf 7edd198
Merge branch 'master' into feature/add-setting-to-ignore-components
KevinBatdorf 9534c78
wip
KevinBatdorf d3a6c55
merge in master
KevinBatdorf f71a464
fix errors
KevinBatdorf bf41516
fix errors
KevinBatdorf fbb7a0d
add settings functionality
KevinBatdorf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 22 additions & 2 deletions
24
packages/shell-chrome/views/settings/pages/preferences.edge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,26 @@ | ||
<div x-show="active === 'Preferences'"> | ||
<div class="w-full border-b border-cool-gray-200 mb-4 pb-2"> | ||
<div class="w-full border-b border-cool-gray-200 mb-2 pb-2"> | ||
<h3 class="text-2xl font-light">Preferences</h3> | ||
</div> | ||
<div>Preferences content</div> | ||
<div class="lg:grid grid-cols-3"> | ||
<div> | ||
<h2 class="uppercase text-sm font-medium mb-3 text-cool-gray-500">Visibility</h2> | ||
<div> | ||
<label for="email" class="block text-sm font-medium text-gray-700">Hidden components</label> | ||
<div class="mt-1"> | ||
<input | ||
type="text" | ||
autocomplete="off" | ||
name="hide-component" | ||
class="p-0.5 px-2 shadow-sm focus:ring-ice-500 focus:border-transparent block w-full sm:text-xs border-gray-300 rounded-md placeholder-cool-gray-400" | ||
placeholder="[x-devtools-ignore]" | ||
aria-describedby="hide-component-description" | ||
/> | ||
</div> | ||
<p class="mt-1 text-xs text-gray-500" id="hide-component-description"> | ||
Hide components using the above selector. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Thinking this will only work on the simulator. Will see what i can do. It's otherwise duplicating the settings page.
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.
How about adding
data-testid
s to the panel "root" components,data-testid="panel-root"
maybe?Would have to be added to both
alpinejs-devtools/packages/shell-chrome/views/panel.edge
Line 16 in 3b776fc
and
alpinejs-devtools/packages/shell-chrome/views/panel.edge
Line 18 in 3b776fc
Should keep the selectors simpler and it matches our use-case (we're selecting using the testid's for dev/testing purposes 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.
Updated now if you want to check it
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.
Looks good to me