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

Refactor url path names for DRYness #584

Open
2 tasks
echappen opened this issue Oct 31, 2024 · 0 comments
Open
2 tasks

Refactor url path names for DRYness #584

echappen opened this issue Oct 31, 2024 · 0 comments
Labels
Data Management API's, data storage, business logic, etc squad-dashboard

Comments

@echappen
Copy link
Contributor

Currently, we enter path names throughout the site as interpolated strings.

Example:

<Link href={`/orgs/${params.orgId}/users`}...

This means when a path name needs to be updated, we need to find + replace every instance.

Create a pathname helper (or find an npm package for this) that enables us to update path names in one place.

Acceptance Criteria

  • url pathnames are updated in one place
  • components now use url pathname helper for links
@echappen echappen added Data Management API's, data storage, business logic, etc squad-dashboard labels Oct 31, 2024
@echappen echappen added this to the (0) App foundations milestone Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data Management API's, data storage, business logic, etc squad-dashboard
Projects
None yet
Development

No branches or pull requests

1 participant