NaimKabir / personal-golinks

Personal shortlinks completely managed in a browser extension.
MIT License
0 stars 0 forks source link

No legible "max-links" #4

Closed NaimKabir closed 1 year ago

NaimKabir commented 1 year ago

We should make it more obvious that there's a limit to the links you can produce.

Related: the current ID-setting mechanism for shortLinks in storage is naive—we just increment up, constantly churning through integer space. Maybe there's some way of dedicating IDs [1-MAX_IDs] and correctly adjusting them with additions and removals?

NaimKabir commented 1 year ago

First encoding maximum link number at all here #15 — at 4000 (to keep 1000 free for dedicated rules we might want to use for other features)

NaimKabir commented 1 year ago

Making this obvious in the UI with https://github.com/NaimKabir/personal-golinks/commit/bc402ca841f324c156323dd72764138167e3fd42