mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3556] [MERGED] refactor: allow banner service to hold multiple banners and display the banner with the highest score #4430
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4430
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3556
Author: @joeljstephen
Created: 11/16/2023
Status: ✅ Merged
Merged: 11/17/2023
Merged by: @AndrewBastin
Base:
release/2023.12.0← Head:refactor/banner-service📝 Commits (6)
e466144refactor: i18n strings are used by default by banner serviced22333efeat: score replaces priority and a new id property is added to banner servicef7016abrefactor: updated header to call remove banner function with idbaa8dc1chore: rearranged code for better readability678b492refactor: updated banner test to follow new banner service update88fc03arefactor: improvements to banner test📊 Changes
4 files changed (+110 additions, -46 deletions)
View changed files
📝
packages/hoppscotch-common/src/components/app/Banner.vue(+6 -4)📝
packages/hoppscotch-common/src/components/app/Header.vue(+26 -11)📝
packages/hoppscotch-common/src/services/__tests__/banner.service.spec.ts(+35 -20)📝
packages/hoppscotch-common/src/services/banner.service.ts(+43 -11)📄 Description
Ticket
Closes HFE-317
Description
This PR focuses on allowing the banner service to handle multiple banners. Currently, the service can hold only one banner at a time. However, there can be instances where multiple services or components may access the banner at the same time. This is solved by allowing the banner service to hold multiple banners and display the banner which has the highest priority score.
Objectives
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.