Skip to content
Snippets Groups Projects

POC: Render the user profile tabs in Vue Router

Closed Shane Maglangit requested to merge 497477-encapsulate-vue-profile-tabs-in-vue-router into master

What does this MR do and why?

Refactors the current profile_tabs.vue to a route rendered in a Vue Router. This is the ground work needed so that we can progressively move the individual tab items and move them into the sidebar menu (see #389842).

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

N/A

How to set up and validate locally

  1. In rails console enable the profile_tabs_vue feature flag
    Feature.enable(:profile_tabs_vue)
  2. Visit a user's profile page (http://localhost:3000/root)
  3. There should be no functional difference. Both the sidebar menu and tabs should work normally.

Related to #389842 #497477 (closed)

Edited by Shane Maglangit

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
25 25
26 26 private
27 27
28 def add_legacy_menu?
29 # When `profile_tabs_vue` feature flag is enabled, legacy profile views
30 # will be replaced by components in `app/assets/javascripts/profile/components/router_views`
  • added 1 commit

    • edd9c150 - Update `add_legacy_menu?` comment

    Compare with previous version

  • :tools: Generated by gitlab_quality-test_tooling.


    :snail: Slow tests detected in this merge request. These slow tests might be related to this merge request's changes.

    Click to expand
    Job File Name Duration Expected duration
    #7982477781 spec/features/admin/users/users_spec.rb#L177 Admin::Users GET /admin/users when blocking/unblocking a user shows confirmation and allows blocking and unblocking 66.09 s < 50.13 s
    #7983449815 spec/features/admin/users/users_spec.rb#L177 Admin::Users GET /admin/users when blocking/unblocking a user shows confirmation and allows blocking and unblocking 66.54 s < 50.13 s
    #7984594316 spec/features/admin/users/users_spec.rb#L177 Admin::Users GET /admin/users when blocking/unblocking a user shows confirmation and allows blocking and unblocking 66.09 s < 50.13 s
    #7986687155 spec/features/admin/users/users_spec.rb#L177 Admin::Users GET /admin/users when blocking/unblocking a user shows confirmation and allows blocking and unblocking 66.52 s < 50.13 s
    #7987355857 spec/features/admin/users/users_spec.rb#L177 Admin::Users GET /admin/users when blocking/unblocking a user shows confirmation and allows blocking and unblocking 65.92 s < 50.13 s
    #7991668290 spec/features/admin/users/users_spec.rb#L177 Admin::Users GET /admin/users when blocking/unblocking a user shows confirmation and allows blocking and unblocking 65.88 s < 50.13 s
  • A deleted user added rspec:slow test detected label
  • Bundle size analysis [beta]

    This compares changes in bundle size for entry points between the commits 8fc6e0d5 and 76198de8

    :sparkles: Special assets

    Entrypoint / Name Size before Size after Diff Diff in percent
    average 4.37 MB 4.37 MB - 0.0 %
    mainChunk 3.3 MB 3.3 MB - 0.0 %

    :fearful: Significant Growth: 5

    Expand
    Entrypoint / Name Size before Size after Diff Diff in percent
    pages.users 511.38 KB 595.34 KB +83.96 KB 16.4 %
    pages.users.identity_verification.show 746.02 KB 829.98 KB +83.96 KB 11.3 %
    pages.users.registrations_identity_verification.arkose_labs_challenge 526.66 KB 610.62 KB +83.96 KB 15.9 %
    pages.users.registrations_identity_verification.show 746.02 KB 829.98 KB +83.96 KB 11.3 %
    pages.users.terms.index 526.8 KB 610.77 KB +83.96 KB 15.9 %

    Your MR has at least one entrypoint growing significantly (more > 1 KB or 2%). If you write new or extend existing features, this is expected and there is nothing to worry about.

    Please consider pinging someone from the FE Foundations (@leipert, @markrian, @pgascouvaillancourt, @sdejonge or @thutterer) for review, if you are unsure about the size increase.

    Note: We do not have exact data for 8fc6e0d5. So we have used data from: 081358cf.
    The target commit was too new, so we used the latest commit from master we have info on.
    It might help to rerun the bundle-size-review job
    This might mean that you have a few false positives in this report. If something unrelated to your code changes is reported, you can check this comparison in order to see if they caused this change.

    Please look at the full report for more details


    Read more about how this report works.

    Generated by :no_entry_sign: Danger

  • Shane Maglangit changed title from Draft: Encapsulate user profile tabs into vue router to Draft: Render the user profile tabs using the Vue Router

    changed title from Draft: Encapsulate user profile tabs into vue router to Draft: Render the user profile tabs using the Vue Router

  • Shane Maglangit changed the description

    changed the description

  • Shane Maglangit changed the description

    changed the description

  • added 1 commit

    • 6d071020 - Render user profile tabs in Vue Router

    Compare with previous version

  • Shane Maglangit changed title from Draft: Render the user profile tabs using the Vue Router to Draft: POC: Render the user profile tabs using the Vue Router

    changed title from Draft: Render the user profile tabs using the Vue Router to Draft: POC: Render the user profile tabs using the Vue Router

  • Shane Maglangit changed title from Draft: POC: Render the user profile tabs using the Vue Router to Draft: [POC] Render the user profile tabs using the Vue Router

    changed title from Draft: POC: Render the user profile tabs using the Vue Router to Draft: [POC] Render the user profile tabs using the Vue Router

  • Shane Maglangit changed title from Draft: [POC] Render the user profile tabs using the Vue Router to Draft: Render the user profile tabs using the Vue Router

    changed title from Draft: [POC] Render the user profile tabs using the Vue Router to Draft: Render the user profile tabs using the Vue Router

  • reopened

  • Shane Maglangit added 577 commits

    added 577 commits

    Compare with previous version

  • added 1 commit

    • fbe840fd - Render user profile tabs in Vue Router

    Compare with previous version

  • added 1 commit

    • 79cdb2ac - Render user profile tabs in Vue Router

    Compare with previous version

  • Shane Maglangit changed title from Draft: Render the user profile tabs using the Vue Router to Draft: Render the user profile tabs in Vue Router

    changed title from Draft: Render the user profile tabs using the Vue Router to Draft: Render the user profile tabs in Vue Router

  • added 1 commit

    Compare with previous version

  • removed backend label

  • A deleted user added backend label

    added backend label

  • Shane Maglangit changed the description

    changed the description

  • Shane Maglangit added 2 commits

    added 2 commits

    Compare with previous version

  • Shane Maglangit marked this merge request as ready

    marked this merge request as ready

  • Shane Maglangit changed title from Draft: Render the user profile tabs in Vue Router to POC: Render the user profile tabs in Vue Router

    changed title from Draft: Render the user profile tabs in Vue Router to POC: Render the user profile tabs in Vue Router

  • added 1 commit

    • 16a60137 - Render user profile tabs in Vue Router

    Compare with previous version

  • Shane Maglangit added 2 commits

    added 2 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading