Skip to content

Upgrade to Vue 3 #446

Closed
Closed

Description

@walterdeboer

Current Behavior

Frontend now uses outdated Vue 2

Proposed Behavior

Move to Vue 3 after #445 is resolved:

Checklist

Activity

  1. added
    enhancement
    on Mar 13, 2023
  2. added
    size/XL
    on Feb 29, 2024
  3. sekwah41 commented on Aug 28, 2024

    @sekwah41
    Contributor

    I will open a draft pr and start work on a new attempt at this. Originally I was considering moving to Vite though since the last time I looked vue has suggested switching to vite and moved the old methods to maintenance mode.

    I did a little investigation before and the errors tend to be a lot more informative with vite though as it was switching the core tools over I decided against it as I didnt want to have to convince the wider community of a tool change.

  4. OrbisK commented on Sep 18, 2025

    @OrbisK

    Migrating from Vue 2 to Vue 3 can be difficult. This is particularly true if all the modules and plugins require migration too. If the project is not tied to the UI, I think we should consider a complete reset. We could start afresh with Vite, Vue 3 (or perhaps Nuxt) and a UI component library such as Nuxt UI 4.

  5. sekwah41 commented on Sep 24, 2025

    @sekwah41
    Contributor

    Tbh given the migrations or poor documentation on some of the main libraries on migrating when I last checked, reusing what components you can but mostly building it up from a rewrite would probably be the best way to go. Though I did start to get things working at one point it was mostly things like all the input validation needed completely redoing.

    Also I'm not sure if all of the libraries were up to date a at the time at least. It was using Vue v3 with the v2 compatibility stuff designed to help websites slowly migrate to v3.

  6. nscuro commented on Sep 29, 2025

    @nscuro
    Member

    FTR, the most recent attempt is here: #1245

    @stohrendorf, what is your gut feeling on this? Is an in-place migration doable or are we indeed looking at a full rewrite?

  7. stohrendorf commented on Sep 29, 2025

    @stohrendorf

    @nscuro IMHO, an in-place migration is difficult. Some stuff doesn't have a Vue 3 equivalent as far as I know, and other components would need a careful review and rewrite with changed functionality, but to be honest, I didn't look too much into migrating stuff, since I am focusing on covering current behaviour only, so that a migration wouldn't break too many things. My gut feeling is that a migration to Vue 3 has the potential to break quite a lot of stuff; I agree with the opinions posted before. As a disclaimer, I am not a frontend developer, but it feels like a lot of things are legacy stuff that's hard to get around. I am using AI roughly 20% of the time to get a starting point for tests, but the majority of the work is to actually get the tests passing, since there's a lot of tightly coupled things going on that the AI doesn't know about.

    TLDR, it's a lot of work necessary, but it's not requiring a full re-write. Some parts need to be re-written, sure, because some 3rd party components need different replacements, but compared to the whole complexity, it's a minor thing.

  8. OrbisK commented on Sep 30, 2025

    @OrbisK

    From my conversation with @nscuro:

    • after my 2 week holiday, I will take a look at a rough estimate
    • if we rewrite, we might use Nuxt 4 and Nuxt UI 4 + some chart components

    IMO:

  9. stohrendorf commented on Sep 30, 2025

    @stohrendorf

    @OrbisK I am not familiar with nuxtl, but your idea sounds like it needs a full rewrite, since you suggested a different framework. because I am not a frontend dev, I am curious whether there are pratical benefits to your suggestion, or if it's just personal preference. for example, I have a personal preference for vue and cypress, but since I am not a frontend dev, I can't present valuable facts or insights. but I am pretty sure that a change of framework would still require full tests so that it ensures a re-write doesn't change behaviour. your plan for a rewrite suggests that a lot of things would be broken for some time.

  10. OrbisK commented on Oct 1, 2025

    @OrbisK

    Nuxt is simply a meta framework built on top of Vue. The main benefit, in my opinion, is that it provides an opinion on the basics, such as routing and middlewares. This makes it easier to develop and contribute.

    All pages/components will still be Vue components.

    But you are right, that's 100% personal preference.

  11. OrbisK commented on Nov 1, 2025

    @OrbisK

    I finally had time to take a closer look. I think it will take around 200 hours to rewrite the front end completely, plus some extra time for testing and management.

    I have a first version locally connected to the local backend.

    If there are no objections, I will then sketch out the structure roughly and write down any sub-tasks.

  12. nscuro commented on Nov 21, 2025

    @nscuro
    Member

    @OrbisK Sorry for getting back to you so late. Thanks so much for having a look at this.

    I think it will take around 200 hours to rewrite the front end completely, plus some extra time for testing and management.

    Ooof, that's a lot.

    If there are no objections, I will then sketch out the structure roughly and write down any sub-tasks.

    That would be absolutely fantastic!

  13. OrbisK commented on Nov 21, 2025

    @OrbisK

    Progress:

    Image

    @nscuro I am missing test data. Could you share some "good" SBOM that I can use to have some real vulnerabilities?

    Next steps:

    • finish dashboard as example page
    • include i18n
    • auth middleware and permissions
      • OIDC stuff
      • permissions
      • route middleware

    After that, we can divide up the work if anyone wants to help 😅

  14. nscuro commented on Dec 15, 2025

    @nscuro
    Member

    @OrbisK The fastest way is to configure OSS Index because it doesn't require mirroring a vulnerability database before findings are reported.

    You can find a large BOM for which many vulnerabilities should be reported here: https://github.com/DependencyTrack/dependency-track/raw/refs/heads/master/src/test/resources/unit/bom-bloated.json

  15. rkg-mm commented on Feb 15, 2026

    @rkg-mm
    Contributor

    is there still work being done on this? I think its important to get this done somehow, even though I think I can't really contribute right now... I'd volunteer to do some manual testing and bugfixing once its at least halfly stable, thats something I can likely afford some time for. @nscuro maybe you could ask for some volunteers in the community meeting as well?
    Some IT security scanners already flag the frontend with a high risk due to EOL frameworks being used 🙈

  16. OrbisK commented on Feb 15, 2026

    @OrbisK

    I am still working on it. I currently have to complete some exams until march.

  17. self-assigned this
    on Oct 11, 2026
  18. modified the milestones: 5.x, 5.3 on Oct 11, 2026
  19. nscuro commented on Oct 13, 2026

    @nscuro
    Member

    As of #1942 we are running on Vue 3, although in compatibility mode. The last remaining piece is moving from BootstrapVue 2 to VueBootstrapNext, and turning off the compat mode. This will include full removal of CoreUI, which then also addresses #445.

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

Metadata

Metadata

Assignees

Labels

enhancementsize/XL

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions