Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

feat(discoverpage): add an editable welcome text box to discover page#4073

Merged
sct merged 0 commit intosct:developfrom
hollowpnt92:develop
Mar 28, 2025
Merged

feat(discoverpage): add an editable welcome text box to discover page#4073
sct merged 0 commit intosct:developfrom
hollowpnt92:develop

Conversation

@hollowpnt92
Copy link
Copy Markdown

@hollowpnt92 hollowpnt92 commented Mar 24, 2025

Description

Add Editable Welcome Text Feature

Description

Currently there is no notification system to send information to users. This PR adds a Welcome textbox to the discover page. This will allow admin users to display landing text for users. This could be used for server maintenance info, FAQs, or other information you need to provide to users.

Changes

  • Creates new WelcomeText component in src/components/Common/WelcomeText/index.tsx

    • Handles inline text editing with save/cancel functionality
    • Includes permission checks for admin users
    • Provides visual feedback during save operations
    • Uses the main settings endpoint for persistence
  • Modifies Discover component in src/components/Discover/index.tsx

    • Added landing text section with editable component
    • Fetches landing text from main settings
    • Falls back to default welcome text if no custom text is set

Screenshots

image
image
image

To-Dos

  • Successful build yarn build
  • Translation keys yarn i18n:extract
  • Database migration (if required)

@hollowpnt92 hollowpnt92 changed the title add editiable text field feat(discoverpage): add an editable welcome text box to discover page Mar 24, 2025
@hollowpnt92 hollowpnt92 marked this pull request as ready for review March 24, 2025 14:44
@sct sct merged commit dc196d4 into sct:develop Mar 28, 2025
11 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants