Skip to content
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

Minor code changes extracted from #8151 #8176

Merged
merged 4 commits into from
Apr 8, 2024
Merged

Minor code changes extracted from #8151 #8176

merged 4 commits into from
Apr 8, 2024

Conversation

fregante
Copy link
Contributor

@fregante fregante commented Apr 6, 2024

What does this PR do?

That PR is too big already, I removed some changes and sent them here:

  1. Move a import config rule to out of the shared config
  2. Fix potential page editor breaks on reload
  3. Avoid involuntarily altering an input array via .reverse()
  4. Extract selectElement from elementPicker, because that file is already big as it is

Checklist

Copy link

codecov bot commented Apr 6, 2024

Codecov Report

Attention: Patch coverage is 65.85366% with 14 lines in your changes are missing coverage. Please review.

Project coverage is 73.39%. Comparing base (f9d6383) to head (5b6f065).
Report is 7 commits behind head on main.

Files Patch % Lines
src/contentScript/pageEditor/selectElement.ts 67.56% 12 Missing ⚠️
src/components/InvalidatedContextGate.tsx 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8176   +/-   ##
=======================================
  Coverage   73.39%   73.39%           
=======================================
  Files        1313     1314    +1     
  Lines       40718    40722    +4     
  Branches     7571     7571           
=======================================
+ Hits        29885    29888    +3     
- Misses      10833    10834    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

group: ["../*"],
message:
'Use root-based imports (`import "@/something"`) instead of relative imports.',
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -42,7 +42,7 @@ export function useLabelRenderer() {
href="#"
onClick={async (event) => {
await writeToClipboard({
text: getPathFromArray(keyPath.reverse()),
text: getPathFromArray([...keyPath].reverse()),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,110 @@
/*
* Copyright (C) 2024 PixieBrix, Inc.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file cannot be strict yet, 290 errors

Copy link

github-actions bot commented Apr 8, 2024

No loom links were found in the first post. Please add one there if you'd like to it to appear on Slack.

Do not edit this comment manually.

@fregante fregante merged commit 1995795 into main Apr 8, 2024
21 of 22 checks passed
@fregante fregante deleted the F/bugs/extras branch April 8, 2024 14:43
@grahamlangford grahamlangford added this to the 1.8.13 milestone Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority small T-shirt sizing
Development

Successfully merging this pull request may close these issues.

2 participants