Skip to content

Front-end for timeline page #3252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: backend-timeline
Choose a base branch
from
Open

Conversation

ildyria
Copy link
Member

@ildyria ildyria commented Apr 18, 2025

This pull request includes several changes aimed at improving naming consistency, enhancing timeline handling, and introducing new features like a timeline date navigation component. Below is a summary of the most important changes grouped by theme:

Naming Consistency Improvements:

  • Updated albumid to albumId across multiple files to ensure consistent camelCase naming conventions, including in Unlock.vue, ShareLine.vue, and AlbumThumb.vue. [1] [2] [3] [4]

Timeline and Layout Enhancements:

  • Added a new TimelineDates.vue component for navigating timeline dates, including logic for highlighting the current date and year.
  • Refactored timeline-related properties such as isTimeline and is_timeline_left_border_visible to computed properties for better reactivity and maintainability in components like PhotoThumbPanel.vue and AlbumThumbPanel.vue. [1] [2] [3] [4]
  • Updated PhotoThumbPanelList.vue to use idx instead of iter for unique identification of photo listings. [1] [2] [3]

Navigation and Routing Updates:

  • Simplified photo navigation by removing the albumId parameter from routes in AlbumPanel.vue, NextPrevious.vue, and ResultPanel.vue. [1] [2] [3]
  • Added a photoClick method in ResultPanel.vue to handle photo navigation using the updated route structure.

Feature Toggles:

  • Introduced an is_favourite_enabled toggle to conditionally display the "Favourites" link in AlbumHeader.vue and AlbumsHeader.vue. [1] [2] [3]

UI and Interaction Improvements:

  • Enhanced the Dock.vue component by conditionally displaying the "Set Album Header" button based on the isTimeline property. [1] [2]
  • Adjusted z-index and layout styles in PhotoPanel.vue for better slideshow and photo header rendering.

@ildyria ildyria requested a review from a team as a code owner April 18, 2025 14:38
@ildyria ildyria marked this pull request as draft April 18, 2025 17:12
@ildyria ildyria force-pushed the frontend-timeline branch from ea52a7d to c5dbc65 Compare April 21, 2025 18:36
Copy link

codecov bot commented Apr 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.44%. Comparing base (08bf005) to head (34606ab).

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ildyria ildyria force-pushed the frontend-timeline branch from c5dbc65 to 812fe55 Compare April 22, 2025 16:21
@ildyria ildyria changed the title Front-end for timeline page 🚧 Front-end for timeline page Apr 22, 2025
@ildyria ildyria added the parked - will revisit later This PR needs more work but some things need to be fixed before. label Apr 23, 2025
@ildyria ildyria force-pushed the frontend-timeline branch from 812fe55 to 91ae020 Compare May 27, 2025 15:15
@ildyria ildyria force-pushed the backend-timeline branch from 97fcc72 to 5458450 Compare May 27, 2025 15:15
@ildyria ildyria force-pushed the frontend-timeline branch 3 times, most recently from 77e6da3 to 45d9efe Compare May 28, 2025 16:28
@ildyria ildyria force-pushed the backend-timeline branch from 2c45144 to 86f46d4 Compare May 28, 2025 16:28
@ildyria ildyria force-pushed the frontend-timeline branch from 45d9efe to b50b1b4 Compare May 28, 2025 16:43
@ildyria ildyria force-pushed the backend-timeline branch 2 times, most recently from 79c16fe to 002a68e Compare May 28, 2025 18:27
@ildyria ildyria force-pushed the frontend-timeline branch from b50b1b4 to 0d7e38f Compare May 28, 2025 18:28
@ildyria ildyria force-pushed the backend-timeline branch from 002a68e to 9814f19 Compare May 28, 2025 18:33
@ildyria ildyria force-pushed the frontend-timeline branch from 0d7e38f to 7d8f9be Compare May 28, 2025 18:33
@ildyria ildyria removed the parked - will revisit later This PR needs more work but some things need to be fixed before. label May 28, 2025
@ildyria ildyria marked this pull request as ready for review May 29, 2025 12:43
@ildyria ildyria changed the title 🚧 Front-end for timeline page Front-end for timeline page May 29, 2025
@ildyria ildyria added the Review: medium Medium review expected: not many files, some attention to details required. label May 29, 2025
@ildyria ildyria force-pushed the backend-timeline branch from 8ac37d8 to b89975e Compare May 29, 2025 16:39
@ildyria ildyria force-pushed the frontend-timeline branch 2 times, most recently from 1625125 to d3dce6f Compare May 29, 2025 16:43
Comment on lines 121 to 128
// 'UPLOAD_PHOTO' => 'Upload Photo',
// 'IMPORT_LINK' => 'Import from Link',
// 'IMPORT_DROPBOX' => 'Import from Dropbox',
// 'IMPORT_SERVER' => 'Import from Server',
// 'NEW_ALBUM' => 'New Album',
// 'NEW_TAG_ALBUM' => 'New Tag Album',
// 'UPLOAD_TRACK' => 'Upload track',
// 'DELETE_TRACK' => 'Delete track',
Copy link
Contributor

