serokell / tzbot

Timezone bot for Slack
Mozilla Public License 2.0
7 stars 2 forks source link

[Fix] Slight refactor of render part #56

Closed YuriRomanowski closed 1 year ago

YuriRomanowski commented 1 year ago

Description

We are going to work hard on translate/render modules and I would like some refactor to be present in all of that PRs beforehand.

Changes:

  1. Remove button from section builders as it's never needed;
  2. Add separate datatype for sender flag instead of plain Bool;
  3. Replace plain text with markdown in the Slack section block;
  4. Add functions for converting to offset time/back;
  5. Unite fields of TimeReferenceToUtcResult for convenience.

Related issue(s)

Fixed #

:white_check_mark: Checklist for your Pull Request

Related changes (conditional)

Stylistic guide (mandatory)