Skip to content

chore: Add .js to imports for packages that require fully qualified imports#23

Merged
thelukewalton merged 6 commits intomainfrom
chore/js
Mar 21, 2025
Merged

chore: Add .js to imports for packages that require fully qualified imports#23
thelukewalton merged 6 commits intomainfrom
chore/js

Conversation

@thelukewalton
Copy link
Copy Markdown
Collaborator

No description provided.

@thelukewalton thelukewalton requested review from DE7924 and Copilot March 18, 2025 11:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures fully qualified module import paths by appending the .js extension to various package imports.

  • Updates import paths across multiple component files.
  • Aligns module imports with the bundler’s requirements by adding the .js extension.

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/components/radio-button/radio-button-controller.ts Updated import for radio button mixin.
src/components/navigation-rail/navigation-rail-item.ts Added .js extensions to mixin and module imports.
src/components/select-input/select-input.ts Updated mixin and icon imports to include .js suffix.
src/components/dropdown/dropdown-menu/dropdown-menu-button.ts Added .js extension for droppable import.
src/components/segmented-control/segmented-item.ts Updated import for contour mixin with .js extension.
src/components/chips/base-chips/interactive-chip.ts Updated BaseChip import to include .js; note potential typo in class name.
src/components/grid-menu-item/grid-menu-item.ts Updated import for indicators module with .js suffix.
src/components/upload-item/upload-item.ts Corrected icon and progress indicator imports to add .js.
src/components/segmented-control/segmented-control.ts Adjusted imports for contour and segmented item with .js extensions.
src/components/navigation-rail/navigation-rail.ts Updated import for contour mixin with .js extension.
src/components/base-toggle-form-element.ts Adjusted icon import to include .js extension.
Comments suppressed due to low confidence (1)

src/components/chips/base-chips/interactive-chip.ts:4

  • The class name 'InterativeChip' appears to contain a typo; consider renaming it to 'InteractiveChip' for clarity.
export class InterativeChip extends BaseChip {

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 18, 2025

PR Checks Complete

✅ Analysis

  • ✅ ESLint
  • ✅ Lit Analyzer
  • ✅ TypeDoc
  • ✅ Formatting

  • ✅ Prettier
  • ✅ Testing

