Commit graph

17 commits

Author SHA1 Message Date
sterni
df7cd63fa1 chore(3p/sources): Bump channels & overlays
* //users/tazjin/predlozhnik: bump wasm-bindgen & run `cargo update`

* //users/Profpatsch/writers:
  use proper keyword syntax to make make flake8 happy.

* //third_party/nixpkgs: pick binaryen from stable channel

Change-Id: Ia711d8c396aa09b78413d80f35eedf63fa315596
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6118
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: Profpatsch <mail@profpatsch.de>
2022-08-22 13:54:18 +00:00
Vincent Ambo
4a4f8f9358 feat(predlozhnik): add rare exceptions for о/между
Change-Id: I17920dd9cd6e881ac0e3613a268e48fb05862c3c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5997
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-29 09:24:13 +00:00
Vincent Ambo
caf068253a feat(predlozhnik): allow useful switches with active selection
this lets users switch between all compatible prepositions and cases
for the currently selected combination, which makes the UI a bit
easier to explore.

Спасибо /u/wrest3!

Change-Id: Iaf4e90403c90beb5d75acfa73fd0f5f2cb5035c5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5996
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-07-28 18:47:37 +00:00
Vincent Ambo
1a5e62c076 feat(predlozhnik): add mechanism for displaying exceptions
basically these override the auto-generated explanations for pairings

Change-Id: Ib98f3b7bce005ba4af26cfc850862300177c5175
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5995
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-28 18:47:26 +00:00
Vincent Ambo
bcf301d1be fix(tazjin/predlozhnik): обо should not have a separate entry
Change-Id: Ib058226bdd3fbd6df4ab33d99f18b5b1cf92051f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5994
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-07-28 17:50:18 +00:00
Vincent Ambo
dbd45fbb42 fix(tazjin/predlozhnik): questions in предложный do not retain о
Change-Id: If8d5acabbd6e9be9a72ae400626b25d652b1e297
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5993
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-28 17:50:18 +00:00
Vincent Ambo
ba682cd91b fix(tazjin/predlozhnik): typo fix & soft noscript landing
Change-Id: I6a5ce127d9bfa6e48b5a58ccfbbe684d7eb863ba
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5991
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-28 15:54:43 +00:00
Vincent Ambo
0f1cc9b2bc feat(predlozhnik): monetize
might as well! if it manages to pay for a beer over the lifetime of
the site, it will have been worth it.

Change-Id: I31ba92ffd4d6e55687f5ee624c44d14d366d0e91
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5990
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-28 15:16:33 +00:00
Vincent Ambo
ca608d3e9c style(predlozhnik): make the page look a bit more inviting
with some sprinkling of CSS and some different button classes, this
doesn't look half bad!

Change-Id: I49a3af4a77ce58713c735b2401b807062a3efb21
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5989
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-28 15:16:33 +00:00
Vincent Ambo
0fd8500452 fix(predlozhnik): о -> тоже предложный падеж
Change-Id: I5180eee14ebb8f50bdb62568aa51545bc5aef9f9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5986
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
a6e538b8bb fix(predlozhnik): нет -> только родительный падеж
Change-Id: I4ce6e6db474529a29823d1dc324ab86c5e351c0c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5985
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
5134a4809f feat(predlozhnik): wire up the actual предлог/вопрос matching
with this commit the application is sort of functional-ish as
intended.

users can select either cases or prepositions, have the remaining
choices appropriately constrained, and get the right question (i.e.
case) matching when selecting both.

there should be some explanatory translations and it needs to be
prettier, but this kind of does what I wanted.

Change-Id: If5bdaa7f93235dc267bf38cf13c2029f44d68415
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5984
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
134efdab25 feat(predlozhnik): implement fever-dream like case selection
don't look too closely at this, it's kind of insane

Change-Id: I789ddd9dd5a4cf28b3007e38ef1c345e639a5fc1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5983
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
67b7668e85 refactor(predlozhnik): use BTreeSet's for the ... sets
The stable ordering guarantee will make the output a lot nicer (and
more stable).

Change-Id: I7edd1abb0805e948bc41fe5bc111b3cb54592aac
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5982
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
7b217bbbe1 feat(tazjin/predlozhnik): implement logic to restrict inputs
Change-Id: I3e5a5ba02b5f9fcaeeddb499e243ad3b55cf3d82
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5981
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
d795a05c07 feat(tazjin/predlozhnik): bootstrap yew/wasm-based web UI
this commit is mostly to figure out hwo to build a yew application in
depot using the wasm toolchain. it's a bit finnicky, but could be a
lot worse.

Change-Id: I7804a774f1686a1f308ae1a3f549cd0ae7b5dbeb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5980
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00
Vincent Ambo
7bfc859bfc feat(tazjin/predlozhnik): check in initial list of предлоги
Change-Id: I3bc4f46964e50c8748306e579126be0192a89284
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5978
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-07-27 21:54:26 +00:00