refactor(web): rename MonthGroup to TimelineMonth (#27447)

Rename MonthGroup class to TimelineMonth to better convey that it represents a single month within the timeline. Updates the file, class, and all references across 16 files.

Change-Id: Id50fd6d4b7d0e431571b67c0f81c0e316a6a6964
This commit is contained in:
Min Idzelis
2026-04-03 13:27:12 -04:00
committed by GitHub
parent 207672c481
commit 649d14822a
16 changed files with 295 additions and 274 deletions
+5 -5
View File
@@ -396,18 +396,18 @@ export const selectAllAssets = async (timelineManager: TimelineManager, assetInt
assetInteraction.selectAll = true;
try {
for (const monthGroup of timelineManager.months) {
if (!monthGroup.isLoaded) {
await timelineManager.loadMonthGroup(monthGroup.yearMonth);
for (const timelineMonth of timelineManager.months) {
if (!timelineMonth.isLoaded) {
await timelineManager.loadTimelineMonth(timelineMonth.yearMonth);
}
if (!assetInteraction.selectAll) {
assetInteraction.clear();
break; // Cancelled
}
assetInteraction.selectAssets([...monthGroup.assetsIterator()]);
assetInteraction.selectAssets([...timelineMonth.assetsIterator()]);
for (const dateGroup of monthGroup.timelineDays) {
for (const dateGroup of timelineMonth.timelineDays) {
assetInteraction.addGroupToMultiselectGroup(dateGroup.groupTitle);
}
}
+1 -1
View File
@@ -100,7 +100,7 @@ export const toISOYearMonthUTC = ({ year, month }: TimelineYearMonth): string =>
return `${yearFull}-${monthFull}-01T00:00:00.000Z`;
};
export function formatMonthGroupTitle(_date: DateTime): string {
export function formatTimelineMonthTitle(_date: DateTime): string {
if (!_date.isValid) {
return _date.toString();
}