Skip to content
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

feat(explorer): collapsible mobile explorer #1471

Merged
merged 30 commits into from
Feb 3, 2025
Merged

Conversation

saberzero1
Copy link
Collaborator

@saberzero1 saberzero1 commented Oct 1, 2024

Screencast.from.2024-10-01.23-34-59.webm

Progress

  • Mobile explorer fully functional
    • Collapsible
    • Icon mode on mobile
  • Verify desktop explorer functionality
  • Restore styles
    • Desktop layout
    • Full screen mobile layout
  • Clean up

@saberzero1 saberzero1 mentioned this pull request Oct 1, 2024
@saberzero1 saberzero1 marked this pull request as ready for review October 1, 2024 23:02
@saberzero1
Copy link
Collaborator Author

@aarnphm I suppose this is another PR with a breaking change, as the Explorer component is no longer DesktopOnly. Keeping it DesktopOnly keeps the functionality the same as currently, but makes the mobile Explorer view hidden by default.

@saberzero1 saberzero1 mentioned this pull request Oct 1, 2024
7 tasks
Copy link
Collaborator

@aarnphm aarnphm left a comment

Choose a reason for hiding this comment

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

cc jacky on this.

@aarnphm aarnphm requested a review from jackyzha0 October 2, 2024 03:44
@saberzero1
Copy link
Collaborator Author

cc jacky on this.

Thanks for the review.

I think most of your feedback is valid. I'll do some more experimenting to reduce redundant code/hacks.

I have another implementation that is a lot more sophisticated, but requires the navigation tree to be included twice. I remember that this is something we explicitly want to avoid, mostly due to accessibility concerns.

I'll ping you once I am satisfied with my changes.

@saberzero1
Copy link
Collaborator Author

@aarnphm I believe I have addressed your feedback.

Once the code changes are approved, I'll update the documentation and restore the default configuration (DesktopOnly on Explorer).

Copy link
Collaborator

@aarnphm aarnphm left a comment

Choose a reason for hiding this comment

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

cc jacky on this as well 😄

@saberzero1
Copy link
Collaborator Author

Screencast.from.2024-10-26.17-58-29.webm

@aarnphm aarnphm self-requested a review October 26, 2024 17:25
@Stephen-X
Copy link
Contributor

Bug report: Because explorer is hidden in folder index pages, the mobile explorer button also disappears from title bar.

@saberzero1
Copy link
Collaborator Author

Bug report: Because explorer is hidden in folder index pages, the mobile explorer button also disappears from title bar.

Can you check if this stil l occurs when the explorer is added to listpages in quartz.layout.ts?

@Stephen-X
Copy link
Contributor

Stephen-X commented Nov 2, 2024

Bug report: Because explorer is hidden in folder index pages, the mobile explorer button also disappears from title bar.

Can you check if this stil l occurs when the explorer is added to listpages in quartz.layout.ts?

Sorry that was a careless bug report. My setup mistake while testing the PR in different cases. I forgot I made explorer desktop-only for ListPages before this PR because the whole explorer would otherwise appear in the title bar.

MihailKovachev added a commit to MihailKovachev/Razon that referenced this pull request Dec 7, 2024
The implementation comes from the following pull request, which has not been merged at the time of this commit:

jackyzha0/quartz#1471
zelestis added a commit to zelestis/blog that referenced this pull request Dec 26, 2024
@PatMulligan
Copy link

Big fan of this PR 📣

@saberzero1 saberzero1 requested a review from Copilot February 1, 2025 17:45
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • quartz/components/styles/explorer.scss: Language not supported
Comments suppressed due to low confidence (1)

quartz/components/Explorer.tsx:47

  • The variable 'jsonTree' is being used without being declared in the scope of the 'constructFileTree' function. Ensure 'jsonTree' is declared in the appropriate scope.
let jsonTree: string

@saberzero1 saberzero1 requested a review from Copilot February 1, 2025 18:04

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • quartz/components/styles/explorer.scss: Language not supported
@saberzero1
Copy link
Collaborator Author

@aarnphm this should be ready now.

Copy link
Collaborator

@aarnphm aarnphm left a comment

Choose a reason for hiding this comment

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

I have one comments,otherwise LGTM

@aarnphm aarnphm merged commit 91189df into jackyzha0:v4 Feb 3, 2025
5 checks passed
ArenaDruid added a commit to ArenaDruid/quartz that referenced this pull request Feb 4, 2025
* Added plugin to support image captions

* Added plugin to support image lightbox

* Fixed style issues to resolve build failure

* GLightbox shows close button by default

* Fixed GLightbox not reloaded in SPA mode

* chore(styles): omit sass deprecation warnings (jackyzha0#1737)

update to newer API

* chore(deps): bump the production-dependencies group across 1 directory with 3 updates (jackyzha0#1744)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(graph): enable radial mode (jackyzha0#1738)

* feat(explorer): collapsible mobile explorer (jackyzha0#1471)

Co-authored-by: Aaron Pham <[email protected]>

* 测试效果

---------

Co-authored-by: Stephen Tse <[email protected]>
Co-authored-by: Anton Bulakh <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Pham <[email protected]>
Co-authored-by: Emile Bangma <[email protected]>
Co-authored-by: Aaron Pham <[email protected]>
Krutik460 pushed a commit to Krutik460/brain that referenced this pull request Feb 7, 2025
zh30 pushed a commit to zh30/zhanghe.date that referenced this pull request Feb 18, 2025
Nasr-905 pushed a commit to Nasr-905/cerebrum-secundum that referenced this pull request Feb 21, 2025
@saberzero1 saberzero1 deleted the explorer branch February 28, 2025 01:23
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.

5 participants