-
Notifications
You must be signed in to change notification settings - Fork 1
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
BA-2351 user avatar icon not loading immediately #237
BA-2351 user avatar icon not loading immediately #237
Conversation
|
WalkthroughThis pull request updates the logic for constructing absolute image paths in both authentication and component modules. The changes conditionally check if a profile image URL is already absolute before concatenating it with the base URL. In addition, the version numbers in the package manifest files and changelogs for the affected packages have been bumped to reflect these patches. No changes were made to the exported or public entities. Changes
Sequence Diagram(s)sequenceDiagram
participant Component as Component (useLogin/ProfilesList)
participant Logic as ImagePath Checker
participant Builder as URL Builder
Component->>Logic: Provide profile image data & baseUrl
alt Image exists?
Logic->>Logic: Check if image URL starts with "http"
alt URL is absolute
Logic-->>Component: Return profile.image directly
else
Logic->>Builder: Concatenate baseUrl with profile.image
Builder-->>Logic: Return concatenated URL
Logic-->>Component: Return constructed URL
end
else
Logic-->>Component: Return null
end
Possibly related PRs
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
ERR_PNPM_OPTIONAL_DEPS_REQUIRE_PROD_DEPS Optional dependencies cannot be installed without production dependencies 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (6)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@baseapp-frontend/components package update - v 1.0.17
@baseapp-frontend/authentication package update - v 4.1.8
DEMO: https://www.loom.com/share/5fdb6987a463459cbea51a80bbb5ddf9?sid=740b0a30-621d-4b90-b1e0-d0e487a9f44b
Summary by CodeRabbit
Bug Fixes
Chores