Choose a reason for hiding this comment

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

If this comment is required could it be tidied up and expanded on

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed : 82d7b3d

Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +78 to +90
console.log("CTRL", idx);
if (isPhotoSelected(idx)) {
console.log("REMOVE");
removeFromPhotoSelection(idx);
} else {
console.log("ADD");
addToPhotoSelection(idx);
}
lastPhotoClicked.value = idx;
}

function handlePhotoShift(idx: number, e: Event): void {
console.log("SHIFT", idx);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the console logs meant to be here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed : 82d7b3d

Copy link
Member Author

Choose a reason for hiding this comment

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

const startAt = section.getBoundingClientRect().top + currentPosition;
const endAt = startAt + section.offsetHeight;
const isInView = currentPosition >= startAt && currentPosition < endAt;
console.log("Sections", section.dataset.date, isInView);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed : 82d7b3d

Copy link
Member Author

Choose a reason for hiding this comment

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

@ildyria ildyria force-pushed the frontend-timeline branch 2 times, most recently from e3f323a to 56cc6a1 Compare June 8, 2025 08:51
@ildyria ildyria force-pushed the backend-timeline branch from e5e533d to 7198efb Compare June 8, 2025 08:54
@ildyria ildyria force-pushed the frontend-timeline branch from ab7c255 to 50806d4 Compare June 8, 2025 09:50
@ildyria ildyria force-pushed the backend-timeline branch from 7198efb to 00c717b Compare June 8, 2025 09:51
@ildyria ildyria force-pushed the frontend-timeline branch from 50806d4 to 42ddf39 Compare June 8, 2025 10:19
@ildyria ildyria force-pushed the backend-timeline branch from 6eefc2a to 6829366 Compare June 11, 2025 13:07
@ildyria ildyria force-pushed the frontend-timeline branch from 42ddf39 to e739480 Compare June 11, 2025 13:07
@ildyria ildyria force-pushed the frontend-timeline branch from e739480 to 34606ab Compare June 11, 2025 13:45
@ildyria ildyria force-pushed the backend-timeline branch from 6829366 to 08bf005 Compare June 11, 2025 13:45
route: "/frame",
access: !(route.name as string).includes("frame") && (initData.value.modules.is_mod_frame_enabled ?? false),
Copy link
Member Author

Choose a reason for hiding this comment

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

unnecessary route check. frame has only a goBack button.

@@ -20,7 +20,6 @@ export function useMouseEvents(
}

function dropUpload(e: DragEvent) {
// console.log("dropUpload");
Copy link
Member Author

Choose a reason for hiding this comment

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

extract to another PR.

@@ -7,17 +7,6 @@
:pt:center:class="'absolute top-0 py-3 left-1/2 -translate-x-1/2 h-14'"
>
<template #start>
<!-- Not logged in. -->
Copy link
Member Author

Choose a reason for hiding this comment

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

extract to another pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review: medium Medium review expected: not many files, some attention to details required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants