Skip to content

Migrate queue to vue - #908

Merged
Kobzol merged 4 commits into
rust-lang:mainfrom
malezjaa:migration-vue
Nov 27, 2026
Merged

Kobzol merged 4 commits into
rust-lang:mainfrom
malezjaa:migration-vue

Conversation

@malezjaa

Copy link
Copy Markdown
Contributor

Migrates the queue page to vue.

Now the rust side only serializes the data so frontend has a clean json to work on. Most of the formatting stuff has been moved to vue.

I split the css into components that actually use it. Queue.vue is really small and just imports other components.
Styling has changed a bit because it no longer uses the css from DataTable.

Some other changes:

  • the rollup dialog is actually a <dialog> so it can be closed using esc.
  • time formatting in frontend formats d/h/m so it will show 1d 2h instead of 26h, so it matches format_duration in rust.
  • groups from "Group by" are collapsible.
  • all the vendored DataTables/jQuery files were removed

Only tested this on a small db with a few PRs, so I'm not sure how it would look like on a full db. AI helped me with porting the table to @tanstack/vue-table.

Closes #811

@malezjaa malezjaa changed the title Migration vue Migrate queue to vue Nov 26, 2026

@Kobzol Kobzol left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for working on this!

It's a bit unfortunate that we have to reimplement a bunch of select/filtering/sorting logic that was implemented by DataTables natively. But I guess it's worth it, as the new JS bundle size is ~half of the previous amount of JS, so that is good.

Left two questions.

View changes since this review

Comment thread src/server/mod.rs Resolved

@Kobzol Kobzol left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you! Let's try it on staging.

View changes since this review

@Kobzol
Kobzol added this pull request to the merge queue Nov 27, 2026
Merged via the queue into rust-lang:main with commit 2462281 Nov 27, 2026
8 checks passed
@malezjaa

Copy link
Copy Markdown
Contributor Author

Neat :D Is there a publicly accessible staging deployment url somewhere where I can check if everything is working?

@Kobzol

Kobzol commented Nov 27, 2026

Copy link
Copy Markdown
Member

Yup: https://bors-staging.rust-lang.net/ I tested it a bit and it seems to be working fine.

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.

Migrate to Vue

2 participants