mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3474] [MERGED] feat: new banner service and added ability to bind additional services from other platforms #4399
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#4399
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/3474
Author: @joeljstephen
Created: 10/25/2023
Status: ✅ Merged
Merged: 11/6/2023
Merged by: @AndrewBastin
Base:
release/2023.12.0← Head:feat/banner-service📝 Commits (10+)
c1000fcfeat: allow service container to bind services from other platformsc8e46fffeat: introducing banner service to the service architecture6e142d2test: added tests for banner service82a5289feat: new banner component to render banners9a6ace9refactor: replacing announcement with banner componente6cfc48refactor: removed announcement componentc0171fachore: updated type for addedServiced0da35erefactor: removed the enforcement of i18n for the banner properties0210fcfchore: better naming for computed propertyddb9299style: removed unnecessary styles from banner component📊 Changes
8 files changed (+143 additions, -23 deletions)
View changed files
📝
packages/hoppscotch-common/src/components.d.ts(+2 -0)➖
packages/hoppscotch-common/src/components/app/Announcement.vue(+0 -22)➕
packages/hoppscotch-common/src/components/app/Banner.vue(+54 -0)📝
packages/hoppscotch-common/src/components/app/Header.vue(+15 -1)📝
packages/hoppscotch-common/src/modules/dioc.ts(+4 -0)📝
packages/hoppscotch-common/src/platform/index.ts(+2 -0)➕
packages/hoppscotch-common/src/services/__tests__/banner.service.spec.ts(+38 -0)➕
packages/hoppscotch-common/src/services/banner.service.ts(+28 -0)📄 Description
Ticket
Closes HFE-254
Description
This PR introduces a new banner service to the service architecture and a new banner component that uses the banner service to render the banner. It also introduces support for additional services that are used in other platforms and can be bounded to the service container.
Banner Information
A banner contains:
Types of Banner
Info Banner - Used to display any important information

Warning Banner - Used to display a warning message

Error Banner - Used to display an error message

Objectives
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.