Skip to content

Commit 7ac9d2d

Browse files
authored
Fix v3/v4 navigation to non-existent page and mobile sidebar in dark mode (#1068)
* Fix menu dark mode in responsive * Added a bit of padding to the footer and changed v4 link * Formatted MD files * Added until to faq * Added until to faq * Fix #1058 Guide navigation links don't work if the same page does not exist on other guide.
1 parent a314433 commit 7ac9d2d

File tree

5 files changed

+64
-35
lines changed

5 files changed

+64
-35
lines changed

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,73 @@
22

33
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of
9+
experience, nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
611

712
## Our Standards
813

9-
Examples of behavior that contributes to creating a positive environment include:
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
1016

11-
* Using welcoming and inclusive language
12-
* Being respectful of differing viewpoints and experiences
13-
* Gracefully accepting constructive criticism
14-
* Focusing on what is best for the community
15-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
1622

1723
Examples of unacceptable behavior by participants include:
1824

19-
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20-
* Trolling, insulting/derogatory comments, and personal or political attacks
21-
* Public or private harassment
22-
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23-
* Other conduct which could reasonably be considered inappropriate in a professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
2433

2534
## Our Responsibilities
2635

27-
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
2839

29-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
40+
Project maintainers have the right and responsibility to remove, edit, or reject
41+
comments, commits, code, wiki edits, issues, and other contributions that are
42+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
43+
contributor for other behaviors that they deem inappropriate, threatening,
44+
offensive, or harmful.
3045

3146
## Scope
3247

33-
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
3454

3555
## Enforcement
3656

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. The project team
59+
will review and investigate all complaints, and will respond in a way that it
60+
deems appropriate to the circumstances. The project team is obligated to
61+
maintain confidentiality with regard to the reporter of an incident. Further
62+
details of specific enforcement policies may be posted separately.
3863

39-
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
4067

4168
## Attribution
4269

43-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
71+
version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
4472

4573
[homepage]: http://contributor-covenant.org
4674
[version]: http://contributor-covenant.org/version/1/4/

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@ solid _at scale_, and it does all of this while feeling like normal JavaScript.
2020
## Platforms
2121

2222
Effection runs on all major JavaScript platforms including NodeJs, Browser, and
23-
Deno. It is published on both [npm][npm-effection] and [deno.land][deno-land-effection].
23+
Deno. It is published on both [npm][npm-effection] and
24+
[deno.land][deno-land-effection].
2425

2526
## Contributing to Website
2627

2728
Go to [website's readme](www) to learn how to contribute to the website.
2829

2930
## Development
3031

31-
[Deno][] is the primary tool used for development, testing, and packaging.
32+
[Deno][Deno] is the primary tool used for development, testing, and packaging.
3233

3334
### Testing
3435

@@ -44,7 +45,7 @@ If you want to build a development version of the NPM package so that you can
4445
link it locally, you can use the `build:npm` script and passing it a version
4546
number. for example:
4647

47-
``` text
48+
```text
4849
$ deno task build:npm 3.0.0-mydev-snapshot.0
4950
Task build:npm deno run -A tasks/build-npm.ts "3.0.0-mydev-snapshot.0"
5051
[dnt] Transforming...

docs/faq.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Object.defineProperty(Promise.prototype, Symbol.iterator, {
4141

4242
## Why can't I use `call(Promise.resolve(42))` anymore?
4343

44-
In Effection v3, it was possible to `yield* call(Promise.resolve(42))` but we removed this in Effection v4
45-
because we wanted to align call closer to `Function.prototype.call`. You can still use
46-
`yield* call(() => Promise.resolve(42))` and `yield* call(async function() {})`. In v4, we plan to ship
47-
a new function called `when` which will take a promise and wrap it in a constructor for convenience.
44+
[until()](/api/v4/until) function offers a convenient alternative to passing a promise to `call`. In Effection v3, it was possible
45+
to `yield* call(Promise.resolve(42))` but we removed this in Effection v4 because we wanted to align call closer
46+
to `Function.prototype.call`. You can still use `yield* call(() => Promise.resolve(42))` and
47+
`yield* call(async function() {})`.

www/components/footer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { IconExternal } from "./icons/external.tsx";
22

33
export function Footer(): JSX.Element {
44
return (
5-
<footer class="grid grid-cols-3 text-center text-gray-500 tracking-wide bg-gray-100 dark:bg-gray-900 dark:text-gray-400 py-8 gap-y-4 leading-8 justify-self-end">
5+
<footer class="grid grid-cols-3 text-center text-gray-500 tracking-wide bg-gray-100 dark:bg-gray-900 dark:text-gray-400 py-8 gap-y-4 leading-8 justify-self-end px-5">
66
<section class="flex flex-col gap-y-1">
77
<h1 class="text-sm uppercase font-bold text-blue-primary dark:text-blue-secondary mb-4">
88
About
@@ -15,9 +15,9 @@ export function Footer(): JSX.Element {
1515
</a>
1616
<a
1717
class="text-gray-800 dark:text-gray-200"
18-
href="https://frontside.com/blog/2023-12-18-announcing-effection-v3/"
18+
href="https://frontside.com/blog/2025-12-23-announcing-effection-v4/"
1919
>
20-
Effection v3 Release Post <IconExternal />
20+
Effection v4 Release Post <IconExternal />
2121
</a>
2222
</section>
2323
<section class="flex flex-col gap-y-1">

www/routes/guides-route.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ export function guidesRoute({
113113

114114
const versionToggle = yield* all(
115115
SERIES.map(function* (s) {
116+
const target = yield* useGuides(s);
117+
const targetPage = yield* target.get(page.id);
118+
const base = current === s ? "docs" : `guides/${s}`;
119+
const url = yield* createRootUrl(base)(targetPage ? page.id : '/') ;
116120
return (
117121
<a
118-
href={
119-
yield* createRootUrl(current === s ? "docs" : `guides/${s}`)(
120-
page.id,
121-
)
122-
}
122+
href={url}
123123
class={`text-base ${s === series ? "font-bold text-sky-500" : "text-gray-600 dark:text-gray-400 hover:text-sky-500"}`}
124124
>
125125
{s}
@@ -136,7 +136,7 @@ export function guidesRoute({
136136
id="docbar"
137137
class="fixed top-0 h-full w-full grid grid-cols-2 md:hidden bg-white dark:bg-gray-900 dark:text-gray-200"
138138
>
139-
<nav class="bg-white p-2 border-r-2 h-full pt-24 min-h-0 h-full overflow-auto">
139+
<nav class="bg-white dark:bg-gray-900 p-2 border-r-2 dark:border-gray-700 pt-24 min-h-0 h-full overflow-auto">
140140
{topicsList}
141141
</nav>
142142
<label
@@ -153,7 +153,7 @@ export function guidesRoute({
153153
`}
154154
</style>
155155
</aside>
156-
<aside class="min-h-0 overflow-auto hidden md:block top-[120px] sticky h-fit bg-white dark:bg-gray-900 dark:text-gray-200">
156+
<aside class="min-h-0 overflow-auto hidden md:block top-30 sticky h-fit bg-white dark:bg-gray-900 dark:text-gray-200">
157157
<div class="text-xl flex flex-row items-baseline space-x-2 mb-3">
158158
<>
159159
<span class="font-bold">Guides</span>

0 commit comments

Comments
 (0)