Skip to content

fix: padding on the poem and red dot time - #878

Merged
tentamdin merged 3 commits into
developfrom
home-fixes
Sep 30, 2026
Merged

tentamdin merged 3 commits into
developfrom
home-fixes

Conversation

@10zYmon

@10zYmon 10zYmon commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

fix #817

  • padding on poem title in tibetan
  • red dot show only when its in time range.
Screenshot 2026-09-30 at 12 41 54 PM

@10zYmon

10zYmon commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

waiting for backend to send the time.

@10zYmon
10zYmon marked this pull request as ready for review September 30, 2026 11:21
@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium risk] Adds event timing and display logic to the home feed.

The PR appears safe to merge, with two non-blocking timing and title-spacing issues.

Findings

  1. P2 Live dot changes late ▶
  2. P2 Tibetan title stays cramped ▶
Fix with agent prompt
### Issue 1
lib/features/home/presentation/widgets/home_header.dart:104-106
`HomeEventBanner` starts its one-minute timer when the banner mounts, not at an event's start or end time. If the event changes state between ticks, the dot can appear late or stay visible for up to a minute after the event ends. Recheck at the event's time boundary.

### Issue 2
lib/features/poems/presentation/widgets/poem_story_page.dart:72-75
`PoemStoryPage` chooses title spacing from the app's selected content language. The viewer can also fetch a poem by ID without a language filter. If that poem has a Tibetan title while another language is selected, it gets the tighter spacing, so the title can still look cramped. Base the spacing on the title being shown.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (2) · Last reviewed commit: "fx"

Comment thread lib/features/home/domain/entities/today_event.dart
@10zYmon

10zYmon commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator Author

@greptileai

Comment on lines +104 to +106
_ticker = Timer.periodic(
const Duration(minutes: 1),
(_) => setState(() {}),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Live dot changes late

HomeEventBanner starts its one-minute timer when the banner mounts, not at an event's start or end time. If the event changes state between ticks, the dot can appear late or stay visible for up to a minute after the event ends. Recheck at the event's time boundary.

Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/features/home/presentation/widgets/home_header.dart
Line: 104-106

Comment:
**Live dot changes late**

`HomeEventBanner` starts its one-minute timer when the banner mounts, not at an event's start or end time. If the event changes state between ticks, the dot can appear late or stay visible for up to a minute after the event ends. Recheck at the event's time boundary.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Comment on lines +72 to +75
final languageCode = ref.watch(contentLanguageProvider);
final isTibetan = AppFontConfig.isTibetanLanguage(languageCode);
// Tibetan glyphs sit tall above the baseline, so give the title extra room.
final titleTopPadding = isTibetan ? 20.0 : 8.0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Tibetan title stays cramped

PoemStoryPage chooses title spacing from the app's selected content language. The viewer can also fetch a poem by ID without a language filter. If that poem has a Tibetan title while another language is selected, it gets the tighter spacing, so the title can still look cramped. Base the spacing on the title being shown.

Prompt To Fix With AI
This is a comment left during a code review.
Path: lib/features/poems/presentation/widgets/poem_story_page.dart
Line: 72-75

Comment:
**Tibetan title stays cramped**

`PoemStoryPage` chooses title spacing from the app's selected content language. The viewer can also fetch a poem by ID without a language filter. If that poem has a Tibetan title while another language is selected, it gets the tighter spacing, so the title can still look cramped. Base the spacing on the title being shown.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

@tentamdin
tentamdin merged commit 53b145d into develop Sep 30, 2026
1 of 2 checks passed
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.

2 participants