Skip to content

Commit d689fe8

Browse files
authored
Merge branch 'main' into ai
2 parents 9402a33 + 23f4abf commit d689fe8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1070
-275
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
# Initializes the CodeQL tools for scanning.
3535
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb
36+
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee
3737
with:
3838
languages: ${{ matrix.language }}
3939
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -44,7 +44,7 @@ jobs:
4444
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4545
# If this step fails, then you should remove it and run the build manually (see below)
4646
- name: Autobuild
47-
uses: github/codeql-action/autobuild@4e94bd11f71e507f7f87df81788dff88d1dacbfb
47+
uses: github/codeql-action/autobuild@0499de31b99561a6d14a36a5f662c2a54f91beee
4848

4949
# ℹ️ Command-line programs to run using the OS shell.
5050
# 📚 https://git.io/JvXDl
@@ -58,4 +58,4 @@ jobs:
5858
# make release
5959

6060
- name: Perform CodeQL Analysis
61-
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb
61+
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Other ways you can contribute:
4444
* [Request docs for docs.flutter.dev][doc-issues]
4545
* [Submit PRs to docs.flutter.dev][doc-PRs]
4646
* [Follow us on Twitter: @flutterdev](https://twitter.com/flutterdev/)
47-
* [Read the Flutter Publication on Medium](https://blog.flutter.dev)
47+
* [Read the Flutter blog](https://blog.flutter.dev)
4848
* [Sign up to Future UX Studies on Flutter](https://flutter.dev/research-signup)
4949
* [Join the subreddit to keep up with the latest in the Flutter
5050
community][reddit]

firebase.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
{ "source": "/flutter-for-:platform*", "destination": "/get-started/flutter-for/:platform*-devs", "type": 301 },
5959
{ "source": "/formatting", "destination": "/tools/formatting", "type": 301 },
6060
{ "source": "/gestures", "destination": "/ui/advanced/gestures", "type": 301 },
61+
{ "source": "/glossary", "destination": "/resources/glossary", "type": 301 },
62+
{ "source": "/glossary/:entry", "destination": "/resources/glossary#:entry", "type": 301 },
6163
{ "source": "/hot-reload", "destination": "/tools/hot-reload", "type": 301 },
6264
{ "source": "/ide-setup", "destination": "/tools/editors", "type": 301 },
6365
{ "source": "/images/catalog-widget-placeholder.png", "destination": "/assets/images/docs/catalog-widget-placeholder.png", "type": 301 },
@@ -357,6 +359,7 @@
357359
{ "source": "/go/data-sync", "destination": "https://docs.google.com/document/d/1yH96-p-SkMmt6hL5xHHDtMvCKRz2XGrMuw9ZY_nE954", "type": 301 },
358360
{ "source": "/go/decouple-design", "destination": "https://docs.google.com/document/d/189AbzVGpxhQczTcdfJd13o_EL36t-M5jOEt1hgBIh7w/edit?usp=sharing", "type": 301 },
359361
{ "source": "/go/dds-daemon", "destination": "https://docs.google.com/document/d/18IgFakijiv9CLFGT5BckbwZuf2pqhOUeN27mB9XqvpQ/edit?usp=sharing&resourcekey=0-rBHvH9gLXLjGPWt5WE-XFg", "type": 301 },
362+
{ "source": "/go/decoupling-framework-tests", "destination": "https://docs.google.com/document/d/1UHxALQqCbmgjnM1RNV9xE2pK3IGyx-UktGX1D7hYCjs/edit?pli=1&tab=t.0", "type": 301 },
360363
{ "source": "/go/deep-link-flag-migration", "destination": "https://docs.google.com/document/d/1TUhaEhNdi2BUgKWQFEbOzJgmUAlLJwIAhnFfZraKgQs/edit?usp=sharing", "type": 301 },
361364
{ "source": "/go/default-animation-style", "destination": "https://docs.google.com/document/d/18c28hbe1mRBZLcnaip5LM9zlshIOEpuvBLWKZiXGe9g/", "type": 301 },
362365
{ "source": "/go/default-scroll-action", "destination": "https://docs.google.com/document/d/1SJvom6k4YW4EtFIY4VpAhAOH-jWhRkHVfpVsOBB56KM/edit?usp=sharing", "type": 301 },

site/lib/_sass/_site.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
@use 'components/cookie-notice';
2323
@use 'components/dropdown';
2424
@use 'components/expansion-list';
25+
@use 'components/filter-search';
2526
@use 'components/footer';
2627
@use 'components/header';
2728
@use 'components/icons';
@@ -38,6 +39,7 @@
3839
@use 'components/trailing';
3940

4041
// Styles for specific pages, alphabetically ordered.
42+
@use 'pages/glossary';
4143
@use 'pages/learning-resources-index';
4244
@use 'pages/not-found';
4345
@use 'pages/search';

site/lib/_sass/components/_button.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ button {
3535
font-weight: 500;
3636
font-family: var(--site-ui-fontFamily);
3737
gap: 0.3rem;
38-
padding: 0.5rem 1rem;
38+
padding: 0.4rem 0.9rem;
3939
text-decoration: none;
4040
cursor: pointer;
4141
}
@@ -46,6 +46,11 @@ button {
4646
outline-offset: 2px;
4747
user-select: none;
4848

49+
span.material-symbols {
50+
font-variation-settings: 'FILL' 1;
51+
font-size: 20px;
52+
}
53+
4954
&:hover {
5055
@include mixins.interaction-style(8%);
5156
}

site/lib/_sass/components/_card.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
@use '../base/mixins';
22

3+
.card-list {
4+
display: flex;
5+
flex-direction: column;
6+
gap: var(--card-grid-gap, 1rem);
7+
margin: 0;
8+
justify-content: center;
9+
}
10+
311
.card-grid {
412
display: grid;
513
grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--card-min-width, 15rem)), 1fr));
@@ -30,7 +38,9 @@
3038
--card-min-width: 10rem;
3139
grid-auto-rows: 1fr;
3240
}
41+
}
3342

