Skip to content

Conversation

@pawelangelow
Copy link
Collaborator

What

Enhance the design of Pub/Sub page. The PR became huge, but the changes are context-related, so no easy way to introduce them in batches. TL;DR for the changes

  • removed sass files
  • updated tests
  • introduced <SubscribeForm />
  • adjust the visuals

Testing

Home screen

Before After
Screenshot 2025-11-10 at 10 51 24 Screenshot 2025-11-10 at 10 48 12
Screenshot 2025-11-10 at 10 50 31 Screenshot 2025-11-10 at 10 50 04

So, as you can see from the screenshots, a few conceptual things, aside from the visuals, changed - the status bar at the top is not visible by default.

Messages screen

Before After
Screenshot 2025-11-10 at 10 51 45 Screenshot 2025-11-10 at 10 49 04
Screenshot 2025-11-10 at 10 50 48 Screenshot 2025-11-10 at 10 49 49

Here, the status bar at the top has a different UX:

  • The subscription status is reported differently:

    Screenshot 2025-11-10 at 10 58 26 Screenshot 2025-11-10 at 10 58 14
  • The button indicates the action the user is about to do:

    Screenshot 2025-11-10 at 10 59 14 Screenshot 2025-11-10 at 10 59 10
  • The UX when a message is being sent successfully

    • initially it's just the button:
    Screenshot 2025-11-10 at 12 37 09
    • when you send the message, the button hides and the report shows:
    Screenshot 2025-11-10 at 12 37 49

@pawelangelow pawelangelow self-assigned this Nov 10, 2025
@pawelangelow pawelangelow marked this pull request as ready for review November 10, 2025 11:05
@github-actions
Copy link
Contributor

github-actions bot commented Nov 10, 2025

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.62% 20279/24544
🟡 Branches 68.01% 8761/12881
🟡 Functions 77.19% 5437/7044
🟢 Lines 83.04% 19857/23912

Test suite run success

5239 tests passing in 681 suites.

Report generated by 🧪jest coverage report action from 59af60d

valkirilov
valkirilov previously approved these changes Nov 10, 2025
valkirilov
valkirilov previously approved these changes Nov 10, 2025
Copy link
Collaborator

@KrumTy KrumTy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly comments about code styles I think we've agreed on (css -> .styles.ts file; gap > spacer)

Comment on lines +31 to +33
const channels = subscriptions?.length
? subscriptions.map((sub) => sub.channel).join(' ')
: DEFAULT_SEARCH_MATCH
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if large array, useMemo might be useful
also same logic is repeated in SubscribeForm.tsx so it might be worth even extracting it to redux (pubsub slice) and do the operation once

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, but will merge it like this.

@pawelangelow pawelangelow merged commit f158004 into main Nov 12, 2025
18 checks passed
@pawelangelow pawelangelow deleted the fe/RI-7693/fix-pub-sub branch November 12, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants