You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Pull Request implement the Dictionary browse page; a page intended
to link to all dictionary word. It implements the "Alphabetical" word
browsing logic (to start with, maybe we can categorize some more 🤔). It
also implemented the alphabetic route that holds a list of words
starting with the requested alphabet and pagination for this list of
words.
### Changes Made
- Added a new `ALPHABETS` value to `constants` which obviously carries a
list of all alphabets a-z
- Implemented the paginated dynamics route `[alpha]/[page]` which builds
to a pagination-enabled routes for words filtered by their initial
letter
- Implemented the `/browse` page, which integrates the `ALPHABETS`
constant to create a button that links to individual route specific to
words starting with each alphabets
- temporarily implemented a `browse words` link that links to the
`/browse` page as fallback when no recent searches is found in localhost
- I still haven't exactly figured which position to place this link to
the browse page immediately yet 🤕
- Added some few new todos:
- Extract the `$addToRecentSearches` logic from the `search` island to
the `word.astro` layout to enable addition of words to recent searches
when a word is viewed - the current set-up only allows adding words to
recent searches when a word is opened through the search bar search
results
- Compute a means to get previous page url (maybe with `referer`) so as
to integrate in Navbar return nav to allow easy return to previous page,
this is particularly useful for returning user to the `/browse` page
from word layout if user opened word from their - the current setup only
returns a user to the homepage
### Screencast/Screenshot
[screencast-bpconcjcammlapcogcnnelfmaeghhagj-2024.04.24-12_41_08.webm](https://github.com/babblebey/jargons.dev/assets/25631971/5379dad9-20e3-4e0b-a3b3-9a39a5d4d8cb)
_**Alphabets with no words**_

📖
0 commit comments