feat: move/refactor navigation #19

Open
Moiety wants to merge 1 commit from moiety/nav-list into develop
Collaborator

moves the navigation code into its own component. this also refactors it into a list, this is generally helpful for AT as those can now announce the number of links. another thing is that the open button is moved into the <nav>-element. this makes it so that if someone were to navigate to the <nav>-element they’d be able open the menu from there.

i’d like to do a further refactor (especially the open/close mechanism) but this is a good start :)

moves the navigation code into its own component. this also refactors it into a list, this is generally helpful for AT as those can now announce the number of links. another thing is that the open button is moved into the `<nav>`-element. this makes it so that if someone were to navigate to the `<nav>`-element they’d be able open the menu from there. i’d like to do a further refactor (especially the open/close mechanism) but this is a good start :)
Moiety added 1 commit 2025-05-02 00:31:54 +02:00
moves the navigation code into its own component. this also refactors it into a list, this is generally helpful for AT as those can now announce the number of links. another thing is that the open button is moved into the <nav>-element. this makes it so that if someone were to navigate to the <nav>-element they’d be able open the menu from there.
Collaborator

I think moving navigation to it's own thing is fine, but this PR also introduces a new paradigm that could have implications down the road.

I'm gonna think about this one for a bit.

I think moving navigation to it's own thing is fine, but this PR also introduces a new paradigm that could have implications down the road. I'm gonna think about this one for a bit.
Author
Collaborator

Thank you for the feedback. Can you explain what you mean by “new paradigm”? i’m not really sure what that means. happy to change things.

Thank you for the feedback. Can you explain what you mean by “new paradigm”? i’m not really sure what that means. happy to change things.
Collaborator

I don't have View Components on the backend as I run everything through Controllers.

I'm trying to decide if that's something I want to implement site wide or keep the same structure that exists now.

I don't have View Components on the backend as I run everything through Controllers. I'm trying to decide if that's something I want to implement site wide or keep the same structure that exists now.
Author
Collaborator

Oh I see, i just followed the laravel component thing. I don’t know much about PHP to be honest, so if i can do that some other way i’m happy to learn/look that up.

Oh I see, i just followed the laravel component thing. I don’t know much about PHP to be honest, so if i can do that some other way i’m happy to learn/look that up.
Collaborator

The implementation was correct, so that's cool. I just don't use it, so you introduced a new idea that might be a better way to handle views, so I'm just taking a beat to think about the future implications, i.e. is it better to refactor views now, or just stick with what's there now.

The implementation was correct, so that's cool. I just don't use it, so you introduced a new idea that might be a better way to handle views, so I'm just taking a beat to think about the future implications, i.e. is it better to refactor views now, or just stick with what's there now.
Moiety force-pushed moiety/nav-list from 5883d2111f to b921134002 2025-05-05 22:46:16 +02:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin moiety/nav-list:moiety/nav-list
git checkout moiety/nav-list

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout develop
git merge --no-ff moiety/nav-list
git checkout moiety/nav-list
git rebase develop
git checkout develop
git merge --ff-only moiety/nav-list
git checkout moiety/nav-list
git rebase develop
git checkout develop
git merge --no-ff moiety/nav-list
git checkout develop
git merge --squash moiety/nav-list
git checkout develop
git merge --ff-only moiety/nav-list
git checkout develop
git merge moiety/nav-list
git push origin develop
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: projects/thebadspace#19
No description provided.