Add the Role Brief job template (`job-role-brief`)

未關閉
#459 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
76/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
typescript
領域
design, frontend

研究方向

Start with src/templates/job/benefits.ts and src/templates/quote/two-takes.ts to see how hiring cards and equal-width columns are built, then read the shared template checklist in #5. Implement the template in src/templates/job/role-brief.ts, export it from src/templates/job/index.ts, and register it in src/templates/registry.ts. Done means the listed empty-field, sizing, truncation, and light-background criteria pass and the template meets the shared checklist.

由索引模型根據 Issue 內容生成。

描述

good first issue templates

Part of #5. For a hiring post that sums up one role in two short lists, the work and what someone needs for it, so people can tell at a glance whether it's for them.

Idea
The company name and a location pill on top ("Northstar", "Remote, EU time zones"), then the role as the heading ("Senior Backend Engineer"). Under it, two columns side by side. The left one is headed "What you'll do" with up to three short lines: "Own the billing and invoicing services", "Pair with design on new API endpoints", "Help us retire our last cron jobs". The right one is headed "What you'll bring" with up to three: "4+ years with Go or Rust", "Running Postgres in production", "Clear written communication". The careers link sits at the bottom ("northstar.dev/careers").

The two column headings are fixed text, so the field list stays short.

Template details

  • File: src/templates/job/role-brief.ts, id job-role-brief
  • Fields: commonFields.title (the role, "Senior Backend Engineer"), company (text, "Northstar"), location (text, optional, "Remote, EU time zones"), do1 to do3 and bring1 to bring3 (text, optional, defaults above), commonFields.siteName, commonFields.bgColor, commonFields.accentColor, commonFields.textColor

Where to look

  • Closest references: src/templates/quote/two-takes.ts (two columns that share the width), src/templates/job/benefits.ts (a hiring card with a short list and the company name)

Acceptance criteria

  • A blank line is skipped with no gap, a column with no lines is dropped and the other one takes the full width, and with both columns empty the role and company sit on their own
  • Both columns keep the same width however long their lines are
  • A long role shrinks with autoFontSize() and then truncates, and a long line truncates instead of pushing the footer off the card
  • The location pill is hidden when blank, and the pill, headings and lines read fine on a light background
  • Re-exported in src/templates/job/index.ts and registered in the Job block of src/templates/registry.ts
  • Meets the shared template checklist in #5

One template per contributor at a time, so more people get a chance.


Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #459 in the description.

主要語言
TypeScript
星號
8
分支
4
平均合併
1 天 21 小時
30 天內合併 PR
34

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

codercops/ogcops 的其他 Issue

查看 codercops/ogcops 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。