Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a team link component to simplify routing #4942

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

cstns
Copy link
Contributor

@cstns cstns commented Dec 18, 2024

Description

Adds a ff-team-link component that would simplify routes parametrization

Related Issue(s)

part of #4836

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Includes a DB migration? -> add the area:migration label

@cstns cstns self-assigned this Dec 18, 2024
@cstns cstns changed the base branch from main to app-routes-follow-up December 18, 2024 16:41
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.40%. Comparing base (faa4e0b) to head (4e8961f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4942   +/-   ##
=======================================
  Coverage   78.40%   78.40%           
=======================================
  Files         329      329           
  Lines       15501    15501           
  Branches     3582     3582           
=======================================
  Hits        12154    12154           
  Misses       3347     3347           
Flag Coverage Δ
backend 78.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joepavitt
Copy link
Contributor

@cstns is this ready for review? Noticed you've assigned no reviewer...?

@cstns
Copy link
Contributor Author

cstns commented Jan 8, 2025

Need a couple of moments to refresh my memory

@cstns
Copy link
Contributor Author

cstns commented Jan 8, 2025

#4891 would need to be merged in first so we can keep it simple, and I'd need to sort some conflicts on that one first. I'll mark it as a draft untill then

@cstns cstns marked this pull request as draft January 8, 2025 10:08
…-simplify-routing

# Conflicts:
#	frontend/src/components/DevicesBrowser.vue
#	frontend/src/pages/device/index.vue
Base automatically changed from app-routes-follow-up to main February 4, 2025 12:59
@cstns cstns marked this pull request as ready for review February 4, 2025 13:15
@cstns cstns requested a review from joepavitt February 4, 2025 13:16
extendedProps () {
const props = { ...this.$props }
if (!props.to.params.team_slug) {
props.to.params.team_slug = this.team.slug
Copy link
Contributor

@joepavitt joepavitt Feb 4, 2025

Choose a reason for hiding this comment

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

and in a circumstance where this.team is undefined? I appreciate our use case here is for when we do have a team, but new users wont' have a this.team, so technically we should handle this scenario?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that is a valid point, will have to go through the sign-up procedure and check but from the top of my head users shouldn't encounter team-links only after being assigned to a team and have the full ui at their disposal.

I'll have a look over it later after this current release when i'll have some spare time on my hands, this is not an important task

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.

2 participants