  • ✅ Install PlayWright Browsers
  • ✅ Testing
  • ✅ Coverage: 91.38%
     ➡️ See Details
    FileLinesBranchesFunctions
    src/events.ts 94.59% 140/148 90.91% 20/22 69.23% 9/13
    src/index.ts 100.00% 149/149 0% 0/0 0% 0/0
    src/components/base-toggle-form-element.ts 89.09% 49/55 90.00% 9/10 75.00% 3/4
    src/components/accordion/accordion.ts 57.89% 33/57 0.00% 0/1 0.00% 0/3
    src/components/action-menu/action-menu-button.ts 96.04% 97/101 83.33% 10/12 85.71% 6/7
    src/components/avatar/avatar.ts 98.48% 65/66 100.00% 2/2 100.00% 2/2
    src/components/avatar-rail/avatar-rail.ts 81.08% 30/37 0% 0/0 0.00% 0/2
    src/components/badges/indicators/indicators.ts 100.00% 76/76 84.62% 11/13 100.00% 5/5
    src/components/badges/label/label.ts 76.19% 32/42 0.00% 0/1 0.00% 0/2
    src/components/badges/priority-pill/priority-pill.ts 84.09% 37/44 0.00% 0/1 0.00% 0/1
    src/components/badges/status-label/status-label.ts 65.57% 40/61 0.00% 0/1 0.00% 0/2
    src/components/badges/tag/tag.ts 97.78% 44/45 50.00% 2/4 100.00% 2/2
    src/components/badges/workcloud-indicator/workcloud-indicator.ts 56.25% 27/48 100.00% 3/3 50.00% 2/4
    src/components/bottom-sheets/bottom-sheet.ts 100.00% 65/65 100.00% 13/13 100.00% 3/3
    src/components/breadcrumbs/breadcrumb.ts 90.12% 73/81 70.00% 7/10 75.00% 3/4
    src/components/breadcrumbs/breadcrumb-item/breadcrumb-item.ts 100.00% 33/33 50.00% 1/2 100.00% 1/1
    src/components/button/base-button.ts 90.16% 55/61 87.50% 7/8 66.67% 4/6
    src/components/button/button.ts 100.00% 70/70 57.14% 4/7 100.00% 2/2
    src/components/button-group/button-group.ts 87.88% 29/33 0.00% 0/1 0.00% 0/2
    src/components/button-group/button-group-item/button-group-item.ts 44.30% 35/79 0.00% 0/1 0.00% 0/4
    src/components/button/icon-button/icon-button.ts 100.00% 28/28 50.00% 1/2 100.00% 1/1
    src/components/card/card.ts 94.12% 32/34 0.00% 0/1 0.00% 0/1
    src/components/card/card-body/card-body.ts 91.30% 21/23 0% 0/0 0.00% 0/1
    src/components/card/card-footer/card-footer.ts 91.30% 21/23 0% 0/0 0.00% 0/1
    src/components/card/card-header/card-header.ts 100.00% 42/42 100.00% 1/1 100.00% 1/1
    src/components/checkbox/checkbox.ts 100.00% 47/47 100.00% 1/1 100.00% 1/1
    src/components/chips/assist-chip/assist-chip.ts 94.59% 35/37 50.00% 2/4 100.00% 2/2
    src/components/chips/base-chips/base-chip.ts 81.82% 9/11 100.00% 2/2 50.00% 1/2
    src/components/chips/filter-chip/filter-chip.ts 93.18% 41/44 66.67% 4/6 66.67% 2/3
    src/components/chips/input-chip/input-chip.ts 100.00% 29/29 50.00% 1/2 100.00% 1/1
    src/components/chips/status-chip/status-chip.ts 85.19% 23/27 0.00% 0/1 0.00% 0/2
    src/components/dialog/dialog.ts 95.77% 136/142 36.36% 4/11 57.14% 4/7
    src/components/dropdown/droppable.ts 79.35% 123/155 78.26% 18/23 66.67% 6/9
    src/components/dropdown/dropdown-menu/dropdown-menu-button.ts 90.73% 186/205 82.35% 28/34 88.89% 8/9
    src/components/dropdown/menu-item/dropdown-menu-item.ts 86.67% 39/45 50.00% 1/2 50.00% 1/2
    src/components/fab/fab.ts 100.00% 76/76 93.33% 14/15 100.00% 5/5
    src/components/file-upload/file-upload.ts 60.00% 93/155 50.00% 2/4 22.22% 2/9
    src/components/global-header/global-header.ts 100.00% 52/52 40.00% 2/5 100.00% 2/2
    src/components/grid-menu-item/grid-menu-item.ts 100.00% 41/41 50.00% 2/4 100.00% 2/2
    src/components/icon/icon.ts 100.00% 17/17 66.67% 2/3 100.00% 1/1
    src/components/in-page-banner/in-page-banner.ts 96.15% 75/78 42.86% 3/7 100.00% 3/3
    src/components/list/list.ts 86.67% 26/30 0% 0/0 0.00% 0/2
    src/components/list/list-item/list-item.ts 100.00% 40/40 100.00% 1/1 100.00% 1/1
    src/components/login-page/login-page.ts 64.15% 34/53 0.00% 0/1 0.00% 0/2
    src/components/navigation-bar/navigation-bar.ts 100.00% 31/31 100.00% 2/2 100.00% 2/2
    src/components/navigation-drawer/navigation-drawer.ts 100.00% 62/62 66.67% 2/3 100.00% 2/2
    src/components/navigation-drawer/navigation-drawer-footer/navigation-drawer-footer.ts 82.95% 73/88 50.00% 2/4 50.00% 2/4
    src/components/navigation-drawer/navigation-drawer-header/navigation-drawer-header.ts 56.25% 27/48 0% 0/0 0.00% 0/2
    src/components/navigation-drawer/navigation-drawer-item/navigation-drawer-item.ts 100.00% 45/45 66.67% 2/3 100.00% 2/2
    src/components/navigation-drawer/navigation-drawer-sub-item/navigation-drawer-sub-item.ts 100.00% 38/38 66.67% 2/3 100.00% 2/2
    src/components/navigation-profile/navigation-profile.ts 100.00% 35/35 50.00% 1/2 100.00% 1/1
    src/components/navigation-rail/navigation-rail-item.ts 100.00% 47/47 66.67% 2/3 100.00% 2/2
    src/components/navigation-rail/navigation-rail.ts 100.00% 27/27 50.00% 1/2 100.00% 1/1
    src/components/pagination/pagination.ts 98.52% 133/135 92.31% 24/26 100.00% 7/7
    src/components/progress-indicators/progress-bar/progress-bar.ts 92.65% 63/68 42.86% 3/7 100.00% 3/3
    src/components/progress-indicators/progress-circle/progress-circle.ts 97.06% 132/136 75.00% 18/24 100.00% 7/7
    src/components/radio-button/radio-button-controller.ts 100.00% 31/31 100.00% 8/8 100.00% 5/5
    src/components/radio-button/radio-button.ts 100.00% 36/36 100.00% 2/2 100.00% 2/2
    src/components/search/search.ts 83.20% 104/125 86.67% 13/15 80.00% 8/10
    src/components/segmented-control/segmented-control.ts 91.75% 89/97 75.00% 15/20 100.00% 6/6
    src/components/segmented-control/segmented-item.ts 100.00% 31/31 66.67% 2/3 100.00% 2/2
    src/components/select-input/option.ts 100.00% 59/59 71.43% 5/7 100.00% 4/4
    src/components/select-input/select-input.ts 95.38% 227/238 69.05% 29/42 100.00% 13/13
    src/components/slider/slider.ts 82.24% 264/321 89.19% 33/37 85.71% 18/21
    src/components/slider/range-selector/range-selector.ts 98.30% 173/176 96.43% 27/28 91.67% 11/12
    src/components/slider/slider-input-field/slider-input-field.ts 98.09% 154/157 91.67% 11/12 88.89% 8/9
    src/components/snackbar/snackbar.ts 97.78% 88/90 83.33% 10/12 100.00% 3/3
    src/components/stepper/stepper.ts 100.00% 75/75 62.50% 5/8 100.00% 3/3
    src/components/stepper-input/stepper-input.ts 94.59% 105/111 85.71% 12/14 80.00% 4/5
    src/components/switch/switch.ts 97.89% 93/95 90.00% 9/10 100.00% 3/3
    src/components/system-banner/system-banner.ts 66.13% 41/62 0.00% 0/1 0.00% 0/2
    src/components/tab-bar/tab-bar.ts 92.86% 26/28 0% 0/0 0.00% 0/1
    src/components/tab-bar/tab-item/tab-item.ts 83.87% 26/31 0.00% 0/1 0.00% 0/2
    src/components/text-input/text-input.ts 100.00% 172/172 96.23% 51/53 100.00% 12/12
    src/components/tooltip/tooltip.ts 71.05% 27/38 0.00% 0/1 0.00% 0/2
    src/components/top-appbar/top-appbar.ts 100.00% 49/49 100.00% 7/7 100.00% 3/3
    src/components/upload-item/upload-item.ts 100.00% 66/66 88.89% 8/9 100.00% 4/4
    src/mixins/contour.ts 100.00% 49/49 100.00% 3/3 100.00% 2/2
    src/mixins/flavor.ts 100.00% 40/40 100.00% 4/4 100.00% 3/3
    src/mixins/form-field.ts 96.98% 450/464 100.00% 83/83 69.57% 16/23
    src/mixins/interactive.ts 89.29% 75/84 100.00% 11/11 100.00% 5/5
    src/mixins/mixins.ts 100.00% 7/7 0% 0/0 0% 0/0
    src/mixins/navigate.ts 100.00% 34/34 100.00% 3/3 100.00% 2/2
    src/mixins/popup.ts 88.50% 100/113 100.00% 13/13 71.43% 10/14
    src/mixins/size.ts 100.00% 26/26 100.00% 4/4 100.00% 3/3
    src/test/utils.ts 100.00% 169/169 100.00% 27/27 100.00% 19/19
    src/test/text-input/setup.ts 100.00% 55/55 100.00% 2/2 100.00% 1/1
  • @github-actions
    Copy link
    Copy Markdown
    Contributor

