Skip to content

Commit ad44264

Browse files
committed
fix: cleanup website
1 parent 0f0d7da commit ad44264

27 files changed

Lines changed: 120 additions & 117 deletions

File tree

web/landing/assets/codemirror/themes/theme-flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const flowThemeExtension = [
146146
syntaxHighlighting(flowHighlightStyle)
147147
]
148148

149-
/* Light variant stock prism-inspired palette on near-white background. */
149+
/* Light variant - stock prism-inspired palette on near-white background. */
150150
export const flowLightTheme = EditorView.theme({
151151
"&": {
152152
backgroundColor: "#ffffff",

web/landing/assets/controllers/site_search_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default class extends Controller {
4141
pageSize: 6,
4242
excerptLength: 24,
4343
resetStyles: false,
44-
translations: { placeholder: 'Search documentation' },
44+
translations: { placeholder: 'Search documentation...' },
4545
});
4646
}
4747

web/landing/assets/images/work-shop/claude-skills-workflow.svg

Lines changed: 1 addition & 1 deletion
Loading

web/landing/assets/images/work-shop/claude-skills.svg

Lines changed: 7 additions & 4 deletions
Loading

web/landing/assets/images/work-shop/sponsoring-12m.svg

Lines changed: 2 additions & 2 deletions
Loading

web/landing/assets/images/work-shop/sponsoring-1m.svg

Lines changed: 2 additions & 2 deletions
Loading

web/landing/assets/images/work-shop/sponsoring-6m.svg

Lines changed: 2 additions & 2 deletions
Loading

web/landing/assets/styles/app.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ html {
3030
@apply list-disc pl-6;
3131
}
3232

33-
/* Surfaces a single source of truth for card backgrounds, replacing the
33+
/* Surfaces - a single source of truth for card backgrounds, replacing the
3434
repeated `rounded ... shadow-2xl shadow-gray border-gray border-2` pattern. */
3535
.card {
3636
@apply relative rounded-xl border border-slate-200 bg-white p-6
@@ -95,7 +95,7 @@ html {
9595
@apply inline-block;
9696
}
9797

98-
/* Work-Shop nav item a slow breathing glow so the shop stands out from any page.
98+
/* Work-Shop nav item - a slow breathing glow so the shop stands out from any page.
9999
Falls back to a steady glow when the visitor prefers reduced motion. */
100100
.nav-glow {
101101
animation: nav-glow-breathe 3s ease-in-out infinite;
@@ -393,7 +393,7 @@ code {
393393
}
394394

395395
/* Mobile docs popover lives inside #documentation-page so it inherits prose
396-
list styling reset it. */
396+
list styling - reset it. */
397397
#docs-mobile-nav ul {
398398
@apply list-none pl-0;
399399
}
@@ -527,7 +527,7 @@ code {
527527
display: none;
528528
}
529529

530-
/* Playground unified with brand palette: orange-100 = primary accent
530+
/* Playground - unified with brand palette: orange-100 = primary accent
531531
(active states, CTAs), blue-100 = file-tree directories, white/* opacity =
532532
neutral surfaces. Output semantic colors (cyan/green/yellow/red) are
533533
intentionally kept for terminal-style readability. */

web/landing/src/Flow/Website/WorkShop/Listings.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ final class Listings
8585
'subtitle' => 'Flow PHP is MIT and free. Sponsoring funds the work that keeps it that way, and gets you into the sponsor-only channels on our Discord.',
8686
'listings' => [
8787
[
88-
'name' => 'Sponsoring 1 Month',
88+
'name' => 'Sponsoring - 1 Month',
8989
'slug' => 'sponsoring-1-month',
90-
'blurb' => 'A small monthly contribution towards maintenance, releases and infrastructure. In exchange: the Sponsor role on our Discord a custom username color and the exclusive channels where the roadmap happens.',
90+
'blurb' => 'A small monthly contribution towards maintenance, releases and infrastructure. In exchange: the Sponsor role on our Discord - a custom username color and the exclusive channels where the roadmap happens.',
9191
'features' => [
9292
'Sponsor role with a custom username color',
9393
'Access to exclusive sponsor-only channels',
@@ -102,7 +102,7 @@ final class Listings
102102
'image' => 'images/work-shop/sponsoring-1m.svg',
103103
],
104104
[
105-
'name' => 'Sponsoring 6 Months',
105+
'name' => 'Sponsoring - 6 Months',
106106
'slug' => 'sponsoring-6-months',
107107
'blurb' => 'The same sponsorship in one payment every six months, 3% off the monthly price. The Sponsor role, a custom username color and the exclusive channels included.',
108108
'features' => [
@@ -119,7 +119,7 @@ final class Listings
119119
'image' => 'images/work-shop/sponsoring-6m.svg',
120120
],
121121
[
122-
'name' => 'Sponsoring 12 Months',
122+
'name' => 'Sponsoring - 12 Months',
123123
'slug' => 'sponsoring-12-months',
124124
'blurb' => 'A full year of sponsoring in one payment, 8% off the monthly price. The Sponsor role, a custom username color and the exclusive channels included.',
125125
'features' => [

web/landing/templates/blog/posts/2025-01-25/data-processing-in-php/post.html.twig

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
The real challenge starts when we need to fully convert the input format to match our database. Let me give you an example.
1616
</p>
1717
<p>
18-
Lets imagine a system that allows users to upload user delivery addresses.<br/>
18+
Let's imagine a system that allows users to upload user delivery addresses.<br/>
1919
Each user needs to have at least one address, and each address comes in the following format:
2020
</p>
2121
<pre><code class="language-json" {{ stimulus_controller('syntax_highlight') }}>{% apply escape %}{% include template_folder ~ '/address.json' %}{% endapply %}</code></pre>
@@ -45,10 +45,10 @@
4545
</ul>
4646

4747
<p>
48-
Doesnt look like a complicated task, right?
48+
Doesn't look like a complicated task, right?
4949
</p>
5050
<p>
51-
Well, those are famous last words 😅
51+
Well, those are famous last words.
5252
</p>
5353
<p>
5454
What if business users would like to upload files larger than our available amount of RAM?
@@ -81,7 +81,7 @@
8181

8282
<p>
8383
Flow PHP aims to reduce data processing complexity and standardize the approach, considering resource consumption.<br/>
84-
OK, but lets get back to our example.<br/>
84+
OK, but let's get back to our example.<br/>
8585
To make it easier to create those import files for the user, the file's expected data structure looks like this:
8686
</p>
8787
<ul>
@@ -103,7 +103,7 @@
103103
<li>1) Read a row from a file</li>
104104
<li>2) Validate it</li>
105105
<li>3) Find a user_id based on user_email from a file</li>
106-
<li>4) Insert an address to a database or update it if its already there</li>
106+
<li>4) Insert an address to a database or update it if it's already there</li>
107107
</ul>
108108
<p>
109109
OK, but what about invalid rows?<br/>
@@ -157,7 +157,7 @@
157157
</p>
158158

159159
<p>
160-
Now we need to check if this condition is true and when its true, just leave the value of the column "valid" as is, otherwise we need to set it to "false".
160+
Now we need to check if this condition is true and when it's true, just leave the value of the column "valid" as is, otherwise we need to set it to "false".
161161
</p>
162162

163163
<pre><code class="language-php" {{ stimulus_controller('syntax_highlight') }}>{% apply escape %}{% include template_folder ~ '/single-column-validation.php' %}{% endapply %}</code></pre>
@@ -169,7 +169,7 @@
169169
<pre><code class="language-php" {{ stimulus_controller('syntax_highlight') }}>{% apply escape %}{% include template_folder ~ '/full-validation.php' %}{% endapply %}</code></pre>
170170

171171
<blockquote>
172-
💡 It’s usually a good idea to extract such logic into a standalone transformation. This way our validation logic can be tested in isolation.
172+
It's usually a good idea to extract such logic into a standalone transformation. This way our validation logic can be tested in isolation.
173173
</blockquote>
174174

175175
<pre><code class="language-php" {{ stimulus_controller('syntax_highlight') }}>{% apply escape %}{% include template_folder ~ '/validation-transformation.php' %}{% endapply %}</code></pre>
@@ -179,13 +179,13 @@
179179
but before we do that, we should first write all invalid rows to a separate file.
180180
</p>
181181
<p>
182-
Flow has a dedicated loader which can write only a subset of the dataset based on the provided condition. Its called <code>to_branch()</code>.
182+
Flow has a dedicated loader which can write only a subset of the dataset based on the provided condition. It's called <code>to_branch()</code>.
183183
</p>
184184

185185
<pre><code class="language-php" {{ stimulus_controller('syntax_highlight') }}>{% apply escape %}{% include template_folder ~ '/write-to-branch.php' %}{% endapply %}</code></pre>
186186

187187
<blockquote>
188-
💡 Try clicking function names in the code examples!
188+
Try clicking function names in the code examples!
189189
</blockquote>
190190

191191
<p>
@@ -216,7 +216,7 @@
216216
</p>
217217
<p>
218218
In a typical scenario, we would try to collect emails from the import file into reasonable batches and query a database
219-
to return us the user_ids those emails belong to.
219+
to return us the user_id's those emails belong to.
220220
</p>
221221
<blockquote>
222222
In order to not overcomplicate our example, we are going to assume that all emails exist in the database.
@@ -244,7 +244,7 @@
244244
to start over again until the whole import file is processed.
245245
</p>
246246
<p>
247-
JoinEach is a very specific operation; it requires us to create a new DataFrame for each batch, thats why we need to implement the <code>DataFrameFactory</code> interface.
247+
JoinEach is a very specific operation; it requires us to create a new DataFrame for each batch, that's why we need to implement the <code>DataFrameFactory</code> interface.
248248
</p>
249249
<pre><code class="language-php" {{ stimulus_controller('syntax_highlight') }}>{% apply escape %}{% include template_folder ~ '/user-id-join-data-frame-factory.php' %}{% endapply %}</code></pre>
250250

@@ -255,7 +255,7 @@
255255
<pre><code class="language-php" {{ stimulus_controller('syntax_highlight') }}>{% apply escape %}{% include template_folder ~ '/join-each.php' %}{% endapply %}</code></pre>
256256

257257
<p>
258-
Thats it, lets now use `to_output()` loader to display our dataset after join operation
258+
That's it, lets now use `to_output()` loader to display our dataset after join operation
259259
</p>
260260

261261
<pre><code class="language-txt" {{ stimulus_controller('syntax_highlight') }}>{% apply escape %}{% include template_folder ~ '/data.txt' %}{% endapply %}</code></pre>
@@ -265,10 +265,10 @@
265265
invalid rows to our broken rows file, but let's skip that part and move to loading data into the database.
266266
</p>
267267

268-
<h2>Step #4 - Insert an address to a database or update it, if its already there</h2>
268+
<h2>Step #4 - Insert an address to a database or update it, if it's already there</h2>
269269

270270
<p>
271-
Now, when we know which address belongs to which user, its time to update (insert or update) those addresses into the user_addresses database table.<br/>
271+
Now, when we know which address belongs to which user, it's time to update (insert or update) those addresses into the user_addresses database table.<br/>
272272
Oh wait, there is one more thing.
273273
</p>
274274
<p>
@@ -282,7 +282,7 @@
282282

283283
<p>
284284
Now we are ready to update our addresses into a database!<br/>
285-
Ready? Normally its not the easiest to perform bulk upsert through Doctrine DBAL.<br/>
285+
Ready? Normally it's not the easiest to perform bulk upsert through Doctrine DBAL.<br/>
286286
Luckily, Flow comes with a <a href="/documentation/components/libs/doctrine-dbal-bulk/" target="_blank">doctrine-dbal-bulk</a> library so at the end of the day, here is how it looks:
287287
</p>
288288

0 commit comments

Comments
 (0)