Add a Watchlist tab for the companies the app cannot read a board of
Rate each one Yes or No apart from affinity, open its careers page with the time noted, and set a missing or wrong link in the row. Migration 15 adds companies.watch and careers_opened_at. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6f273cfdd6
commit
7dcb2c1705
11 files changed
+445
-12
No files matched your search
+8
-2
@@ -1,6 +1,6 @@
|
||||
"""The pages: two tabs, a cog, and three settings pages behind it.
|
||||
"""The pages: three tabs, a cog, and three settings pages behind it.
|
||||
|
||||
`TABS` is the top bar, Roles and Applications, and `SETTINGS` is the rail
|
||||
`TABS` is the top bar, Roles, Applications and Watchlist, and `SETTINGS` is the rail
|
||||
beside every page under the cog at `/settings/<name>`: Search agents,
|
||||
Sources, Account. `base.html` renders the first, `settings/_rail.html` the
|
||||
second, every page marks itself active by its own `path`, and adding one is
|
||||
@@ -68,6 +68,7 @@ class Tab:
|
||||
TABS: tuple[Tab, ...] = (
|
||||
Tab("/", "Roles", "roles.html"),
|
||||
Tab("/applications", "Applications", "applications.html"),
|
||||
Tab("/watchlist", "Watchlist", "watchlist.html"),
|
||||
)
|
||||
|
||||
#: The pages under the cog, in order; `settings/_rail.html` renders them.
|
||||
@@ -155,6 +156,11 @@ def applications(request: Request) -> HTMLResponse:
|
||||
return page(request, "applications.html", status_options=STATUS_OPTIONS)
|
||||
|
||||
|
||||
@router.get("/watchlist", response_class=HTMLResponse)
|
||||
def watchlist(request: Request) -> HTMLResponse:
|
||||
return page(request, "watchlist.html")
|
||||
|
||||
|
||||
@router.get("/settings", response_class=RedirectResponse)
|
||||
def settings() -> RedirectResponse:
|
||||
return RedirectResponse(SETTINGS[0].path, status_code=302)
|
||||
|
||||
Reference in new issue
Block a user