43+
.card-grid, .card-list {
3444
.card {
3545
display: flex;
3646
flex-direction: column;
@@ -101,7 +111,7 @@
101111
}
102112
}
103113

104-
.card-content {
114+
&:not(.glossary-card) .card-content {
105115
display: flex;
106116
align-items: center;
107117
gap: 0.75rem;
@@ -225,7 +235,6 @@
225235
}
226236
}
227237

228-
229238
.card-image-holder-material-3 {
230239
position: relative;
231240
align-items: center;

site/lib/_sass/components/_content.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#page-content {
1+
main {
22
display: flex;
33
flex-direction: column;
44
justify-content: center;
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#filter-and-search {
2+
display: flex;
3+
flex-direction: column;
4+
flex-wrap: wrap;
5+
justify-content: center;
6+
gap: 0.75rem;
7+
margin-block-start: 1rem;
8+
margin-block-end: 1rem;
9+
10+
&.hidden {
11+
display: none;
12+
}
13+
14+
.search-row {
15+
display: flex;
16+
flex-direction: row;
17+
align-items: center;
18+
width: 100%;
19+
gap: 0.5rem;
20+
21+
.search-wrapper {
22+
display: flex;
23+
align-items: center;
24+
width: 100%;
25+
26+
border: 1px solid var(--site-outline);
27+
border-radius: 1rem;
28+
height: 3rem;
29+
padding: 0 .5rem;
30+
31+
&:has(:focus-visible) {
32+
outline: 2px solid var(--site-primary-color);
33+
border-color: transparent;
34+
}
35+
36+
.leading-icon {
37+
padding-left: 0.25rem;
38+
user-select: none;
39+
}
40+
41+
input {
42+
background: none;
43+
width: 100%;
44+
font-size: 1rem;
45+
cursor: text;
46+
47+
&:focus {
48+
outline: none;
49+
}
50+
51+
&::-webkit-search-cancel-button {
52+
display: none;
53+
}
54+
}
55+
}
56+
}
57+
58+
+ section.content-search-results {
59+
margin-block-start: 0.5rem;
60+
margin-block-end: 1rem;
61+
}
62+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
@use '../base/mixins';
2+
3+
body.glossary-page main {
4+
.glossary-card {
5+
height: auto;
6+
padding: 0.75rem;
7+
8+
.expandable-content {
9+
border-top: 0.05rem solid var(--site-inset-borderColor);
10+
padding-top: 0.5rem;
11+
}
12+
13+
&.collapsed {
14+
min-height: 8rem;
15+
16+
.initial-content {
17+
// Only show the first paragraph if collapsed.
18+
> :not(:first-child) {
19+
display: none;
20+
}
21+
}
22+
23+
.expandable-content {
24+
display: none;
25+
}
26+
27+
.expand-button {
28+
transform: rotate(180deg);
29+
}
30+
}
31+
32+
.expand-button {
33+
&:hover, &:focus-within {
34+
transition: transform .25s ease-out;
35+
}
36+
}
37+
38+
.card-header {
39+
display: flex;
40+
flex-direction: row;
41+
justify-content: space-between;
42+
align-items: center;
43+
}
44+
}
45+
46+
.details-header {
47+
font-weight: 500;
48+
margin-bottom: 0.5rem;
49+
margin-top: 0.5rem;
50+
font-size: 1rem;
51+
}
52+
53+
.resources-list {
54+
list-style: none;
55+
padding: 0.5rem;
56+
margin: 0;
57+
58+
display: flex;
59+
flex-direction: row;
60+
flex-wrap: wrap;
61+
gap: 0.5rem;
62+
63+
li {
64+
display: flex;
65+
66+
.filled-button {
67+
text-wrap: pretty;
68+
padding: 0.25rem 0.75rem;
69+
}
70+
}
71+
}
72+
73+
.initial-content, .expandable-content {
74+
> :first-child {
75+
margin-top: 0;
76+
}
77+
78+
> :last-child {
79+
margin-bottom: 0;
80+
}
81+
}
82+
83+
.card-header-buttons {
84+
display: flex;
85+
flex-direction: row;
86+
align-items: center;
87+
gap: 0.25rem;
88+
89+
.icon-button {
90+
border-radius: 1.5rem;
91+
92+
> span {
93+
font-size: 1.5rem;
94+
}
95+
}
96+
}
97+
}

site/lib/jaspr_options.dart

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ import 'package:docs_flutter_dev_site/src/components/layout/theme_switcher.dart'
2929
as prefix10;
3030
import 'package:docs_flutter_dev_site/src/components/pages/archive_table.dart'
3131
as prefix11;
32-
import 'package:docs_flutter_dev_site/src/components/pages/learning_resource_filters.dart'
32+
import 'package:docs_flutter_dev_site/src/components/pages/glossary_search_section.dart'
3333
as prefix12;
34-
import 'package:docs_flutter_dev_site/src/components/pages/learning_resource_filters_sidebar.dart'
34+
import 'package:docs_flutter_dev_site/src/components/pages/learning_resource_filters.dart'
3535
as prefix13;
36+
import 'package:docs_flutter_dev_site/src/components/pages/learning_resource_filters_sidebar.dart'
37+
as prefix14;
3638

3739
/// Default [JasprOptions] for use with your jaspr project.
3840
///
@@ -105,13 +107,18 @@ JasprOptions get defaultJasprOptions => JasprOptions(
105107
params: _prefix11ArchiveTable,
106108
),
107109

108-
prefix12.LearningResourceFilters:
109-
ClientTarget<prefix12.LearningResourceFilters>(
110+
prefix12.GlossarySearchSection:
111+
ClientTarget<prefix12.GlossarySearchSection>(
112+
'src/components/pages/glossary_search_section',
113+
),
114+
115+
prefix13.LearningResourceFilters:
116+
ClientTarget<prefix13.LearningResourceFilters>(
110117
'src/components/pages/learning_resource_filters',
111118
),
112119

113-
prefix13.LearningResourceFiltersSidebar:
114-
ClientTarget<prefix13.LearningResourceFiltersSidebar>(
120+
prefix14.LearningResourceFiltersSidebar:
121+
ClientTarget<prefix14.LearningResourceFiltersSidebar>(
115122
'src/components/pages/learning_resource_filters_sidebar',
116123
),
117124
},

0 commit comments

Comments
 (0)