Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

feat: allow choosing favorite buttons in bottom navigation bar#2761

Conversation

shuuji3
Copy link
Member

@shuuji3shuuji3 commentedApr 5, 2024
edited
Loading

resolves#2757

@stackblitzStackBlitz
Copy link

Review PR in StackBlitz CodeflowRun & review this pull request inStackBlitz Codeflow.

@netlifyNetlify
Copy link

netlifybot commentedApr 5, 2024
edited
Loading

Deploy Preview forelk-docs canceled.

NameLink
🔨 Latest commitbf1fcb1
🔍 Latest deploy loghttps://app.netlify.com/sites/elk-docs/deploys/6618f47ce25e140008897153

@netlifyNetlify
Copy link

netlifybot commentedApr 5, 2024
edited
Loading

Deploy Preview forelk-zone ready!

NameLink
🔨 Latest commitbf1fcb1
🔍 Latest deploy loghttps://app.netlify.com/sites/elk-zone/deploys/6618f47c16c2860008350a20
😎 Deploy Previewhttps://deploy-preview-2761--elk-zone.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site configuration.

@shuuji3shuuji3force-pushed theshuuji3/refactor/extract-button-components-for-customizable-nav-bottom branch 2 times, most recently from4fb121e tof88bd29CompareApril 5, 2024 15:11
@shuuji3shuuji3 marked this pull request as ready for reviewApril 5, 2024 15:55
@shuuji3shuuji3force-pushed theshuuji3/refactor/extract-button-components-for-customizable-nav-bottom branch 3 times, most recently from67fa668 tofaf253cCompareApril 7, 2024 16:42
@shuuji3shuuji3 marked this pull request as draftApril 11, 2024 15:32
@shuuji3shuuji3force-pushed theshuuji3/refactor/extract-button-components-for-customizable-nav-bottom branch fromfaf253c to7f8a2a1CompareApril 11, 2024 15:49
@shuuji3shuuji3 changed the titlerefactor: extract button components for customizable nav bottomrefactor: customizable bottom nav buttons on mobile viewApr 11, 2024
<button
v-for="{ name, label, icon } in availableNavButtons"
:key="name"
btn-text flex="~ gap-2" p2 border="~ base rounded" bg-base ws-nowrap
Copy link
Member

@userquinuserquinApr 11, 2024
edited
Loading

Choose a reason for hiding this comment

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

maybe you can addselected option toNavButton to simply logic...

can you add these attributes?

      type="button"      role="switch"      :aria-checked="selectedNavButtonNames.includes(name)"

and removedisable attribute?

You also need to include toggle logic, adding some style instead disabling it

Copy link
Member

Choose a reason for hiding this comment

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

I'll check it next weekend on my local, don't apply changes yet

shuuji3 reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Thanks for suggestion for button styling!

I'm actually still explorering what kind of UI would be better overall. A bit more adjustment would be included until finalizing. Maybe I'll add some ordering button or better remove button etc. later for the easy arrangement.

userquin reacted with thumbs up emoji
Copy link
Member

Choose a reason for hiding this comment

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

Maybe an editable forn? Check push notification in notifications settings (you will needd to enable them, dont forget to remove once you've check it)

shuuji3 reacted with thumbs up emoji
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

OK, I was able to implement the toggle button logic now. 🙂

@shuuji3shuuji3force-pushed theshuuji3/refactor/extract-button-components-for-customizable-nav-bottom branch 2 times, most recently from9d3743a to6ca5557CompareApril 12, 2024 07:41
@shuuji3shuuji3force-pushed theshuuji3/refactor/extract-button-components-for-customizable-nav-bottom branch 2 times, most recently from7216716 toa7ce23dCompareApril 12, 2024 08:07
@shuuji3
Copy link
MemberAuthor

shuuji3 commentedApr 12, 2024
edited
Loading

Now it's ready to review.

  • Each button can add/remove the button to/from the nav bar.
  • Added "Clear" button - remove all buttons from the nav bar
  • Added "Reset" button - reset the button list to the default state (same as the current Elk)

Screenshot from 2024-04-12 17-07-30

@shuuji3shuuji3 marked this pull request as ready for reviewApril 12, 2024 08:10
@shuuji3shuuji3 changed the titlerefactor: customizable bottom nav buttons on mobile viewfeat: allow choosing favorite buttons in bottom navigation barApr 12, 2024
@shuuji3shuuji3force-pushed theshuuji3/refactor/extract-button-components-for-customizable-nav-bottom branch froma7ce23d tocda518cCompareApril 12, 2024 08:20
@shuuji3shuuji3force-pushed theshuuji3/refactor/extract-button-components-for-customizable-nav-bottom branch fromcda518c tobf1fcb1CompareApril 12, 2024 08:44
Copy link
Member

@patak-devpatak-dev left a comment

Choose a reason for hiding this comment

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

This is incredible! A lot of people will be very happy when this feature is released.

The current way to show what buttons were available wasn't very clear to me, and I didn't discover easily that I should first clear then add the buttons to get the order I want. I don't have a better proposal that doesn't involve complex drag and drop so I think we should merge this for now. Users aren't going to use this all the time. If we have a better idea later, we can improve it.

shuuji3 reacted with heart emoji
@patak-devpatak-dev added this pull request to themerge queueApr 12, 2024
Merged via the queue intomain with commit2cb070cApr 12, 2024
15 checks passed
@patak-devpatak-dev deleted the shuuji3/refactor/extract-button-components-for-customizable-nav-bottom branchApril 12, 2024 09:41
@shuuji3
Copy link
MemberAuthor

shuuji3 commentedApr 12, 2024
edited
Loading

@patak-dev I just realized that in the normal use case, users want to create a different button arrangement than the current one so there is no need to place them as default. I made#2803 to set the default selection empty.

Yes, the drag and drop pattern was exactly one of the candidates I was thinking about, but avoid it for now due to complexity for now. If I come up with a better UI, I'll make another PR.

patak-dev reacted with heart emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@userquinuserquinuserquin left review comments

@patak-devpatak-devpatak-dev approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Customizable bottom nav bar buttons on mobile
3 participants
@shuuji3@patak-dev@userquin

[8]ページ先頭

©2009-2025 Movatter.jp