Skip to content

Conversation

@Saksham-Sirohi
Copy link
Contributor

@Saksham-Sirohi Saksham-Sirohi commented Nov 16, 2025

migration of webcheckin to vite

Summary by Sourcery

Migrate the webcheckin plugin’s frontend to Vite by relocating Vue components and assets under the new plugins directory, removing legacy static files, and updating component code for product naming consistency.

Enhancements:

  • Relocate all webcheckin Vue components and styles from the old static folder to the new plugins/webcheckin directory
  • Rename computed property and template bindings from itemvar to productvar and switch references to position.product.name for consistency with product naming

Build:

  • Remove legacy webcheckin static files now superseded by the Vite-based build setup

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Nov 16, 2025

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR migrates the webcheckin plugin to a Vite‐based build by relocating source files into the plugin directory, removing the legacy static folder, and updating code references from “item” to “product” in the search result component.

Class diagram for updated SearchResultItem component

classDiagram
class SearchResultItem {
  +position: Object
  +productvar(): String
  +subevent(): String
  +status(): String
}
SearchResultItem : productvar() replaces itemvar()
SearchResultItem : productvar uses position.product.name
SearchResultItem : productvar uses position.variation.value
SearchResultItem : subevent uses position.subevent
SearchResultItem : status uses position.checkins and position.order__status
Loading

File-Level Changes

Change Details Files
Project structure reorg for Vite migration
  • Remove legacy static component files
  • Delete old main.js and main.scss entries
  • Consolidate plugin assets under app/eventyay/plugins/webcheckin
app/eventyay/static/pretixplugins/webcheckin/components/app.vue
app/eventyay/static/pretixplugins/webcheckin/components/checkinlist-item.vue
app/eventyay/static/pretixplugins/webcheckin/components/checkinlist-select.vue
app/eventyay/static/pretixplugins/webcheckin/components/datefield.vue
app/eventyay/static/pretixplugins/webcheckin/components/datetimefield.vue
app/eventyay/static/pretixplugins/webcheckin/components/searchresult-item.vue
app/eventyay/static/pretixplugins/webcheckin/components/timefield.vue
app/eventyay/static/pretixplugins/webcheckin/main.js
app/eventyay/static/pretixplugins/webcheckin/scss/main.scss
Rename item references to product in searchresult-item.vue
  • Rename computed property itemvar to productvar
  • Update template binding from {{ itemvar }} to {{ productvar }}
  • Change this.position.item.name to this.position.product.name in logic
app/eventyay/plugins/webcheckin/static/pretixplugins/webcheckin/components/searchresult-item.vue

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant