One max length for handles
Handles are allowed 39 characters in one place and 40 in another.
What and why
Picking a handle in the profile allows 39 characters, while generated handles (a 35-character stem plus a suffix like "-1000") and generated member ids can reach 40, and the wall accepts 40. Pick one limit, enforce it in @nw/contracts and @nw/tasks, and make every generator (contributor handles and member ids) stay inside it.
Done when
Acceptance criteriaOne constant defines the limit
Generated handles and member ids never exceed it (test with a 39-character login)
Existing longer handles keep working
Proposals 1
Open to read. Decline notes go only to the proposer.Define one shared handle-length constant in @nw/contracts and use it for handle validation and generation. Update contributor-handle and member-ID generators—including the Admin mock flow—so generated values stay within the limit, even when a 39-character login needs a suffix. Keep existing longer handles readable and usable; apply the limit to validation and generation, not to existing values.
Add tests for the shared limit and for contributor-handle and member-ID generation from a 39-character login, including suffixes. Verify that existing longer handles can still be read and displayed. Run the relevant contracts, tasks, and API tests, then run typecheck.
Discussion 0
Questions, updates and decisions live here.No posts yet. Ask a question before you propose.