    github-actions bot commented Mar 18, 2025

    Visit the preview URL for this PR (updated for commit 46947be):

    https://zeta-web-main--pr-23-chore-js-4h4duroi.web.app

    (expires Fri, 28 Mar 2025 12:12:30 GMT)

    🔥 via Firebase Hosting GitHub Action 🌎

    Sign: cc82fb52ba05c9ecc7f0b92ab81ac4a31b88d893

    @thelukewalton thelukewalton merged commit fb6ee75 into main Mar 21, 2025
    2 checks passed
    @thelukewalton thelukewalton deleted the chore/js branch March 21, 2025 12:13
    thelukewalton added a commit that referenced this pull request Mar 21, 2025
    🤖 I have created a release *beep* *boop*
    ---
    
    
    ##
    [0.4.1](zeta-web-v0.4.0...zeta-web-v0.4.1)
    (2025-03-21)
    
    
    ### 🪲 Bug Fixes
    
    * Radio button checked is bool not string
    ([#24](#24))
    ([ab73b76](ab73b76))
    
    
    ### 📈 Documentation
    
    * Fix misssplled figma
    ([b35b915](b35b915))
    
    
    ### 🧹 Miscellaneous Chores
    
    * Add .js to imports for packages that require fully qualified imports
    ([#23](#23))
    ([fb6ee75](fb6ee75))
    
    ---
    This PR was generated with [Release
    Please](https://github.com/googleapis/release-please). See
    [documentation](https://github.com/googleapis/release-please#release-please).
    
    ---------
    
    Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
    Co-authored-by: github-actions <github-actions@github.com>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    None yet

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    3 participants