Skip to content

Conversation

@ice-phobos
Copy link
Contributor

@ice-phobos ice-phobos commented Jan 8, 2026

Description

  • Added _normalizeChartTitle local function which checks token type and
  • For creator tokens shows: @nickname (ticker name) format
  • For content tokens: ticker purely as arrived from backend

Task ID

ION-4982

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation
  • Chore

@ice-phobos ice-phobos force-pushed the fix/chart-header-title branch from ef4f43c to 05de731 Compare January 8, 2026 14:30
@ice-phobos ice-phobos marked this pull request as ready for review January 8, 2026 14:31
@ice-phobos ice-phobos requested review from a team as code owners January 8, 2026 14:31
@ice-morpheus ice-morpheus enabled auto-merge (squash) January 8, 2026 14:31
ice-kreios
ice-kreios previously approved these changes Jan 8, 2026
@ice-morpheus ice-morpheus force-pushed the fix/chart-header-title branch from 05de731 to 27a8def Compare January 8, 2026 15:20
@ice-morpheus ice-morpheus force-pushed the fix/chart-header-title branch 8 times, most recently from 53adf81 to c95c406 Compare January 9, 2026 10:06
@ice-morpheus ice-morpheus force-pushed the fix/chart-header-title branch 2 times, most recently from 1391ca3 to c9a357e Compare January 9, 2026 14:37
@ice-morpheus ice-morpheus force-pushed the fix/chart-header-title branch from c9a357e to 2806f78 Compare January 9, 2026 14:58
final result = tickerLower;
return result;
}
return '';
Copy link
Contributor

@ice-endymion ice-endymion Jan 9, 2026

Choose a reason for hiding this comment

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

Maybe it's better to use an optional as a return value?
String? _normalizeChartTitle(CommunityToken token)

Copy link
Contributor

Choose a reason for hiding this comment

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

can this be theoretically empty at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ice-neoptolemus theoretically not, but programmatically yes ))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ice-endymion if you mean format as needed and just return null if the nickname is null (which theoretically can't happen), yes, this sounds a better solution, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants